Interface ITradeApiClient
- Namespace
- WhalesSecret.TradeScriptLib.API.TradingV1
- Assembly
- WhalesSecret.TradeScriptLib.dll
Client trade API for trade scripts version 1.0.0.
public interface ITradeApiClient : IAsyncDisposable
- Inherited Members
- Extension Methods
Properties
- HasBudget
true
if the trade API client has an associated budget,false
otherwise.
Methods
- CancelAllOrdersAsync(CancellationToken)
Sends a new cancel all orders request to an exchange.
- CancelOrderAsync(ILiveOrder, CancellationToken)
Sends a new cancel order request to an exchange.
- CreateBracketedOrderAsync<TWorkingOrderRequest>(TWorkingOrderRequest, IReadOnlyList<BracketOrderDefinition>, OnBracketedOrderUpdateAsync?, CancellationToken)
Creates a bracketed order.
- CreateCandlestickSubscriptionAsync(SymbolPair)
Sends a subscription request to receive candlestick updates from the exchange.
- CreateCandlestickSubscriptionsAsync(IReadOnlyList<SymbolPair>)
Sends a subscription request to receive candlestick updates from the exchange.
- CreateLimitOrderAsync(string?, SymbolPair, OrderSide, decimal, decimal, CancellationToken)
Sends a new limit order request to the exchange.
- CreateLimitOrderAsync(SymbolPair, OrderSide, decimal, decimal, CancellationToken)
Sends a new limit order request to the exchange.
- CreateMarketOrderAsync(string?, SymbolPair, OrderSide, decimal, CancellationToken)
Sends a new market order request to the exchange.
- CreateMarketOrderAsync(SymbolPair, OrderSide, decimal, CancellationToken)
Sends a new market order request to the exchange.
- CreateOrderAsync(LimitOrderRequest, CancellationToken)
Sends a new limit order request to the exchange.
- CreateOrderAsync(MarketOrderRequest, CancellationToken)
Sends a new market order request to the exchange.
- CreateOrderAsync(StopLimitOrderRequest, CancellationToken)
Sends a new stop-limit order request to the exchange.
- CreateOrderAsync(StopLossOrderRequest, CancellationToken)
Sends a new stop-loss order request to the exchange.
- CreateOrderAsync(TakeProfitLimitOrderRequest, CancellationToken)
Sends a new take-profit-limit order request to the exchange.
- CreateOrderAsync(TakeProfitOrderRequest, CancellationToken)
Sends a new take-profit order request to an exchange.
- CreateOrderBookSubscriptionAsync(SymbolPair)
Sends a subscription request to receive order book updates from the exchange.
- CreateOrderBookSubscriptionsAsync(IReadOnlyList<SymbolPair>)
Sends a subscription request to receive order books updates from the exchange.
- CreateOrderRequestBuilder<TOrderRequest>()
Creates a convenience builder for order requests.
- CreateStopLimitOrderAsync(string?, SymbolPair, OrderSide, decimal, decimal, decimal, TimeInForce, CancellationToken)
Sends a new stop-limit order request to the exchange.
- CreateStopLimitOrderAsync(SymbolPair, OrderSide, decimal, decimal, decimal, TimeInForce, CancellationToken)
Sends a new stop-limit order request to the exchange.
- CreateStopLossOrderAsync(string?, SymbolPair, OrderSide, decimal, decimal, CancellationToken)
Sends a new stop-loss order request to the exchange.
- CreateStopLossOrderAsync(SymbolPair, OrderSide, decimal, decimal, CancellationToken)
Sends a new stop-loss order request to the exchange.
- CreateTakeProfitLimitOrderAsync(string?, SymbolPair, OrderSide, decimal, decimal, decimal, TimeInForce, CancellationToken)
Sends a new take-profit-limit order request to the exchange.
- CreateTakeProfitLimitOrderAsync(SymbolPair, OrderSide, decimal, decimal, decimal, TimeInForce, CancellationToken)
Sends a new take-profit-limit order request to the exchange.
- CreateTakeProfitOrderAsync(string?, SymbolPair, OrderSide, decimal, decimal, CancellationToken)
Sends a new take-profit order request to an exchange.
- CreateTakeProfitOrderAsync(SymbolPair, OrderSide, decimal, decimal, CancellationToken)
Sends a new take-profit order request to an exchange.
- CreateTickerSubscriptionAsync(SymbolPair)
Sends a subscription request to receive ticker updates from the exchange.
- CreateTickerSubscriptionsAsync(IReadOnlyList<SymbolPair>)
Sends a subscription request to receive ticker updates from the exchange.
- GenerateBudgetReportAsync(CancellationToken)
Generates a budget report.
- GetCandlesticksAsync(SymbolPair, CandleWidth, DateTime, DateTime, CancellationToken)
Sends a request to retrieve historical candlestick data.
- GetExchangeInfo()
Gets information about the exchange market and its tradable pairs.
- GetExchangeUtcDateTime()
Gets current exchange UTC time.
- GetLatestExchangeAccountInformation(string?)
Gets the latest exchange account information.
- GetLatestTickersAsync(IReadOnlyList<SymbolPair>?, CancellationToken)
Sends a request to retrieve latest tickers for selected symbol pairs.
- GetNewerExchangeAccountInformationAsync(string?, CancellationToken)
Gets an exchange account information for the given sub-account on this subscription that is newer than the last consumed exchange account information returned by this method. If no such information is available, the method waits until a new update comes.
- GetOpenOrdersAsync(CancellationToken)
Sends a request to retrieve all open orders.
- GetOpenOrdersAsync(OrderFilterOptions, CancellationToken)
Sends a request to retrieve all open orders that satisfy given filter options.
- GetOrdersAsync(DateOnly, CancellationToken)
Gets historical orders for a single date.
- GetOrdersAsync(DateOnly, OrderFilterOptions, CancellationToken)
Gets historical orders satisfying given filter options for a single date.
- GetOrdersUpdateAsync(CancellationToken)
Starts receiving orders' updates and returns a series of orders' updates received since the creation of the iterator. If no update is available, the method waits until the next update is received.
- GetTradesAsync(DateOnly, CancellationToken)
Gets executed trades for a single date.
- GetTradesAsync(DateOnly, TradeFilterOptions, CancellationToken)
Gets executed trades satisfying given filter options for a single date.