2 changed files with 29 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||
using Binance.Net.Clients; |
|||
using Binance.Net.Objects; |
|||
using CryptoExchange.Net.Authentication; |
|||
|
|||
namespace Binance.SDK |
|||
{ |
|||
public class BinanceContractTest |
|||
{ |
|||
public BinanceContractTest() |
|||
{ |
|||
var apiKey = "muiZ1IA2sPMQ2m0YFPubEvZepjzn2nxeuPHqQ6mejKVXljYDQTOIYbm22NlXxKcv"; |
|||
var apiSecret = "3Clur3D1hDeZYhtVSJzPBiEBb7S0ktC8WpaRQ3F7ysQe55kbsPTBZ6U4X9XsX4Ww"; |
|||
var client = new BinanceClient(new BinanceClientOptions() |
|||
{ |
|||
UsdFuturesApiOptions = new BinanceApiClientOptions() |
|||
{ |
|||
BaseAddress = "https://fapi.binance.com", |
|||
ApiCredentials = new ApiCredentials(apiKey, apiSecret) |
|||
} |
|||
}); |
|||
|
|||
var result = client.UsdFuturesApi.Trading.GetOrderAsync("ETHUSDT"); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue