ATAS
|
Public Member Functions | |
void | Connect () |
void | Disconnect () |
Task | ConnectAsync () |
Task | DisconnectAsync () |
Task | RegisterOrderAsync (Order order) |
Task | ModifyOrderAsync (Order order, Order newOrder) |
Task | CancelOrderAsync (Order order) |
void | CancelOrder (Order order) |
void | RegisterOrder (Order order) |
void | ModifyOrder (Order order, Order neworder) |
Модификация цены ордера. | |
Order | TryGetOrder (long extId) |
Position | GetPosition (Portfolio portfolio, Security security, TPlusLimits? tPlusLimit) |
Task | ClosePositionAsync (Position position) |
Task | ClosePositionsAsync (Portfolio portfolio) |
void | SubscribeToMarketData (IEnumerable< Security > securities, SubscriptionType subscriptionTypes) |
void | SubscribeToMarketData (Security security, SubscriptionType subscriptionTypes) |
Подписка на маркет дату | |
void | UnsubscribeFromMarketData (IEnumerable< Security > securities, SubscriptionType subscriptionTypes) |
void | UnsubscribeFromMarketData (Security security, SubscriptionType subscriptionTypes) |
Отписка от маркет даты | |
void | SearchSecurities (SecurityFilter filter) |
Найти инструменты по заданному фильтру. | |
Task< IEnumerable< Security > > | SearchSecuritiesAsync (SecurityFilter filter) |
IEnumerable< string > | GetRoutes (Security security) |
IEnumerable< Portfolio > | GetPortfolios (Security security) |
Task | ChangeMarginParametersAsync (Position position, bool? isolated=null, decimal? leverage=null) |
Switches position margin mode (isolated/cross) and/or trading leverage for it. | |
Task | ChangeIsolatedMarginAsync (Position position, decimal value) |
Adds or removes to isolated margin of a position. This method does not apply for crossed margin mode This method works only if Position.Risk property is not null. | |
decimal? | CalcLiquidationPrice (Position position, decimal margin) |
Allows to estimate Liquidation Price change for a margin. | |
decimal?? decimal maxRemovable | CalcIsolatedMarginChangeRange (Position position) |
decimal | ConvertCurrency (Security security, string currencyFrom, string currencyTo, decimal volume, decimal? limitPrice=null) |
Converts volume from one currency to another Used for Notional value calculation. | |
decimal? | CalcMaxOrderVolume (OrderTypes orderType, Security security, Portfolio portfolio, OrderDirections direction, decimal? limitPrice=null) |
Gets max possible volume for the order This function is always return null if IsSupportedMaxOrderCalculation is false. | |
decimal? | CalcOrderCost (OrderTypes orderType, Security security, Portfolio portfolio, OrderDirections direction, decimal? limitPrice, decimal volume, out object? detailing, bool giveDetailing=false) |
Calculates total order cost including commissions and initial margin and everything else This function is always return null if IsSupportedMaxOrderCalculation is false. | |
ISecurityTradingOptions? | GetSecurityTradingOptions (Security security) |
Gets possible TimeInForce for order and optional flags that may be passed when order is created If null default behaviour is expected: TimeInForce = DAY, GTC, FOK No order flags | |
Task< IEnumerable< MyTrade > > | GetMyTradesAsync (Portfolio portfolio, Security security, DateTime from, DateTime to) |
Get a list of my trades. | |
Public Attributes | |
decimal? | maxAddable |
Calculates possible changes of the isolated margin of a position (only for leveraged trading) | |
Properties | |
Guid | Id [get] |
bool | IsSupportedServerOCO [get] |
Поддерживает ли коннектор серверные ОСО ордера | |
bool | IsSupportedStopOrders [get] |
Поддерживает ли коннектор стоп ордера | |
bool | IsSupportedTradingFunctions [get] |
Поддерживает ли коннектор торговые функции | |
bool | IsConnected [get] |
ConnectionStates | ConnectionState [get] |
Текущее состояние подключения коннектора. | |
MarketDataDelayPeriods | MarketDataDelayPeriod [get, set] |
Gets or sets delay period for market data. | |
bool | IsSupportedRussianMarket [get] |
Поддерживает ли коннектор инструменты Российского рынка | |
bool | IsSupportedAmericanFutures [get] |
Поддерживает ли коннектор американские фьючерсы | |
bool | IsSupportedAmericanStocks [get] |
Поддерживает ли коннектор американские фьючерсы | |
bool | IsSupportedCrypto [get] |
Поддерживает ли коннектор крипто инструменты | |
bool | IsSupportedMaxOrderCalculation [get] |
Does connector support max order calculation for the instrument This feature enables percentage slider under the volume input box Affects CalcMaxOrderVolume and CalcOrderCost methods. | |
bool | IsSupportedServerTime [get] |
Does connector supports getting exchange server time. | |
bool | MarketDataStreamEnabled [get, set] |
Отправлять ли маркет дату в BestBidAskUpdates,MarketDepthsUpdate,NewTrades. | |
bool | AllowUpdatePositionsPnL [get, set] |
IEntityFactory | Factory [get, set] |
Фабрика объектов для создания Security, Portfolio и т.д. | |
ITimeSyncManager? | DefaultTimeSyncManager [get, set] |
Default ITimeSyncManager to get time difference with NTP server. | |
string | DataPath [get, set] |
IConnectorLatencyManager | LatencyManager [get] |
Latency manager. | |
bool | IsFullLicense [get, set] |
License type. | |
bool | NeedRebatesCheck [get, set] |
Has rebate check feature. | |
IEnumerable< Security > | Securities [get] |
IEnumerable< Portfolio > | Portfolios [get] |
IEnumerable< MyTrade > | MyTrades [get] |
IEnumerable< Order > | Orders [get] |
IEnumerable< Position > | Positions [get] |
TimeOnly? | RefreshSecuritiesTime [get, set] |
bool | HasPendingActions [get] |
bool | ServerMode [get, set] |
bool | ReconnectOnFirstConnect [get, set] |
decimal?? decimal maxRemovable ATAS.DataFeedsCore.IDataFeedConnector.CalcIsolatedMarginChangeRange | ( | Position | position | ) |
decimal? ATAS.DataFeedsCore.IDataFeedConnector.CalcLiquidationPrice | ( | Position | position, |
decimal | margin | ||
) |
Allows to estimate Liquidation Price change for a margin.
position | Position to calculate for |
margin | Absolute margin for calculation |
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
decimal? ATAS.DataFeedsCore.IDataFeedConnector.CalcMaxOrderVolume | ( | OrderTypes | orderType, |
Security | security, | ||
Portfolio | portfolio, | ||
OrderDirections | direction, | ||
decimal? | limitPrice = null |
||
) |
Gets max possible volume for the order
This function is always return null if IsSupportedMaxOrderCalculation is false.
orderType | |
position | Position for calculation |
direction | |
limitPrice | optional limit price to calculate volume at. If null market price will be used |
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
decimal? ATAS.DataFeedsCore.IDataFeedConnector.CalcOrderCost | ( | OrderTypes | orderType, |
Security | security, | ||
Portfolio | portfolio, | ||
OrderDirections | direction, | ||
decimal? | limitPrice, | ||
decimal | volume, | ||
out object? | detailing, | ||
bool | giveDetailing = false |
||
) |
Calculates total order cost including commissions and initial margin and everything else
This function is always return null if IsSupportedMaxOrderCalculation is false.
orderType | |
position | |
direction | |
limitPrice | pass null to use market price for calculation |
volume | Desired volume of contracts to make order |
detailing | An object explaining each item which builds up the final price |
giveDetailing | true for request detailing |
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
void ATAS.DataFeedsCore.IDataFeedConnector.CancelOrder | ( | Order | order | ) |
Task ATAS.DataFeedsCore.IDataFeedConnector.CancelOrderAsync | ( | Order | order | ) |
Task ATAS.DataFeedsCore.IDataFeedConnector.ChangeIsolatedMarginAsync | ( | Position | position, |
decimal | value | ||
) |
Adds or removes to isolated margin of a position. This method does not apply for crossed margin mode
This method works only if Position.Risk property is not null.
position | |
value | Use positive value to add margin and negative to reduce |
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
Task ATAS.DataFeedsCore.IDataFeedConnector.ChangeMarginParametersAsync | ( | Position | position, |
bool? | isolated = null , |
||
decimal? | leverage = null |
||
) |
Switches position margin mode (isolated/cross) and/or trading leverage for it.
Pass null if parameter should not be changed
This method works only if Position.Risk property is not null
position | |
isolated | True for isolated, False for crossed mode |
leverage |
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
Task ATAS.DataFeedsCore.IDataFeedConnector.ClosePositionAsync | ( | Position | position | ) |
Task ATAS.DataFeedsCore.IDataFeedConnector.ClosePositionsAsync | ( | Portfolio | portfolio | ) |
void ATAS.DataFeedsCore.IDataFeedConnector.Connect | ( | ) |
Task ATAS.DataFeedsCore.IDataFeedConnector.ConnectAsync | ( | ) |
decimal ATAS.DataFeedsCore.IDataFeedConnector.ConvertCurrency | ( | Security | security, |
string | currencyFrom, | ||
string | currencyTo, | ||
decimal | volume, | ||
decimal? | limitPrice = null |
||
) |
Converts volume from one currency to another Used for Notional value calculation.
security | |
currencyFrom | |
currencyTo | |
volume | |
limitPrice | optional value in QuoteCurrency |
ArgumentNullException | |
ArgumentException |
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
void ATAS.DataFeedsCore.IDataFeedConnector.Disconnect | ( | ) |
Task ATAS.DataFeedsCore.IDataFeedConnector.DisconnectAsync | ( | ) |
Task< IEnumerable< MyTrade > > ATAS.DataFeedsCore.IDataFeedConnector.GetMyTradesAsync | ( | Portfolio | portfolio, |
Security | security, | ||
DateTime | from, | ||
DateTime | to | ||
) |
Get a list of my trades.
portfolio | Portfolio. |
security | Security. |
from | From date. |
to | To date. |
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
Position ATAS.DataFeedsCore.IDataFeedConnector.GetPosition | ( | Portfolio | portfolio, |
Security | security, | ||
TPlusLimits? | tPlusLimit | ||
) |
IEnumerable< string > ATAS.DataFeedsCore.IDataFeedConnector.GetRoutes | ( | Security | security | ) |
ISecurityTradingOptions? ATAS.DataFeedsCore.IDataFeedConnector.GetSecurityTradingOptions | ( | Security | security | ) |
Gets possible TimeInForce for order and optional flags that may be passed when order is created
If null default behaviour is expected:
TimeInForce = DAY, GTC, FOK
No order flags
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
Модификация цены ордера.
order | Ордер |
neworder | Новый ордер с новыми параметрами |
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
void ATAS.DataFeedsCore.IDataFeedConnector.RegisterOrder | ( | Order | order | ) |
Task ATAS.DataFeedsCore.IDataFeedConnector.RegisterOrderAsync | ( | Order | order | ) |
void ATAS.DataFeedsCore.IDataFeedConnector.SearchSecurities | ( | SecurityFilter | filter | ) |
Найти инструменты по заданному фильтру.
filter |
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
Task< IEnumerable< Security > > ATAS.DataFeedsCore.IDataFeedConnector.SearchSecuritiesAsync | ( | SecurityFilter | filter | ) |
void ATAS.DataFeedsCore.IDataFeedConnector.SubscribeToMarketData | ( | IEnumerable< Security > | securities, |
SubscriptionType | subscriptionTypes | ||
) |
void ATAS.DataFeedsCore.IDataFeedConnector.SubscribeToMarketData | ( | Security | security, |
SubscriptionType | subscriptionTypes | ||
) |
Подписка на маркет дату
security | Инструмент |
subscriptionTypes | Флаги |
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
Order ATAS.DataFeedsCore.IDataFeedConnector.TryGetOrder | ( | long | extId | ) |
void ATAS.DataFeedsCore.IDataFeedConnector.UnsubscribeFromMarketData | ( | IEnumerable< Security > | securities, |
SubscriptionType | subscriptionTypes | ||
) |
void ATAS.DataFeedsCore.IDataFeedConnector.UnsubscribeFromMarketData | ( | Security | security, |
SubscriptionType | subscriptionTypes | ||
) |
Отписка от маркет даты
security | Инструмент |
subscriptionTypes | Флаги |
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
decimal? ATAS.DataFeedsCore.IDataFeedConnector.maxAddable |
Calculates possible changes of the isolated margin of a position (only for leveraged trading)
position |
|
getset |
|
get |
Текущее состояние подключения коннектора.
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
getset |
|
getset |
Default ITimeSyncManager to get time difference with NTP server.
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
getset |
Фабрика объектов для создания Security, Portfolio и т.д.
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
|
get |
|
get |
|
getset |
License type.
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
Поддерживает ли коннектор американские фьючерсы
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
Поддерживает ли коннектор американские фьючерсы
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
Поддерживает ли коннектор крипто инструменты
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
Does connector support max order calculation for the instrument
This feature enables percentage slider under the volume input box
Affects CalcMaxOrderVolume and CalcOrderCost methods.
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
Поддерживает ли коннектор инструменты Российского рынка
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
Поддерживает ли коннектор серверные ОСО ордера
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
Does connector supports getting exchange server time.
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
Поддерживает ли коннектор стоп ордера
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
Поддерживает ли коннектор торговые функции
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
Latency manager.
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
getset |
Gets or sets delay period for market data.
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
getset |
Отправлять ли маркет дату в BestBidAskUpdates,MarketDepthsUpdate,NewTrades.
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
|
getset |
Has rebate check feature.
Implemented in ATAS.DataFeedsCore.BaseConnector< TMessage, TPortfolioKey, TSecurityKey, TSecurityPositionManager >, and ATAS.DataFeedsCore.BasketConnector.
|
get |
|
get |
|
get |
|
getset |
|
getset |
|
get |
|
getset |
ConnectorEventHandler<MarketDepth>? ATAS.DataFeedsCore.IDataFeedConnector.BestBidAskUpdates |
ConnectorEventHandler? ATAS.DataFeedsCore.IDataFeedConnector.Connected |
ConnectorEventHandler<ConnectionStateEventArgs>? ATAS.DataFeedsCore.IDataFeedConnector.ConnectionStateChanged |
ConnectorEventHandler? ATAS.DataFeedsCore.IDataFeedConnector.Disconnected |
ConnectorEventHandler<Exception>? ATAS.DataFeedsCore.IDataFeedConnector.Error |
Сообщения об ошибках
ConnectorEventHandler<MarketByOrder> ATAS.DataFeedsCore.IDataFeedConnector.MarketByOrderChanged |
ConnectorEventHandler<IEnumerable<MarketDepth> >? ATAS.DataFeedsCore.IDataFeedConnector.MarketDepthsUpdate |
ConnectorEventHandler<IEnumerable<MyTrade> >? ATAS.DataFeedsCore.IDataFeedConnector.NewMyTrades |
ConnectorEventHandler<News>? ATAS.DataFeedsCore.IDataFeedConnector.NewNews |
ConnectorEventHandler<IEnumerable<Order> >? ATAS.DataFeedsCore.IDataFeedConnector.NewOrders |
ConnectorEventHandler<IEnumerable<Portfolio> >? ATAS.DataFeedsCore.IDataFeedConnector.NewPortfolios |
ConnectorEventHandler<IEnumerable<Position> >? ATAS.DataFeedsCore.IDataFeedConnector.NewPositions |
ConnectorEventHandler<IEnumerable<Security> >? ATAS.DataFeedsCore.IDataFeedConnector.NewSecurities |
ConnectorEventHandler<IEnumerable<Trade> >? ATAS.DataFeedsCore.IDataFeedConnector.NewTrades |
ConnectorEventHandler<Order>? ATAS.DataFeedsCore.IDataFeedConnector.OrderChanged |
ConnectorEventHandler<Order, Order, string>? ATAS.DataFeedsCore.IDataFeedConnector.OrderModifyFailed |
ConnectorEventHandler<string, Order>? ATAS.DataFeedsCore.IDataFeedConnector.OrdersCancelFailed |
ConnectorEventHandler<string, Order>? ATAS.DataFeedsCore.IDataFeedConnector.OrdersRegisterFailed |
ConnectorEventHandler<IEnumerable<Portfolio> >? ATAS.DataFeedsCore.IDataFeedConnector.PortfoliosChanged |
ConnectorEventHandler<IEnumerable<Position> >? ATAS.DataFeedsCore.IDataFeedConnector.PositionsChanged |
ConnectorEventHandler<RebateResult>? ATAS.DataFeedsCore.IDataFeedConnector.RebateReceived |
ConnectorEventHandler<Security, Exception?>? ATAS.DataFeedsCore.IDataFeedConnector.RegisterSecurityResult |
ConnectorEventHandler<SecurityFilter, Exception?, IEnumerable<Security> >? ATAS.DataFeedsCore.IDataFeedConnector.SearchSecuritiesResult |
ConnectorEventHandler<Security>? ATAS.DataFeedsCore.IDataFeedConnector.SecurityChanged |