From 4c3087eba3a1067c67808fa6ede30dbc78a40a9f Mon Sep 17 00:00:00 2001
From: shanj <18996038927@163.com>
Date: Tue, 22 Feb 2022 05:43:59 +0800
Subject: [PATCH] =?UTF-8?q?Binance.Net=E5=B0=81=E8=A3=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Binance.SDK/Binance.SDK.csproj | 4 ++++
Binance.SDK/BinanceContractTest.cs | 25 +++++++++++++++++++++++++
2 files changed, 29 insertions(+)
create mode 100644 Binance.SDK/BinanceContractTest.cs
diff --git a/Binance.SDK/Binance.SDK.csproj b/Binance.SDK/Binance.SDK.csproj
index 8ef8970..175f351 100644
--- a/Binance.SDK/Binance.SDK.csproj
+++ b/Binance.SDK/Binance.SDK.csproj
@@ -5,4 +5,8 @@
enable
+
+
+
+
diff --git a/Binance.SDK/BinanceContractTest.cs b/Binance.SDK/BinanceContractTest.cs
new file mode 100644
index 0000000..d82cedd
--- /dev/null
+++ b/Binance.SDK/BinanceContractTest.cs
@@ -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");
+ }
+ }
+}