ATAS
|
Public Member Functions | |
void | Init (bool isServer) |
ICollection< Portfolio > | GetPortfolios () |
Portfolio | GetPortfolio (string accountId) |
Portfolio | TryGetPortfolio (string accountId) |
ICollection< Position > | GetPositions (string accountId) |
ICollection< Position > | GetPositions () |
ICollection< Order > | GetOrders (string accountId) |
ICollection< MyTrade > | GetMyTrades (string accountId) |
IEnumerable< MyTrade > | GetPositionMyTrdades (Position position) |
IEnumerable< MyTrade > | GetOpenedMyTrades () |
IEnumerable< Order > | GetOrders (DateTime from, DateTime to, IEnumerable< string > accounts, IEnumerable< string > securities) |
IEnumerable< MyTrade > | GetMyTrades (DateTime from, DateTime to, IEnumerable< string > accounts, IEnumerable< string > securities) |
IEnumerable< MyTrade > | GetMyTrades (string accountId, long tradeId) |
IEnumerable< HistoryMyTrade > | GetHistoryTrades (DateTime from, DateTime to, IEnumerable< string > accounts, IEnumerable< string > securities) |
Order | TryGetOrder (string accountId, long extId, bool searchInDb) |
MyTrade | TryGetMyTrade (string accountId, string tradeId, bool searchInDb) |
Position | TryGetPosition (string accountId, string securityId) |
IEnumerable< PortfolioChange > | GetPortfolioChanges (string accountId, DateTime from, DateTime to) |
void | Save (PortfolioChange portfolioChange, bool wait=false) |
void | Save (PortfolioState portfolioState, bool wait=false) |
ICollection< Security > | LoadAllSecurities () |
ICollection< Security > | GetSecurities () |
ICollection< Security > | GetPositionSecurities () |
IEnumerable< Security > | GetSecurities (string code, string exchange) |
IEnumerable< Security > | GetSecuritiesByExchange (string exchange) |
Security | GetSecurity (string id) |
void | Save (IEnumerable< Security > securities, bool wait=false) |
void | Save (Security security, bool wait=false) |
ICollection< SecurityMargin > | GetSecurityMargins () |
SecurityMargin | TryGetSecurityMargin (string securityId) |
void | Save (SecurityMargin margin, bool wait=false) |
ICollection< Exchange > | GetExchanges () |
ICollection< InstrumentExchange > | GetInstrumentExchanges () |
Get all InstrumentExchange need for import. | |
Exchange | GetExchange (string code) |
Exchange | TryGetExchange (string code) |
Exchange | TryGetInstrumentExchange (string instrument, string code) |
InstrumentExchange | TryGetInstrumentExchange (string instrument) |
void | Save (Exchange exchange, bool wait=false) |
void | Save (InstrumentExchange instrumentExchange, bool wait=false) |
void | Remove (Exchange exchange) |
void | Remove (InstrumentExchange instrumentExchange) |
ICollection< UserRole > | GetUserRoles () |
UserRole | GetUserRole (long id) |
UserRole | TryGetUserRole (long id) |
void | Save (UserRole role, bool wait=false) |
ICollection< UserGroup > | GetUserGroups () |
ICollection< UserGroup > | GetUserGroups (UserGroup parent) |
UserGroup | GetUserGroup (long id) |
UserGroup | TryGetUserGroup (long id) |
void | Save (UserGroup group, bool wait=false) |
ICollection< User > | GetUsers (UserGroup group) |
User | GetUser (string login) |
User | GetUser (long id) |
void | Save (User user, bool wait=false) |
ICollection< CommissionGroup > | GetCommissionGroups (UserGroup group) |
CommissionGroup | TryGetCommissionGroup (long id) |
CommissionGroup | TryGetCommissionGroup (Portfolio portfolio) |
void | Save (CommissionGroup commissionGroup, bool wait=false) |
string | GetValue (string name) |
void | SetValue (string name, string value, bool wait=false) |
void | Save (Order order, bool wait=false) |
void | Save (MyTrade trade, bool wait=false) |
void | Save (HistoryMyTrade trade, bool wait=false) |
void | Save (Portfolio portfolio, bool extended, bool wait=false) |
void | Save (Position position, bool wait=false) |
void | Remove (MyTrade trade) |
void | ClearHistoryTrades () |
void | ClearMyTrades () |
void | ClearOrders () |
IEnumerable< News > | GetNews (DateTime from, DateTime to) |
IEnumerable< News > | GetNews (User user, bool unhandled) |
void | Save (News news, bool wait=false) |
ICollection< PortfolioViewer > | GetPortfolioViewers () |
PortfolioViewer | TryGetPortfolioViewer (long id) |
void | Save (PortfolioViewer viewer, bool wait=false) |
IEnumerable< ServerPnL > | GetServerPnL (DateTime from, DateTime to) |
void | Wait () |
void | WaitInitialized () |
Public Member Functions inherited from ATAS.DataFeedsCore.IEntityFactory | |
Security | GetOrCreateSecurity (string id, Func< string, Security > create) |
Portfolio | GetOrCreatePortfolio (string accountId, Func< string, Portfolio > create) |
Position | GetOrCreatePosition (Portfolio portfolio, Security security, Func< Portfolio, Security, Position > create) |
Order | GetOrCreateOrder (long extId, Func< long, Order > create) |
MyTrade | GetOrCreateMyTrade (string id, Func< string, MyTrade > create) |
Trade | CreateTrade () |
MarketDepth | CreateMarketDepth () |
Properties | |
long | LastExtId [get] |
long | LastOrderId [get] |
long | LastTradeId [get] |
bool | IsInitialized [get] |
TimeSpan | ClearCachePeriod [get, set] |
bool | CheckConsistency [get, set] |
void ATAS.DataFeedsCore.Database.ICache.ClearHistoryTrades | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.ClearMyTrades | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.ClearOrders | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< CommissionGroup > ATAS.DataFeedsCore.Database.ICache.GetCommissionGroups | ( | UserGroup | group | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Exchange ATAS.DataFeedsCore.Database.ICache.GetExchange | ( | string | code | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< Exchange > ATAS.DataFeedsCore.Database.ICache.GetExchanges | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
IEnumerable< HistoryMyTrade > ATAS.DataFeedsCore.Database.ICache.GetHistoryTrades | ( | DateTime | from, |
DateTime | to, | ||
IEnumerable< string > | accounts, | ||
IEnumerable< string > | securities | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< InstrumentExchange > ATAS.DataFeedsCore.Database.ICache.GetInstrumentExchanges | ( | ) |
Get all InstrumentExchange need for import.
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
IEnumerable< MyTrade > ATAS.DataFeedsCore.Database.ICache.GetMyTrades | ( | DateTime | from, |
DateTime | to, | ||
IEnumerable< string > | accounts, | ||
IEnumerable< string > | securities | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< MyTrade > ATAS.DataFeedsCore.Database.ICache.GetMyTrades | ( | string | accountId | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
IEnumerable< MyTrade > ATAS.DataFeedsCore.Database.ICache.GetMyTrades | ( | string | accountId, |
long | tradeId | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
IEnumerable< News > ATAS.DataFeedsCore.Database.ICache.GetNews | ( | DateTime | from, |
DateTime | to | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
IEnumerable< MyTrade > ATAS.DataFeedsCore.Database.ICache.GetOpenedMyTrades | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
IEnumerable< Order > ATAS.DataFeedsCore.Database.ICache.GetOrders | ( | DateTime | from, |
DateTime | to, | ||
IEnumerable< string > | accounts, | ||
IEnumerable< string > | securities | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< Order > ATAS.DataFeedsCore.Database.ICache.GetOrders | ( | string | accountId | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Portfolio ATAS.DataFeedsCore.Database.ICache.GetPortfolio | ( | string | accountId | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
IEnumerable< PortfolioChange > ATAS.DataFeedsCore.Database.ICache.GetPortfolioChanges | ( | string | accountId, |
DateTime | from, | ||
DateTime | to | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< Portfolio > ATAS.DataFeedsCore.Database.ICache.GetPortfolios | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< PortfolioViewer > ATAS.DataFeedsCore.Database.ICache.GetPortfolioViewers | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< Position > ATAS.DataFeedsCore.Database.ICache.GetPositions | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< Position > ATAS.DataFeedsCore.Database.ICache.GetPositions | ( | string | accountId | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< Security > ATAS.DataFeedsCore.Database.ICache.GetPositionSecurities | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< Security > ATAS.DataFeedsCore.Database.ICache.GetSecurities | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
IEnumerable< Security > ATAS.DataFeedsCore.Database.ICache.GetSecurities | ( | string | code, |
string | exchange | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
IEnumerable< Security > ATAS.DataFeedsCore.Database.ICache.GetSecuritiesByExchange | ( | string | exchange | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Security ATAS.DataFeedsCore.Database.ICache.GetSecurity | ( | string | id | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< SecurityMargin > ATAS.DataFeedsCore.Database.ICache.GetSecurityMargins | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
IEnumerable< ServerPnL > ATAS.DataFeedsCore.Database.ICache.GetServerPnL | ( | DateTime | from, |
DateTime | to | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
User ATAS.DataFeedsCore.Database.ICache.GetUser | ( | long | id | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
User ATAS.DataFeedsCore.Database.ICache.GetUser | ( | string | login | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
UserGroup ATAS.DataFeedsCore.Database.ICache.GetUserGroup | ( | long | id | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< UserGroup > ATAS.DataFeedsCore.Database.ICache.GetUserGroups | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
UserRole ATAS.DataFeedsCore.Database.ICache.GetUserRole | ( | long | id | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< UserRole > ATAS.DataFeedsCore.Database.ICache.GetUserRoles | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
string ATAS.DataFeedsCore.Database.ICache.GetValue | ( | string | name | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Init | ( | bool | isServer | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
ICollection< Security > ATAS.DataFeedsCore.Database.ICache.LoadAllSecurities | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Remove | ( | Exchange | exchange | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Remove | ( | InstrumentExchange | instrumentExchange | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Remove | ( | MyTrade | trade | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | CommissionGroup | commissionGroup, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | Exchange | exchange, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | HistoryMyTrade | trade, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | IEnumerable< Security > | securities, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | InstrumentExchange | instrumentExchange, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | MyTrade | trade, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | News | news, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | Order | order, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | Portfolio | portfolio, |
bool | extended, | ||
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | PortfolioChange | portfolioChange, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | PortfolioState | portfolioState, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | PortfolioViewer | viewer, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | Position | position, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | Security | security, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | SecurityMargin | margin, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | User | user, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | UserGroup | group, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Save | ( | UserRole | role, |
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.SetValue | ( | string | name, |
string | value, | ||
bool | wait = false |
||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
CommissionGroup ATAS.DataFeedsCore.Database.ICache.TryGetCommissionGroup | ( | long | id | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
CommissionGroup ATAS.DataFeedsCore.Database.ICache.TryGetCommissionGroup | ( | Portfolio | portfolio | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Exchange ATAS.DataFeedsCore.Database.ICache.TryGetExchange | ( | string | code | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
InstrumentExchange ATAS.DataFeedsCore.Database.ICache.TryGetInstrumentExchange | ( | string | instrument | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Exchange ATAS.DataFeedsCore.Database.ICache.TryGetInstrumentExchange | ( | string | instrument, |
string | code | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
MyTrade ATAS.DataFeedsCore.Database.ICache.TryGetMyTrade | ( | string | accountId, |
string | tradeId, | ||
bool | searchInDb | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Order ATAS.DataFeedsCore.Database.ICache.TryGetOrder | ( | string | accountId, |
long | extId, | ||
bool | searchInDb | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Portfolio ATAS.DataFeedsCore.Database.ICache.TryGetPortfolio | ( | string | accountId | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
PortfolioViewer ATAS.DataFeedsCore.Database.ICache.TryGetPortfolioViewer | ( | long | id | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
Position ATAS.DataFeedsCore.Database.ICache.TryGetPosition | ( | string | accountId, |
string | securityId | ||
) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
SecurityMargin ATAS.DataFeedsCore.Database.ICache.TryGetSecurityMargin | ( | string | securityId | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
UserGroup ATAS.DataFeedsCore.Database.ICache.TryGetUserGroup | ( | long | id | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
UserRole ATAS.DataFeedsCore.Database.ICache.TryGetUserRole | ( | long | id | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.Wait | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
void ATAS.DataFeedsCore.Database.ICache.WaitInitialized | ( | ) |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
|
getset |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
|
getset |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
|
get |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
|
get |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
|
get |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.
|
get |
Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.