ATAS
Loading...
Searching...
No Matches
ATAS.DataFeedsCore.Database.ICache Interface Reference
Inheritance diagram for ATAS.DataFeedsCore.Database.ICache:
[legend]
Collaboration diagram for ATAS.DataFeedsCore.Database.ICache:
[legend]

Public Member Functions

void Init (bool isServer)
 
ICollection< PortfolioGetPortfolios ()
 
Portfolio GetPortfolio (string accountId)
 
Portfolio TryGetPortfolio (string accountId)
 
ICollection< PositionGetPositions (string accountId)
 
ICollection< PositionGetPositions ()
 
ICollection< OrderGetOrders (string accountId)
 
ICollection< MyTradeGetMyTrades (string accountId)
 
IEnumerable< MyTradeGetPositionMyTrdades (Position position)
 
IEnumerable< MyTradeGetOpenedMyTrades ()
 
IEnumerable< OrderGetOrders (DateTime from, DateTime to, IEnumerable< string > accounts, IEnumerable< string > securities)
 
IEnumerable< MyTradeGetMyTrades (DateTime from, DateTime to, IEnumerable< string > accounts, IEnumerable< string > securities)
 
IEnumerable< MyTradeGetMyTrades (string accountId, long tradeId)
 
IEnumerable< HistoryMyTradeGetHistoryTrades (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< PortfolioChangeGetPortfolioChanges (string accountId, DateTime from, DateTime to)
 
void Save (PortfolioChange portfolioChange, bool wait=false)
 
void Save (PortfolioState portfolioState, bool wait=false)
 
ICollection< SecurityLoadAllSecurities ()
 
ICollection< SecurityGetSecurities ()
 
ICollection< SecurityGetPositionSecurities ()
 
IEnumerable< SecurityGetSecurities (string code, string exchange)
 
IEnumerable< SecurityGetSecuritiesByExchange (string exchange)
 
Security GetSecurity (string id)
 
void Save (IEnumerable< Security > securities, bool wait=false)
 
void Save (Security security, bool wait=false)
 
ICollection< SecurityMarginGetSecurityMargins ()
 
SecurityMargin TryGetSecurityMargin (string securityId)
 
void Save (SecurityMargin margin, bool wait=false)
 
ICollection< ExchangeGetExchanges ()
 
ICollection< InstrumentExchangeGetInstrumentExchanges ()
 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< UserRoleGetUserRoles ()
 
UserRole GetUserRole (long id)
 
UserRole TryGetUserRole (long id)
 
void Save (UserRole role, bool wait=false)
 
ICollection< UserGroupGetUserGroups ()
 
ICollection< UserGroupGetUserGroups (UserGroup parent)
 
UserGroup GetUserGroup (long id)
 
UserGroup TryGetUserGroup (long id)
 
void Save (UserGroup group, bool wait=false)
 
ICollection< UserGetUsers (UserGroup group)
 
User GetUser (string login)
 
User GetUser (long id)
 
void Save (User user, bool wait=false)
 
ICollection< CommissionGroupGetCommissionGroups (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< NewsGetNews (DateTime from, DateTime to)
 
IEnumerable< NewsGetNews (User user, bool unhandled)
 
void Save (News news, bool wait=false)
 
ICollection< PortfolioViewerGetPortfolioViewers ()
 
PortfolioViewer TryGetPortfolioViewer (long id)
 
void Save (PortfolioViewer viewer, bool wait=false)
 
IEnumerable< ServerPnLGetServerPnL (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]
 

Member Function Documentation

◆ ClearHistoryTrades()

void ATAS.DataFeedsCore.Database.ICache.ClearHistoryTrades ( )

◆ ClearMyTrades()

void ATAS.DataFeedsCore.Database.ICache.ClearMyTrades ( )

◆ ClearOrders()

void ATAS.DataFeedsCore.Database.ICache.ClearOrders ( )

◆ GetCommissionGroups()

ICollection< CommissionGroup > ATAS.DataFeedsCore.Database.ICache.GetCommissionGroups ( UserGroup  group)

◆ GetExchange()

Exchange ATAS.DataFeedsCore.Database.ICache.GetExchange ( string  code)

◆ GetExchanges()

ICollection< Exchange > ATAS.DataFeedsCore.Database.ICache.GetExchanges ( )

◆ GetHistoryTrades()

IEnumerable< HistoryMyTrade > ATAS.DataFeedsCore.Database.ICache.GetHistoryTrades ( DateTime  from,
DateTime  to,
IEnumerable< string >  accounts,
IEnumerable< string >  securities 
)

◆ GetInstrumentExchanges()

ICollection< InstrumentExchange > ATAS.DataFeedsCore.Database.ICache.GetInstrumentExchanges ( )

Get all InstrumentExchange need for import.

Returns

Implemented in ATAS.DataFeedsCore.Database.Cache< TConnection >.

◆ GetMyTrades() [1/3]

IEnumerable< MyTrade > ATAS.DataFeedsCore.Database.ICache.GetMyTrades ( DateTime  from,
DateTime  to,
IEnumerable< string >  accounts,
IEnumerable< string >  securities 
)

◆ GetMyTrades() [2/3]

ICollection< MyTrade > ATAS.DataFeedsCore.Database.ICache.GetMyTrades ( string  accountId)

◆ GetMyTrades() [3/3]

IEnumerable< MyTrade > ATAS.DataFeedsCore.Database.ICache.GetMyTrades ( string  accountId,
long  tradeId 
)

◆ GetNews() [1/2]

IEnumerable< News > ATAS.DataFeedsCore.Database.ICache.GetNews ( DateTime  from,
DateTime  to 
)

◆ GetNews() [2/2]

IEnumerable< News > ATAS.DataFeedsCore.Database.ICache.GetNews ( User  user,
bool  unhandled 
)

◆ GetOpenedMyTrades()

IEnumerable< MyTrade > ATAS.DataFeedsCore.Database.ICache.GetOpenedMyTrades ( )

◆ GetOrders() [1/2]

IEnumerable< Order > ATAS.DataFeedsCore.Database.ICache.GetOrders ( DateTime  from,
DateTime  to,
IEnumerable< string >  accounts,
IEnumerable< string >  securities 
)

◆ GetOrders() [2/2]

ICollection< Order > ATAS.DataFeedsCore.Database.ICache.GetOrders ( string  accountId)

◆ GetPortfolio()

Portfolio ATAS.DataFeedsCore.Database.ICache.GetPortfolio ( string  accountId)

◆ GetPortfolioChanges()

IEnumerable< PortfolioChange > ATAS.DataFeedsCore.Database.ICache.GetPortfolioChanges ( string  accountId,
DateTime  from,
DateTime  to 
)

◆ GetPortfolios()

ICollection< Portfolio > ATAS.DataFeedsCore.Database.ICache.GetPortfolios ( )

◆ GetPortfolioViewers()

ICollection< PortfolioViewer > ATAS.DataFeedsCore.Database.ICache.GetPortfolioViewers ( )

◆ GetPositionMyTrdades()

IEnumerable< MyTrade > ATAS.DataFeedsCore.Database.ICache.GetPositionMyTrdades ( Position  position)

◆ GetPositions() [1/2]

ICollection< Position > ATAS.DataFeedsCore.Database.ICache.GetPositions ( )

◆ GetPositions() [2/2]

ICollection< Position > ATAS.DataFeedsCore.Database.ICache.GetPositions ( string  accountId)

◆ GetPositionSecurities()

ICollection< Security > ATAS.DataFeedsCore.Database.ICache.GetPositionSecurities ( )

◆ GetSecurities() [1/2]

ICollection< Security > ATAS.DataFeedsCore.Database.ICache.GetSecurities ( )

◆ GetSecurities() [2/2]

IEnumerable< Security > ATAS.DataFeedsCore.Database.ICache.GetSecurities ( string  code,
string  exchange 
)

◆ GetSecuritiesByExchange()

IEnumerable< Security > ATAS.DataFeedsCore.Database.ICache.GetSecuritiesByExchange ( string  exchange)

◆ GetSecurity()

Security ATAS.DataFeedsCore.Database.ICache.GetSecurity ( string  id)

◆ GetSecurityMargins()

ICollection< SecurityMargin > ATAS.DataFeedsCore.Database.ICache.GetSecurityMargins ( )

◆ GetServerPnL()

IEnumerable< ServerPnL > ATAS.DataFeedsCore.Database.ICache.GetServerPnL ( DateTime  from,
DateTime  to 
)

◆ GetUser() [1/2]

User ATAS.DataFeedsCore.Database.ICache.GetUser ( long  id)

◆ GetUser() [2/2]

User ATAS.DataFeedsCore.Database.ICache.GetUser ( string  login)

◆ GetUserGroup()

UserGroup ATAS.DataFeedsCore.Database.ICache.GetUserGroup ( long  id)

◆ GetUserGroups() [1/2]

ICollection< UserGroup > ATAS.DataFeedsCore.Database.ICache.GetUserGroups ( )

◆ GetUserGroups() [2/2]

ICollection< UserGroup > ATAS.DataFeedsCore.Database.ICache.GetUserGroups ( UserGroup  parent)

◆ GetUserRole()

UserRole ATAS.DataFeedsCore.Database.ICache.GetUserRole ( long  id)

◆ GetUserRoles()

ICollection< UserRole > ATAS.DataFeedsCore.Database.ICache.GetUserRoles ( )

◆ GetUsers()

ICollection< User > ATAS.DataFeedsCore.Database.ICache.GetUsers ( UserGroup  group)

◆ GetValue()

string ATAS.DataFeedsCore.Database.ICache.GetValue ( string  name)

◆ Init()

void ATAS.DataFeedsCore.Database.ICache.Init ( bool  isServer)

◆ LoadAllSecurities()

ICollection< Security > ATAS.DataFeedsCore.Database.ICache.LoadAllSecurities ( )

◆ Remove() [1/3]

void ATAS.DataFeedsCore.Database.ICache.Remove ( Exchange  exchange)

◆ Remove() [2/3]

void ATAS.DataFeedsCore.Database.ICache.Remove ( InstrumentExchange  instrumentExchange)

◆ Remove() [3/3]

void ATAS.DataFeedsCore.Database.ICache.Remove ( MyTrade  trade)

◆ Save() [1/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( CommissionGroup  commissionGroup,
bool  wait = false 
)

◆ Save() [2/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( Exchange  exchange,
bool  wait = false 
)

◆ Save() [3/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( HistoryMyTrade  trade,
bool  wait = false 
)

◆ Save() [4/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( IEnumerable< Security securities,
bool  wait = false 
)

◆ Save() [5/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( InstrumentExchange  instrumentExchange,
bool  wait = false 
)

◆ Save() [6/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( MyTrade  trade,
bool  wait = false 
)

◆ Save() [7/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( News  news,
bool  wait = false 
)

◆ Save() [8/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( Order  order,
bool  wait = false 
)

◆ Save() [9/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( Portfolio  portfolio,
bool  extended,
bool  wait = false 
)

◆ Save() [10/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( PortfolioChange  portfolioChange,
bool  wait = false 
)

◆ Save() [11/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( PortfolioState  portfolioState,
bool  wait = false 
)

◆ Save() [12/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( PortfolioViewer  viewer,
bool  wait = false 
)

◆ Save() [13/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( Position  position,
bool  wait = false 
)

◆ Save() [14/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( Security  security,
bool  wait = false 
)

◆ Save() [15/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( SecurityMargin  margin,
bool  wait = false 
)

◆ Save() [16/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( User  user,
bool  wait = false 
)

◆ Save() [17/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( UserGroup  group,
bool  wait = false 
)

◆ Save() [18/18]

void ATAS.DataFeedsCore.Database.ICache.Save ( UserRole  role,
bool  wait = false 
)

◆ SetValue()

void ATAS.DataFeedsCore.Database.ICache.SetValue ( string  name,
string  value,
bool  wait = false 
)

◆ TryGetCommissionGroup() [1/2]

CommissionGroup ATAS.DataFeedsCore.Database.ICache.TryGetCommissionGroup ( long  id)

◆ TryGetCommissionGroup() [2/2]

CommissionGroup ATAS.DataFeedsCore.Database.ICache.TryGetCommissionGroup ( Portfolio  portfolio)

◆ TryGetExchange()

Exchange ATAS.DataFeedsCore.Database.ICache.TryGetExchange ( string  code)

◆ TryGetInstrumentExchange() [1/2]

InstrumentExchange ATAS.DataFeedsCore.Database.ICache.TryGetInstrumentExchange ( string  instrument)

◆ TryGetInstrumentExchange() [2/2]

Exchange ATAS.DataFeedsCore.Database.ICache.TryGetInstrumentExchange ( string  instrument,
string  code 
)

◆ TryGetMyTrade()

MyTrade ATAS.DataFeedsCore.Database.ICache.TryGetMyTrade ( string  accountId,
string  tradeId,
bool  searchInDb 
)

◆ TryGetOrder()

Order ATAS.DataFeedsCore.Database.ICache.TryGetOrder ( string  accountId,
long  extId,
bool  searchInDb 
)

◆ TryGetPortfolio()

Portfolio ATAS.DataFeedsCore.Database.ICache.TryGetPortfolio ( string  accountId)

◆ TryGetPortfolioViewer()

PortfolioViewer ATAS.DataFeedsCore.Database.ICache.TryGetPortfolioViewer ( long  id)

◆ TryGetPosition()

Position ATAS.DataFeedsCore.Database.ICache.TryGetPosition ( string  accountId,
string  securityId 
)

◆ TryGetSecurityMargin()

SecurityMargin ATAS.DataFeedsCore.Database.ICache.TryGetSecurityMargin ( string  securityId)

◆ TryGetUserGroup()

UserGroup ATAS.DataFeedsCore.Database.ICache.TryGetUserGroup ( long  id)

◆ TryGetUserRole()

UserRole ATAS.DataFeedsCore.Database.ICache.TryGetUserRole ( long  id)

◆ Wait()

void ATAS.DataFeedsCore.Database.ICache.Wait ( )

◆ WaitInitialized()

void ATAS.DataFeedsCore.Database.ICache.WaitInitialized ( )

Property Documentation

◆ CheckConsistency

bool ATAS.DataFeedsCore.Database.ICache.CheckConsistency
getset

◆ ClearCachePeriod

TimeSpan ATAS.DataFeedsCore.Database.ICache.ClearCachePeriod
getset

◆ IsInitialized

bool ATAS.DataFeedsCore.Database.ICache.IsInitialized
get

◆ LastExtId

long ATAS.DataFeedsCore.Database.ICache.LastExtId
get

◆ LastOrderId

long ATAS.DataFeedsCore.Database.ICache.LastOrderId
get

◆ LastTradeId

long ATAS.DataFeedsCore.Database.ICache.LastTradeId
get

The documentation for this interface was generated from the following file: