Adapter |
public abstract class AdapterBase<T> : IWeakEventListener, IAdapter<T>, IAdapter where T : AdapterOptionsBase
The AdapterBaseT type exposes the following members.
| Name | Description | |
|---|---|---|
| AdapterOption | Gets the adapter option | |
| Connection | Gets the Connection object | |
| DialogService | ||
| IsThrottled | Is the connection throttled | |
| MessageBox | ||
| Now | UTC time + Timezone offset (as defined in Options > General tab) |
| Name | Description | |
|---|---|---|
| CanCancelAllOrders | Can cancel all orders | |
| CancelAllOrdersAsync | Cancel all open orders, if connection supports it. | |
| CancelOrderAsync | Cancel an order | |
| CanConvertPosition | Can convert position | |
| CanExitOrder | Can exit an order | |
| CanExitPosition | Can exit position | |
| CanGetOrderHistory | Can get order history | |
| CanRefreshAccount | Can refersh accounts/funds | |
| CanRefreshHolding | Can refresh holding | |
| CanRefreshOrders | Can refersh the historial orders | |
| CanRefreshOrderStatus | Can refresh order status | |
| CanRefreshPosition | Can refresh the position | |
| CanRefreshTrades | Can refresh the historical trades | |
| ChangeOrderAsync | Change an order | |
| Connect | Connects to the connection | |
| ConvertPositionAsync | Convert ProductType of a position | |
| DeserializeOco | Deserialize the OCO strings | |
| Disconnect | Disconnect from teh connection | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| ExitOrderAsync | Exit and order | |
| ExitPositionAsync | Close position | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| FromEpochTime(Int64) | Get time from epoch/unix time stamp | |
| FromEpochTime(Int64, TimeSpan) | Get time from epoch/unix time stamp | |
| GetAccountValueAsync | Get account value from connection | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetInstrument | ||
| GetOrderHistoryAsync | Gets the order history of an order | |
| GetOrders | Gets the orders | |
| GetScannerData | Get scanner data from connection | |
| GetSnapQuotes | Get snap quotes (static quotes) | |
| GetStrikeAsync | Gets the available strike prices | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Log(String, String) | Log messages | |
| Log(LogType, String, String) | Log message | |
| LogEx | Log exception | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| NotifyBackfill | Notify backfill of historical data has completed. This should be called even there are no data. | |
| OnNetworkChanged | Is network changed | |
| PlaceOrderAsync | Place orders | |
| RefreshAccountAsync | Gets the accounts/funds value from the connection | |
| RefreshHoldingAsync | Gets the holdings | |
| RefreshOrdersAsync | Gets the historial order for the defined account | |
| RefreshOrderStatusAsync | Refresh order status of an order | |
| RefreshPositionAsync | Gets the positions | |
| RefreshTradesAsync | Gets the historical trades for the defined account | |
| SerializeOco | Serialize OCO strings | |
| SubscribeHistoricalData | Subscribe historical data | |
| SubscribeLevel1Data | Subscribe Level-I data | |
| SubscribeLevel2Data | Subscribe Level-II data | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| UnsubscribeHistorialData | Unsubscribe historical data | |
| UnsubscribeLevel1Data | Unsubscribe Level-I data | |
| UnsubscribeLevel2Data | Unsubscribe Level-II data |