OandaRestClient

StockSharp.Oanda.Native

Methoden

GetAccountDetailsAsync
public Task<AccountDetails> GetAccountDetailsAsync(string accountId, CancellationToken cancellationToken)
result = oandaRestClient.GetAccountDetailsAsync(accountId, cancellationToken)

Bekommt kontospezifische details für das angegebene konto.

accountId
die ID des abzurufenden Kontos.
cancellationToken
Löschungszeichen.

Rückgabe: AccountDetails für das Konto.

GetInstrumentsAsync
public Task<IEnumerable<Instrument>> GetInstrumentsAsync(string accountId, IEnumerable<string> instruments, CancellationToken cancellationToken)
result = oandaRestClient.GetInstrumentsAsync(accountId, instruments, cancellationToken)

Bekommt die Liste der verfügbaren Instrumente.

accountId
Kontokennung.
instruments
Instrumente.
cancellationToken
Löschungszeichen.

Rückgabe: eine Liste der verfügbaren Instrumente.

GetPositionsAsync
public Task<IEnumerable<Position>> GetPositionsAsync(string accountId, CancellationToken cancellationToken)
result = oandaRestClient.GetPositionsAsync(accountId, cancellationToken)

Holen Sie sich die aktuellen offenen Positionen für das angegebene Konto.

accountId
die ID des Kontos.
cancellationToken
Löschungszeichen.

Rückgabe: Liste der Positionen (oder leere Liste, wenn keine vorhanden ist).