C# Class ExchangeSharp.ExchangeOKExAPI

Inheritance: OKGroupCommon
Mostrar archivo Open project: jjxtra/ExchangeSharp

Public Methods

Method Description
PeriodSecondsToString ( int seconds ) : string

Protected Methods

Method Description
ConnectWebSocketOkexAsync ( Func connected, Func callback, int symbolArrayIndex = 3 ) : Task
OnCancelOrderAsync ( string orderId, string marketSymbol ) : Task
OnGetAmountsAsync ( ) : decimal>>.Task
OnGetAmountsAvailableToTradeAsync ( ) : decimal>>.Task
OnGetCandlesAsync ( string marketSymbol, int periodSeconds, DateTime? startDate = null, DateTime? endDate = null, int? limit = null ) : Task>
OnGetDeltaOrderBookWebSocketAsync ( Action callback, int maxCount = 20 ) : Task
OnGetMarginAmountsAvailableToTradeAsync ( bool includeZeroBalances ) : decimal>>.Task
OnGetMarketSymbolsMetadataAsync ( ) : Task>
OnGetOpenOrderDetailsAsync ( string marketSymbol ) : Task>
OnGetOrderBookAsync ( string marketSymbol, int maxCount = 100 ) : Task
OnGetOrderDetailsAsync ( string orderId, string marketSymbol, bool isClientOrderId = false ) : Task
OnGetOrderDetailsWebSocketAsync ( Action callback ) : Task
OnGetRecentTradesAsync ( string marketSymbol, int? limit = null ) : Task>
OnGetTickerAsync ( string marketSymbol ) : Task
OnGetTickersAsync ( ) : ExchangeTicker>>>.Task
OnGetTickersWebSocketAsync ( Action callback ) : Task
OnGetTradesWebSocketAsync ( Func callback ) : Task
OnPlaceOrderAsync ( ExchangeSharp.ExchangeOrderRequest order ) : Task
ProcessRequestAsync ( IHttpWebRequest request, Dictionary payload ) : Task

Private Methods

Method Description
ExchangeOKExAPI ( ) : System
Timer ( callback :async ) : System
_socket ( ) : await

Method Details

ConnectWebSocketOkexAsync() protected method

protected ConnectWebSocketOkexAsync ( Func connected, Func callback, int symbolArrayIndex = 3 ) : Task
connected Func
callback Func
symbolArrayIndex int
return Task

OnCancelOrderAsync() protected method

protected OnCancelOrderAsync ( string orderId, string marketSymbol ) : Task
orderId string
marketSymbol string
return Task

OnGetAmountsAsync() protected method

protected OnGetAmountsAsync ( ) : decimal>>.Task
return decimal>>.Task

OnGetAmountsAvailableToTradeAsync() protected method

protected OnGetAmountsAvailableToTradeAsync ( ) : decimal>>.Task
return decimal>>.Task

OnGetCandlesAsync() protected method

protected OnGetCandlesAsync ( string marketSymbol, int periodSeconds, DateTime? startDate = null, DateTime? endDate = null, int? limit = null ) : Task>
marketSymbol string
periodSeconds int
startDate DateTime?
endDate DateTime?
limit int?
return Task>

OnGetDeltaOrderBookWebSocketAsync() protected method

protected OnGetDeltaOrderBookWebSocketAsync ( Action callback, int maxCount = 20 ) : Task
callback Action
maxCount int
return Task

OnGetMarginAmountsAvailableToTradeAsync() protected method

protected OnGetMarginAmountsAvailableToTradeAsync ( bool includeZeroBalances ) : decimal>>.Task
includeZeroBalances bool
return decimal>>.Task

OnGetMarketSymbolsMetadataAsync() protected method

protected OnGetMarketSymbolsMetadataAsync ( ) : Task>
return Task>

OnGetOpenOrderDetailsAsync() protected method

protected OnGetOpenOrderDetailsAsync ( string marketSymbol ) : Task>
marketSymbol string
return Task>

OnGetOrderBookAsync() protected method

protected OnGetOrderBookAsync ( string marketSymbol, int maxCount = 100 ) : Task
marketSymbol string
maxCount int
return Task

OnGetOrderDetailsAsync() protected method

protected OnGetOrderDetailsAsync ( string orderId, string marketSymbol, bool isClientOrderId = false ) : Task
orderId string
marketSymbol string
isClientOrderId bool
return Task

OnGetOrderDetailsWebSocketAsync() protected method

protected OnGetOrderDetailsWebSocketAsync ( Action callback ) : Task
callback Action
return Task

OnGetRecentTradesAsync() protected method

protected OnGetRecentTradesAsync ( string marketSymbol, int? limit = null ) : Task>
marketSymbol string
limit int?
return Task>

OnGetTickerAsync() protected method

protected OnGetTickerAsync ( string marketSymbol ) : Task
marketSymbol string
return Task

OnGetTickersAsync() protected method

protected OnGetTickersAsync ( ) : ExchangeTicker>>>.Task
return ExchangeTicker>>>.Task

OnGetTickersWebSocketAsync() protected method

protected OnGetTickersWebSocketAsync ( Action callback ) : Task
callback Action
return Task

OnGetTradesWebSocketAsync() protected method

protected OnGetTradesWebSocketAsync ( Func callback ) : Task
callback Func
return Task

OnPlaceOrderAsync() protected method

protected OnPlaceOrderAsync ( ExchangeSharp.ExchangeOrderRequest order ) : Task
order ExchangeSharp.ExchangeOrderRequest
return Task

PeriodSecondsToString() public method

public PeriodSecondsToString ( int seconds ) : string
seconds int
return string

ProcessRequestAsync() protected method

protected ProcessRequestAsync ( IHttpWebRequest request, Dictionary payload ) : Task
request IHttpWebRequest
payload Dictionary
return Task