OandaRestClient
StockSharp.Oanda.Native
方法
GetAccountDetailsAsync(string, CancellationToken) : Task<AccountDetails>
Gets account specific details for the given account.
- accountId
- the ID of the account to retrieve.
- cancellationToken
- Cancellation token.
返回值: the AccountDetails for the account.
GetInstrumentsAsync(string, IEnumerable<string>, CancellationToken) : Task<IEnumerable<Instrument>>
Gets the list of instruments that are available.
- accountId
- Account ID.
- instruments
- Instruments.
- cancellationToken
- Cancellation token.
返回值: a list of the available instruments.
GetPositionsAsync(string, CancellationToken) : Task<IEnumerable<Position>>
Get the current open positions for the account specified.
- accountId
- the ID of the account.
- cancellationToken
- Cancellation token.
返回值: list of positions (or empty list if there are none).