币安量化交易
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
895 B

3 years ago
using Binance.Net.Clients;
using Binance.Net.Objects;
using CryptoExchange.Net.Authentication;
using System;
namespace Binance.SDK.Test
{
internal class Program
{
static void Main(string[] args)
{
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.Account.GetBalancesAsync().Result;
Console.WriteLine(result);
}
}
}