mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-11 16:32:57 +00:00
Updated version
This commit is contained in:
@@ -58,6 +58,9 @@ Task<WebCallResult<IEnumerable<Trade>>> GetRecentTradesAsync(string symbol);
|
||||
// Get balances
|
||||
Task<WebCallResult<IEnumerable<Balance>>> GetBalancesAsync(string? accountId = null);
|
||||
|
||||
// Place an order
|
||||
Task<WebCallResult<OrderId>> PlaceOrderAsync(string symbol, CommonOrderSide side, CommonOrderType type, decimal quantity, decimal? price = null, string? accountId = null);
|
||||
|
||||
// Get order by order id
|
||||
Task<WebCallResult<Order>> GetOrderAsync(string orderId, string? symbol = null);
|
||||
|
||||
@@ -122,6 +125,9 @@ Task<WebCallResult<IEnumerable<Balance>>> GetBalancesAsync(string? accountId = n
|
||||
// Get current open positions
|
||||
Task<WebCallResult<IEnumerable<Position>>> GetPositionsAsync();
|
||||
|
||||
// Place an order
|
||||
Task<WebCallResult<OrderId>> PlaceOrderAsync(string symbol, CommonOrderSide side, CommonOrderType type, decimal quantity, decimal? price = null, int? leverage = null, string? accountId = null);
|
||||
|
||||
// Get order by order id
|
||||
Task<WebCallResult<Order>> GetOrderAsync(string orderId, string? symbol = null);
|
||||
|
||||
|
||||
@@ -72,14 +72,14 @@ var spotClients = new [] {
|
||||
*V5*
|
||||
```csharp
|
||||
var spotClients = new [] {
|
||||
binanceClient.SpotApi.ComonSpotClient,
|
||||
bittrexClient.SpotApi.ComonSpotClient,
|
||||
kucoinClient.SpotApi.ComonSpotClient
|
||||
binanceClient.SpotApi.CommonSpotClient,
|
||||
bittrexClient.SpotApi.CommonSpotClient,
|
||||
kucoinClient.SpotApi.CommonSpotClient
|
||||
};
|
||||
|
||||
var futuresClients = new [] {
|
||||
binanceClient.UsdFuturesApi.ComonFuturesClient,
|
||||
kucoinClient.FuturesApi.ComonFuturesClient
|
||||
binanceClient.UsdFuturesApi.CommonFuturesClient,
|
||||
kucoinClient.FuturesApi.CommonFuturesClient
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user