diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml
index bbf2762..5f32610 100644
--- a/.github/workflows/dist.yml
+++ b/.github/workflows/dist.yml
@@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
- operating-system: [ubuntu-latest, windows-latest, macOS-latest]
+ operating-system: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Setup .NET on 3.1.x, 5.0.x, 6.0.x
diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index a94ae68..85bfde6 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -21,6 +21,18 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build --no-restore
+ - name: Restore CSharp examples dependencies
+ working-directory: ./Examples/CSharp
+ run: dotnet restore
+ - name: Build CSharp examples
+ working-directory: ./Examples/CSharp
+ run: dotnet build --no-restore
+ - name: Restore FSharp examples dependencies
+ working-directory: ./Examples/FSharp
+ run: dotnet restore
+ - name: Build FSharp examples
+ working-directory: ./Examples/FSharp
+ run: dotnet build --no-restore
- name: Install formatter
run: dotnet tool update --global dotnet-format
- name: Diagnose Formatting
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index de6d3c6..0e45835 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -20,7 +20,7 @@ jobs:
run: dotnet build --configuration Release
- name: Pack
run: dotnet pack Src/Spot -p:NuspecFile=.nuspec -p:RepositoryBranch=${{ github.event.release.tag_name }} -o Release
- - name: Upload
+ - name: Upload to Github Release
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -29,4 +29,7 @@ jobs:
asset_path: ./Release/Binance.Spot.${{ github.event.release.tag_name }}.nupkg
asset_name: Binance.Spot.${{ github.event.release.tag_name }}.nupkg
asset_content_type: binary/octet-stream
-
+ - name: Publish to Nuget
+ env:
+ NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
+ run: dotnet nuget push ./Release/Binance.Spot.${{ github.event.release.tag_name }}.nupkg -k "$NUGET_TOKEN" -s https://api.nuget.org/v3/index.json
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e1e4dcc..c332ee9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,26 @@
# Changelog
+## 1.6.0 - 2022-07-04
+
+### Added
+- New endpoint for Market:
+ - `GET /api/v3/ticker` for rolling window price change statistics based on windowSize provided.
+
+- New endpoint for Account Trade:
+ - `POST /api/v3/order/cancelReplace` to cancel an existing order and place a new order on the same symbol.
+
+### Changed
+- Update endpoint for Fiat:
+ - `GET /sapi/v1/fiat/orders`: Weight changes from IP(1) to UID(90000)
+
+- Update endpoint for Pay:
+ - `GET /sapi/v1/pay/transactions`: Param names changed: startTimestamp -> startTime; endTimestamp -> endTime.
+
+### Fixed
+- Included `Examples/CSharp` and `Examples/FSharp` build process in CI pipeline.
+
+- Explicitly set optional parameters in examples.
+
## 1.5.0 - 2022-05-27
### Added
- New endpoint for Binance Code:
diff --git a/Examples/CSharp/BLVT/GetBlvtInfo_Example.cs b/Examples/CSharp/BLVT/GetBlvtInfo_Example.cs
index 3ebcbda..7dd3553 100644
--- a/Examples/CSharp/BLVT/GetBlvtInfo_Example.cs
+++ b/Examples/CSharp/BLVT/GetBlvtInfo_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var blvt = new BLVT(httpClient, apiKey, apiSecret);
+ var blvt = new BLVT(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await blvt.GetBlvtInfo();
}
diff --git a/Examples/CSharp/BLVT/GetBlvtUserLimitInfo_Example.cs b/Examples/CSharp/BLVT/GetBlvtUserLimitInfo_Example.cs
index b8f9f4a..fb06121 100644
--- a/Examples/CSharp/BLVT/GetBlvtUserLimitInfo_Example.cs
+++ b/Examples/CSharp/BLVT/GetBlvtUserLimitInfo_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var blvt = new BLVT(httpClient, apiKey, apiSecret);
+ var blvt = new BLVT(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await blvt.GetBlvtUserLimitInfo();
}
diff --git a/Examples/CSharp/BLVT/QueryRedemptionRecord_Example.cs b/Examples/CSharp/BLVT/QueryRedemptionRecord_Example.cs
index 2095de6..91bdd20 100644
--- a/Examples/CSharp/BLVT/QueryRedemptionRecord_Example.cs
+++ b/Examples/CSharp/BLVT/QueryRedemptionRecord_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var blvt = new BLVT(httpClient, apiKey, apiSecret);
+ var blvt = new BLVT(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await blvt.QueryRedemptionRecord();
}
diff --git a/Examples/CSharp/BLVT/QuerySubscriptionRecord_Example.cs b/Examples/CSharp/BLVT/QuerySubscriptionRecord_Example.cs
index 3fd65c7..52e4f73 100644
--- a/Examples/CSharp/BLVT/QuerySubscriptionRecord_Example.cs
+++ b/Examples/CSharp/BLVT/QuerySubscriptionRecord_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var blvt = new BLVT(httpClient, apiKey, apiSecret);
+ var blvt = new BLVT(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await blvt.QuerySubscriptionRecord();
}
diff --git a/Examples/CSharp/BLVT/RedeemBlvt_Example.cs b/Examples/CSharp/BLVT/RedeemBlvt_Example.cs
index 3f0cd73..fddcbf6 100644
--- a/Examples/CSharp/BLVT/RedeemBlvt_Example.cs
+++ b/Examples/CSharp/BLVT/RedeemBlvt_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var blvt = new BLVT(httpClient, apiKey, apiSecret);
+ var blvt = new BLVT(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await blvt.RedeemBlvt("BTCDOWN", 1.01m);
}
diff --git a/Examples/CSharp/BLVT/SubscribeBlvt_Example.cs b/Examples/CSharp/BLVT/SubscribeBlvt_Example.cs
index 5a9a868..7d38f4c 100644
--- a/Examples/CSharp/BLVT/SubscribeBlvt_Example.cs
+++ b/Examples/CSharp/BLVT/SubscribeBlvt_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var blvt = new BLVT(httpClient, apiKey, apiSecret);
+ var blvt = new BLVT(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await blvt.SubscribeBlvt("BTCDOWN", 1.01m);
}
diff --git a/Examples/CSharp/BSwap/AddLiquidityPreview_Example.cs b/Examples/CSharp/BSwap/AddLiquidityPreview_Example.cs
index f8b7814..5d80819 100644
--- a/Examples/CSharp/BSwap/AddLiquidityPreview_Example.cs
+++ b/Examples/CSharp/BSwap/AddLiquidityPreview_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.AddLiquidityPreview(2, "SINGLE", "USDT", 12415.2m);
}
diff --git a/Examples/CSharp/BSwap/AddLiquidity_Example.cs b/Examples/CSharp/BSwap/AddLiquidity_Example.cs
index 4d6f470..80171d4 100644
--- a/Examples/CSharp/BSwap/AddLiquidity_Example.cs
+++ b/Examples/CSharp/BSwap/AddLiquidity_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.AddLiquidity(2, "BTC", 12415.2m);
}
diff --git a/Examples/CSharp/BSwap/ClaimRewards_Example.cs b/Examples/CSharp/BSwap/ClaimRewards_Example.cs
index 9542d12..23cf729 100644
--- a/Examples/CSharp/BSwap/ClaimRewards_Example.cs
+++ b/Examples/CSharp/BSwap/ClaimRewards_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.ClaimRewards();
}
diff --git a/Examples/CSharp/BSwap/GetClaimedHistory_Example.cs b/Examples/CSharp/BSwap/GetClaimedHistory_Example.cs
index 13446d4..ca95048 100644
--- a/Examples/CSharp/BSwap/GetClaimedHistory_Example.cs
+++ b/Examples/CSharp/BSwap/GetClaimedHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.GetClaimedHistory();
}
diff --git a/Examples/CSharp/BSwap/GetLiquidityInformationOfAPool_Example.cs b/Examples/CSharp/BSwap/GetLiquidityInformationOfAPool_Example.cs
index 0a8bef0..5d35cfc 100644
--- a/Examples/CSharp/BSwap/GetLiquidityInformationOfAPool_Example.cs
+++ b/Examples/CSharp/BSwap/GetLiquidityInformationOfAPool_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.GetLiquidityInformationOfAPool();
}
diff --git a/Examples/CSharp/BSwap/GetLiquidityOperationRecord_Example.cs b/Examples/CSharp/BSwap/GetLiquidityOperationRecord_Example.cs
index bc948f5..c48133c 100644
--- a/Examples/CSharp/BSwap/GetLiquidityOperationRecord_Example.cs
+++ b/Examples/CSharp/BSwap/GetLiquidityOperationRecord_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.GetLiquidityOperationRecord();
}
diff --git a/Examples/CSharp/BSwap/GetSwapHistory_Example.cs b/Examples/CSharp/BSwap/GetSwapHistory_Example.cs
index 07d8579..d4017d1 100644
--- a/Examples/CSharp/BSwap/GetSwapHistory_Example.cs
+++ b/Examples/CSharp/BSwap/GetSwapHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.GetSwapHistory();
}
diff --git a/Examples/CSharp/BSwap/GetUnclaimedRewardsRecord_Example.cs b/Examples/CSharp/BSwap/GetUnclaimedRewardsRecord_Example.cs
index a241a88..415688b 100644
--- a/Examples/CSharp/BSwap/GetUnclaimedRewardsRecord_Example.cs
+++ b/Examples/CSharp/BSwap/GetUnclaimedRewardsRecord_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.GetUnclaimedRewardsRecord();
}
diff --git a/Examples/CSharp/BSwap/ListAllSwapPools_Example.cs b/Examples/CSharp/BSwap/ListAllSwapPools_Example.cs
index 659ce8a..30dea7e 100644
--- a/Examples/CSharp/BSwap/ListAllSwapPools_Example.cs
+++ b/Examples/CSharp/BSwap/ListAllSwapPools_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.ListAllSwapPools();
}
diff --git a/Examples/CSharp/BSwap/PoolConfigure_Example.cs b/Examples/CSharp/BSwap/PoolConfigure_Example.cs
index 9447c16..fd9bbaa 100644
--- a/Examples/CSharp/BSwap/PoolConfigure_Example.cs
+++ b/Examples/CSharp/BSwap/PoolConfigure_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.PoolConfigure();
}
diff --git a/Examples/CSharp/BSwap/RemoveLiquidityPreview_Example.cs b/Examples/CSharp/BSwap/RemoveLiquidityPreview_Example.cs
index 241702c..268179b 100644
--- a/Examples/CSharp/BSwap/RemoveLiquidityPreview_Example.cs
+++ b/Examples/CSharp/BSwap/RemoveLiquidityPreview_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.RemoveLiquidityPreview(2, "SINGLE", "USDT", 12415.2m);
}
diff --git a/Examples/CSharp/BSwap/RemoveLiquidity_Example.cs b/Examples/CSharp/BSwap/RemoveLiquidity_Example.cs
index 81b65f7..44bfc77 100644
--- a/Examples/CSharp/BSwap/RemoveLiquidity_Example.cs
+++ b/Examples/CSharp/BSwap/RemoveLiquidity_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.RemoveLiquidity(2, LiquidityRemovalType.SINGLE, 12415.2m);
}
diff --git a/Examples/CSharp/BSwap/RequestQuote_Example.cs b/Examples/CSharp/BSwap/RequestQuote_Example.cs
index 3fdf445..b1337af 100644
--- a/Examples/CSharp/BSwap/RequestQuote_Example.cs
+++ b/Examples/CSharp/BSwap/RequestQuote_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.RequestQuote("USDT", "BUSD", 12415.2m);
}
diff --git a/Examples/CSharp/BSwap/Swap_Example.cs b/Examples/CSharp/BSwap/Swap_Example.cs
index 6a2f428..0317d14 100644
--- a/Examples/CSharp/BSwap/Swap_Example.cs
+++ b/Examples/CSharp/BSwap/Swap_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var bSwap = new BSwap(httpClient, apiKey, apiSecret);
+ var bSwap = new BSwap(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await bSwap.Swap("USDT", "BUSD", 12415.2m);
}
diff --git a/Examples/CSharp/C2C/GetC2cTradeHistory_Example.cs b/Examples/CSharp/C2C/GetC2cTradeHistory_Example.cs
index 4e715da..d9d548d 100644
--- a/Examples/CSharp/C2C/GetC2cTradeHistory_Example.cs
+++ b/Examples/CSharp/C2C/GetC2cTradeHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var c2c = new C2C(httpClient, apiKey, apiSecret);
+ var c2c = new C2C(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await c2c.GetC2cTradeHistory(Side.BUY);
}
diff --git a/Examples/CSharp/CSharp.csproj b/Examples/CSharp/CSharp.csproj
index b1581dd..ec1389d 100644
--- a/Examples/CSharp/CSharp.csproj
+++ b/Examples/CSharp/CSharp.csproj
@@ -6,7 +6,7 @@
- Binance.Spot.MarketDataWebSocketExamples.DepthStream_Example
+ Binance.Spot.SpotAccountTradeExamples.AccountInformation_Example
diff --git a/Examples/CSharp/Convert/GetConvertTradeHistory_Example.cs b/Examples/CSharp/Convert/GetConvertTradeHistory_Example.cs
index cd394da..a9d742b 100644
--- a/Examples/CSharp/Convert/GetConvertTradeHistory_Example.cs
+++ b/Examples/CSharp/Convert/GetConvertTradeHistory_Example.cs
@@ -1,6 +1,5 @@
namespace Binance.Spot.ConvertExamples
{
- using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
@@ -25,7 +24,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var convert = new Convert(httpClient, apiKey, apiSecret);
+ var convert = new Convert(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await convert.GetConvertTradeHistory(1563189166000, 1563282766000);
}
diff --git a/Examples/CSharp/CryptoLoans/GetCryptoLoansIncomeHistory_Example.cs b/Examples/CSharp/CryptoLoans/GetCryptoLoansIncomeHistory_Example.cs
index abeefd0..0137042 100644
--- a/Examples/CSharp/CryptoLoans/GetCryptoLoansIncomeHistory_Example.cs
+++ b/Examples/CSharp/CryptoLoans/GetCryptoLoansIncomeHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var cryptoLoans = new CryptoLoans(httpClient, apiKey, apiSecret);
+ var cryptoLoans = new CryptoLoans(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await cryptoLoans.GetCryptoLoansIncomeHistory("BTC");
}
diff --git a/Examples/CSharp/Fiat/GetFiatDepositWithdrawHistory_Example.cs b/Examples/CSharp/Fiat/GetFiatDepositWithdrawHistory_Example.cs
index 9787d31..f20115a 100644
--- a/Examples/CSharp/Fiat/GetFiatDepositWithdrawHistory_Example.cs
+++ b/Examples/CSharp/Fiat/GetFiatDepositWithdrawHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var fiat = new Fiat(httpClient, apiKey, apiSecret);
+ var fiat = new Fiat(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await fiat.GetFiatDepositWithdrawHistory(FiatOrderTransactionType.DEPOSIT);
}
diff --git a/Examples/CSharp/Fiat/GetFiatPaymentsHistory_Example.cs b/Examples/CSharp/Fiat/GetFiatPaymentsHistory_Example.cs
index 814e503..f1e0179 100644
--- a/Examples/CSharp/Fiat/GetFiatPaymentsHistory_Example.cs
+++ b/Examples/CSharp/Fiat/GetFiatPaymentsHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var fiat = new Fiat(httpClient, apiKey, apiSecret);
+ var fiat = new Fiat(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await fiat.GetFiatPaymentsHistory(FiatPaymentTransactionType.BUY);
}
diff --git a/Examples/CSharp/Futures/AdjustCrosscollateralLtvHistory_Example.cs b/Examples/CSharp/Futures/AdjustCrosscollateralLtvHistory_Example.cs
index 8dc8490..099e9a0 100644
--- a/Examples/CSharp/Futures/AdjustCrosscollateralLtvHistory_Example.cs
+++ b/Examples/CSharp/Futures/AdjustCrosscollateralLtvHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.AdjustCrosscollateralLtvHistory();
}
diff --git a/Examples/CSharp/Futures/AdjustCrosscollateralLtvV2_Example.cs b/Examples/CSharp/Futures/AdjustCrosscollateralLtvV2_Example.cs
index e7474ba..c24b1ad 100644
--- a/Examples/CSharp/Futures/AdjustCrosscollateralLtvV2_Example.cs
+++ b/Examples/CSharp/Futures/AdjustCrosscollateralLtvV2_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.AdjustCrosscollateralLtvV2("BUSD", "BTC", 5m, LoanDirection.ADDITIONAL);
}
diff --git a/Examples/CSharp/Futures/AdjustCrosscollateralLtv_Example.cs b/Examples/CSharp/Futures/AdjustCrosscollateralLtv_Example.cs
index f8c5f7a..a10dcf7 100644
--- a/Examples/CSharp/Futures/AdjustCrosscollateralLtv_Example.cs
+++ b/Examples/CSharp/Futures/AdjustCrosscollateralLtv_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.AdjustCrosscollateralLtv("BUSD", 5m, LoanDirection.ADDITIONAL);
}
diff --git a/Examples/CSharp/Futures/BorrowForCrosscollateral_Example.cs b/Examples/CSharp/Futures/BorrowForCrosscollateral_Example.cs
index 0b9dd13..f8d08a7 100644
--- a/Examples/CSharp/Futures/BorrowForCrosscollateral_Example.cs
+++ b/Examples/CSharp/Futures/BorrowForCrosscollateral_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.BorrowForCrosscollateral("USDT", "BUSD");
}
diff --git a/Examples/CSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtvV2_Example.cs b/Examples/CSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtvV2_Example.cs
index 4072c5f..23cc2d3 100644
--- a/Examples/CSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtvV2_Example.cs
+++ b/Examples/CSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtvV2_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CalculateRateAfterAdjustCrosscollateralLtvV2("BTC", "BUSD", 1.2375m, LoanDirection.ADDITIONAL);
}
diff --git a/Examples/CSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtv_Example.cs b/Examples/CSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtv_Example.cs
index 9fbb999..0eb6ef8 100644
--- a/Examples/CSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtv_Example.cs
+++ b/Examples/CSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtv_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CalculateRateAfterAdjustCrosscollateralLtv("BUSD", 1.2376m, LoanDirection.ADDITIONAL);
}
diff --git a/Examples/CSharp/Futures/CheckCollateralRepayLimit_Example.cs b/Examples/CSharp/Futures/CheckCollateralRepayLimit_Example.cs
index 3766edc..76b3a62 100644
--- a/Examples/CSharp/Futures/CheckCollateralRepayLimit_Example.cs
+++ b/Examples/CSharp/Futures/CheckCollateralRepayLimit_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CheckCollateralRepayLimit("USDT", "BTC");
}
diff --git a/Examples/CSharp/Futures/CollateralRepaymentResult_Example.cs b/Examples/CSharp/Futures/CollateralRepaymentResult_Example.cs
index d554b40..31ba4a0 100644
--- a/Examples/CSharp/Futures/CollateralRepaymentResult_Example.cs
+++ b/Examples/CSharp/Futures/CollateralRepaymentResult_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CollateralRepaymentResult("3eece81ca2734042b2f538ea0d9cbdd3");
}
diff --git a/Examples/CSharp/Futures/CrosscollateralBorrowHistory_Example.cs b/Examples/CSharp/Futures/CrosscollateralBorrowHistory_Example.cs
index e5785ad..5c0f151 100644
--- a/Examples/CSharp/Futures/CrosscollateralBorrowHistory_Example.cs
+++ b/Examples/CSharp/Futures/CrosscollateralBorrowHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CrosscollateralBorrowHistory();
}
diff --git a/Examples/CSharp/Futures/CrosscollateralInformationV2_Example.cs b/Examples/CSharp/Futures/CrosscollateralInformationV2_Example.cs
index 15f740a..eb64b24 100644
--- a/Examples/CSharp/Futures/CrosscollateralInformationV2_Example.cs
+++ b/Examples/CSharp/Futures/CrosscollateralInformationV2_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CrosscollateralInformationV2();
}
diff --git a/Examples/CSharp/Futures/CrosscollateralInformation_Example.cs b/Examples/CSharp/Futures/CrosscollateralInformation_Example.cs
index fd434b1..67c787f 100644
--- a/Examples/CSharp/Futures/CrosscollateralInformation_Example.cs
+++ b/Examples/CSharp/Futures/CrosscollateralInformation_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CrosscollateralInformation();
}
diff --git a/Examples/CSharp/Futures/CrosscollateralInterestHistory_Example.cs b/Examples/CSharp/Futures/CrosscollateralInterestHistory_Example.cs
index 301d03d..0a87ea0 100644
--- a/Examples/CSharp/Futures/CrosscollateralInterestHistory_Example.cs
+++ b/Examples/CSharp/Futures/CrosscollateralInterestHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CrosscollateralInterestHistory();
}
diff --git a/Examples/CSharp/Futures/CrosscollateralLiquidationHistory_Example.cs b/Examples/CSharp/Futures/CrosscollateralLiquidationHistory_Example.cs
index f45a97c..e41770c 100644
--- a/Examples/CSharp/Futures/CrosscollateralLiquidationHistory_Example.cs
+++ b/Examples/CSharp/Futures/CrosscollateralLiquidationHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CrosscollateralLiquidationHistory();
}
diff --git a/Examples/CSharp/Futures/CrosscollateralRepaymentHistory_Example.cs b/Examples/CSharp/Futures/CrosscollateralRepaymentHistory_Example.cs
index da8d1b9..f2cab64 100644
--- a/Examples/CSharp/Futures/CrosscollateralRepaymentHistory_Example.cs
+++ b/Examples/CSharp/Futures/CrosscollateralRepaymentHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CrosscollateralRepaymentHistory();
}
diff --git a/Examples/CSharp/Futures/CrosscollateralWalletV2_Example.cs b/Examples/CSharp/Futures/CrosscollateralWalletV2_Example.cs
index e7d6f45..aa8e5dd 100644
--- a/Examples/CSharp/Futures/CrosscollateralWalletV2_Example.cs
+++ b/Examples/CSharp/Futures/CrosscollateralWalletV2_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CrosscollateralWalletV2();
}
diff --git a/Examples/CSharp/Futures/CrosscollateralWallet_Example.cs b/Examples/CSharp/Futures/CrosscollateralWallet_Example.cs
index 9edadc0..990df14 100644
--- a/Examples/CSharp/Futures/CrosscollateralWallet_Example.cs
+++ b/Examples/CSharp/Futures/CrosscollateralWallet_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.CrosscollateralWallet();
}
diff --git a/Examples/CSharp/Futures/GetCollateralRepayQuote_Example.cs b/Examples/CSharp/Futures/GetCollateralRepayQuote_Example.cs
index b84dcae..3c94d60 100644
--- a/Examples/CSharp/Futures/GetCollateralRepayQuote_Example.cs
+++ b/Examples/CSharp/Futures/GetCollateralRepayQuote_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.GetCollateralRepayQuote("USDT", "BTC", 0.00222m);
}
diff --git a/Examples/CSharp/Futures/GetFutureAccountTransactionHistoryList_Example.cs b/Examples/CSharp/Futures/GetFutureAccountTransactionHistoryList_Example.cs
index 975d9fd..adeb208 100644
--- a/Examples/CSharp/Futures/GetFutureAccountTransactionHistoryList_Example.cs
+++ b/Examples/CSharp/Futures/GetFutureAccountTransactionHistoryList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.GetFutureAccountTransactionHistoryList("USDT", 1631318399000);
}
diff --git a/Examples/CSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtvV2_Example.cs b/Examples/CSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtvV2_Example.cs
index 546526c..e8dcde6 100644
--- a/Examples/CSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtvV2_Example.cs
+++ b/Examples/CSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtvV2_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.GetMaxAmountForAdjustCrosscollateralLtvV2("BTC", "BUSD");
}
diff --git a/Examples/CSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtv_Example.cs b/Examples/CSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtv_Example.cs
index 2cb9c18..1a5b55b 100644
--- a/Examples/CSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtv_Example.cs
+++ b/Examples/CSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtv_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.GetMaxAmountForAdjustCrosscollateralLtv("USDT");
}
diff --git a/Examples/CSharp/Futures/NewFutureAccountTransfer_Example.cs b/Examples/CSharp/Futures/NewFutureAccountTransfer_Example.cs
index 63669ae..1dc9314 100644
--- a/Examples/CSharp/Futures/NewFutureAccountTransfer_Example.cs
+++ b/Examples/CSharp/Futures/NewFutureAccountTransfer_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.NewFutureAccountTransfer("USDT", 522.23m, FuturesTransferType.SPOT_TO_USDT_MARGINED_FUTURES);
}
diff --git a/Examples/CSharp/Futures/RepayForCrosscollateral_Example.cs b/Examples/CSharp/Futures/RepayForCrosscollateral_Example.cs
index 2a2e3d4..52fa4ea 100644
--- a/Examples/CSharp/Futures/RepayForCrosscollateral_Example.cs
+++ b/Examples/CSharp/Futures/RepayForCrosscollateral_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.RepayForCrosscollateral("USDT", "BUSD", 1.68m);
}
diff --git a/Examples/CSharp/Futures/RepayWithCollateral_Example.cs b/Examples/CSharp/Futures/RepayWithCollateral_Example.cs
index f2bbf37..b574138 100644
--- a/Examples/CSharp/Futures/RepayWithCollateral_Example.cs
+++ b/Examples/CSharp/Futures/RepayWithCollateral_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var futures = new Futures(httpClient, apiKey, apiSecret);
+ var futures = new Futures(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await futures.RepayWithCollateral("3eece81ca2734042b2f538ea0d9cbdd3");
}
diff --git a/Examples/CSharp/GiftCard/CreateBinanceCode_Example.cs b/Examples/CSharp/GiftCard/CreateBinanceCode_Example.cs
index 21f93d5..83b7617 100644
--- a/Examples/CSharp/GiftCard/CreateBinanceCode_Example.cs
+++ b/Examples/CSharp/GiftCard/CreateBinanceCode_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var giftCard = new GiftCard(httpClient, apiKey, apiSecret);
+ var giftCard = new GiftCard(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await giftCard.CreateBinanceCode("BTC", 1.01);
}
diff --git a/Examples/CSharp/GiftCard/FetchRsaPublicKey_Example.cs b/Examples/CSharp/GiftCard/FetchRsaPublicKey_Example.cs
index 9201deb..81c16ac 100644
--- a/Examples/CSharp/GiftCard/FetchRsaPublicKey_Example.cs
+++ b/Examples/CSharp/GiftCard/FetchRsaPublicKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var giftCard = new GiftCard(httpClient, apiKey, apiSecret);
+ var giftCard = new GiftCard(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await giftCard.FetchRsaPublicKey();
}
diff --git a/Examples/CSharp/GiftCard/RedeemBinanceCode_Example.cs b/Examples/CSharp/GiftCard/RedeemBinanceCode_Example.cs
index 87ef9cb..4bf1a92 100644
--- a/Examples/CSharp/GiftCard/RedeemBinanceCode_Example.cs
+++ b/Examples/CSharp/GiftCard/RedeemBinanceCode_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var giftCard = new GiftCard(httpClient, apiKey, apiSecret);
+ var giftCard = new GiftCard(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await giftCard.RedeemBinanceCode("000000");
}
diff --git a/Examples/CSharp/GiftCard/VerifyBinanceCode_Example.cs b/Examples/CSharp/GiftCard/VerifyBinanceCode_Example.cs
index 611d23e..1d14a40 100644
--- a/Examples/CSharp/GiftCard/VerifyBinanceCode_Example.cs
+++ b/Examples/CSharp/GiftCard/VerifyBinanceCode_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var giftCard = new GiftCard(httpClient, apiKey, apiSecret);
+ var giftCard = new GiftCard(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await giftCard.VerifyBinanceCode("000000000000000000");
}
diff --git a/Examples/CSharp/MarginAccountTrade/CrossMarginAccountTransfer_Example.cs b/Examples/CSharp/MarginAccountTrade/CrossMarginAccountTransfer_Example.cs
index 543d281..f73c1da 100644
--- a/Examples/CSharp/MarginAccountTrade/CrossMarginAccountTransfer_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/CrossMarginAccountTransfer_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.CrossMarginAccountTransfer("BTC", 1.01m, MarginTransferType.SPOT_TO_MARGIN);
}
diff --git a/Examples/CSharp/MarginAccountTrade/DisableIsolatedMarginAccount_Example.cs b/Examples/CSharp/MarginAccountTrade/DisableIsolatedMarginAccount_Example.cs
index 24eff90..3821862 100644
--- a/Examples/CSharp/MarginAccountTrade/DisableIsolatedMarginAccount_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/DisableIsolatedMarginAccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.DisableIsolatedMarginAccount("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/EnableIsolatedMarginAccount_Example.cs b/Examples/CSharp/MarginAccountTrade/EnableIsolatedMarginAccount_Example.cs
index 7268eeb..e31f663 100644
--- a/Examples/CSharp/MarginAccountTrade/EnableIsolatedMarginAccount_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/EnableIsolatedMarginAccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.EnableIsolatedMarginAccount("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/GetAllCrossMarginPairs_Example.cs b/Examples/CSharp/MarginAccountTrade/GetAllCrossMarginPairs_Example.cs
index ec5c112..bccb52a 100644
--- a/Examples/CSharp/MarginAccountTrade/GetAllCrossMarginPairs_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/GetAllCrossMarginPairs_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.GetAllCrossMarginPairs();
}
diff --git a/Examples/CSharp/MarginAccountTrade/GetAllIsolatedMarginSymbol_Example.cs b/Examples/CSharp/MarginAccountTrade/GetAllIsolatedMarginSymbol_Example.cs
index bc7f32c..3d0f437 100644
--- a/Examples/CSharp/MarginAccountTrade/GetAllIsolatedMarginSymbol_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/GetAllIsolatedMarginSymbol_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.GetAllIsolatedMarginSymbol();
}
diff --git a/Examples/CSharp/MarginAccountTrade/GetAllMarginAssets_Example.cs b/Examples/CSharp/MarginAccountTrade/GetAllMarginAssets_Example.cs
index 9429313..e157162 100644
--- a/Examples/CSharp/MarginAccountTrade/GetAllMarginAssets_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/GetAllMarginAssets_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.GetAllMarginAssets();
}
diff --git a/Examples/CSharp/MarginAccountTrade/GetBnbBurnStatus_Example.cs b/Examples/CSharp/MarginAccountTrade/GetBnbBurnStatus_Example.cs
index 062e340..fc91d15 100644
--- a/Examples/CSharp/MarginAccountTrade/GetBnbBurnStatus_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/GetBnbBurnStatus_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.GetBnbBurnStatus();
}
diff --git a/Examples/CSharp/MarginAccountTrade/GetCrossMarginTransferHistory_Example.cs b/Examples/CSharp/MarginAccountTrade/GetCrossMarginTransferHistory_Example.cs
index e4d005c..2aa55cf 100644
--- a/Examples/CSharp/MarginAccountTrade/GetCrossMarginTransferHistory_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/GetCrossMarginTransferHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.GetCrossMarginTransferHistory();
}
diff --git a/Examples/CSharp/MarginAccountTrade/GetForceLiquidationRecord_Example.cs b/Examples/CSharp/MarginAccountTrade/GetForceLiquidationRecord_Example.cs
index de19834..b8c0e85 100644
--- a/Examples/CSharp/MarginAccountTrade/GetForceLiquidationRecord_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/GetForceLiquidationRecord_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.GetForceLiquidationRecord();
}
diff --git a/Examples/CSharp/MarginAccountTrade/GetInterestHistory_Example.cs b/Examples/CSharp/MarginAccountTrade/GetInterestHistory_Example.cs
index 695dae8..c03a1f3 100644
--- a/Examples/CSharp/MarginAccountTrade/GetInterestHistory_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/GetInterestHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.GetInterestHistory();
}
diff --git a/Examples/CSharp/MarginAccountTrade/GetIsolatedMarginTransferHistory_Example.cs b/Examples/CSharp/MarginAccountTrade/GetIsolatedMarginTransferHistory_Example.cs
index 751f8d9..fbcf47f 100644
--- a/Examples/CSharp/MarginAccountTrade/GetIsolatedMarginTransferHistory_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/GetIsolatedMarginTransferHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.GetIsolatedMarginTransferHistory("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/IsolatedMarginAccountTransfer_Example.cs b/Examples/CSharp/MarginAccountTrade/IsolatedMarginAccountTransfer_Example.cs
index 0e68760..bb6f017 100644
--- a/Examples/CSharp/MarginAccountTrade/IsolatedMarginAccountTransfer_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/IsolatedMarginAccountTransfer_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.IsolatedMarginAccountTransfer("BTC", "BNBUSDT", IsolatedMarginAccountTransferType.SPOT, IsolatedMarginAccountTransferType.ISOLATED_MARGIN, 1.01m);
}
diff --git a/Examples/CSharp/MarginAccountTrade/MarginAccountBorrow_Example.cs b/Examples/CSharp/MarginAccountTrade/MarginAccountBorrow_Example.cs
index c7ae432..b6743b2 100644
--- a/Examples/CSharp/MarginAccountTrade/MarginAccountBorrow_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/MarginAccountBorrow_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.MarginAccountBorrow("BTC", 1.01m);
}
diff --git a/Examples/CSharp/MarginAccountTrade/MarginAccountCancelAllOpenOrdersOnASymbol_Example.cs b/Examples/CSharp/MarginAccountTrade/MarginAccountCancelAllOpenOrdersOnASymbol_Example.cs
index 603f6e5..5521c0f 100644
--- a/Examples/CSharp/MarginAccountTrade/MarginAccountCancelAllOpenOrdersOnASymbol_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/MarginAccountCancelAllOpenOrdersOnASymbol_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.MarginAccountCancelAllOpenOrdersOnASymbol("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/MarginAccountCancelOco_Example.cs b/Examples/CSharp/MarginAccountTrade/MarginAccountCancelOco_Example.cs
index 755843e..d4ce841 100644
--- a/Examples/CSharp/MarginAccountTrade/MarginAccountCancelOco_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/MarginAccountCancelOco_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.MarginAccountCancelOco("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/MarginAccountCancelOrder_Example.cs b/Examples/CSharp/MarginAccountTrade/MarginAccountCancelOrder_Example.cs
index 2e0e030..6c90b1c 100644
--- a/Examples/CSharp/MarginAccountTrade/MarginAccountCancelOrder_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/MarginAccountCancelOrder_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.MarginAccountCancelOrder("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/MarginAccountNewOco_Example.cs b/Examples/CSharp/MarginAccountTrade/MarginAccountNewOco_Example.cs
index 4e9b625..91d1a36 100644
--- a/Examples/CSharp/MarginAccountTrade/MarginAccountNewOco_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/MarginAccountNewOco_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.MarginAccountNewOco("BNBUSDT", Side.SELL, 0.1m, 400.15m, 390.3m);
}
diff --git a/Examples/CSharp/MarginAccountTrade/MarginAccountNewOrder_Example.cs b/Examples/CSharp/MarginAccountTrade/MarginAccountNewOrder_Example.cs
index f678c2c..3800964 100644
--- a/Examples/CSharp/MarginAccountTrade/MarginAccountNewOrder_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/MarginAccountNewOrder_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.MarginAccountNewOrder("BNBUSDT", Side.SELL, OrderType.MARKET);
}
diff --git a/Examples/CSharp/MarginAccountTrade/MarginAccountRepay_Example.cs b/Examples/CSharp/MarginAccountTrade/MarginAccountRepay_Example.cs
index e0961eb..1096e2c 100644
--- a/Examples/CSharp/MarginAccountTrade/MarginAccountRepay_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/MarginAccountRepay_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.MarginAccountRepay("BTC", 1.01m);
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryCrossMarginAccountDetails_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryCrossMarginAccountDetails_Example.cs
index b990b01..bac7fd5 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryCrossMarginAccountDetails_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryCrossMarginAccountDetails_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryCrossMarginAccountDetails();
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryCrossMarginFeeData_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryCrossMarginFeeData_Example.cs
index 71962a3..d69cf28 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryCrossMarginFeeData_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryCrossMarginFeeData_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryCrossMarginFeeData();
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryCrossMarginPair_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryCrossMarginPair_Example.cs
index 003770b..4b3a177 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryCrossMarginPair_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryCrossMarginPair_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryCrossMarginPair("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryCurrentMarginOrderCountUsage_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryCurrentMarginOrderCountUsage_Example.cs
index 72a6709..47a66b7 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryCurrentMarginOrderCountUsage_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryCurrentMarginOrderCountUsage_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryCurrentMarginOrderCountUsage();
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryEnabledIsolatedMarginAccountLimit_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryEnabledIsolatedMarginAccountLimit_Example.cs
index fd5f272..a0a26ed 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryEnabledIsolatedMarginAccountLimit_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryEnabledIsolatedMarginAccountLimit_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryEnabledIsolatedMarginAccountLimit();
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginAccountInfo_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginAccountInfo_Example.cs
index 653a2c7..05bdb01 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginAccountInfo_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginAccountInfo_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryIsolatedMarginAccountInfo();
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginFeeData_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginFeeData_Example.cs
index 911545e..14c5912 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginFeeData_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginFeeData_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryIsolatedMarginFeeData();
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginSymbol_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginSymbol_Example.cs
index 5573aaa..86c53bf 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginSymbol_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginSymbol_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryIsolatedMarginSymbol("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginTierData_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginTierData_Example.cs
index 7211220..6ce91ad 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginTierData_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryIsolatedMarginTierData_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryIsolatedMarginTierData("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryLoanRecord_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryLoanRecord_Example.cs
index cf011ac..45cbb10 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryLoanRecord_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryLoanRecord_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryLoanRecord("BTC");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsAllOco_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsAllOco_Example.cs
index fe3e3c6..b7ab33f 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsAllOco_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsAllOco_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMarginAccountsAllOco();
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsAllOrders_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsAllOrders_Example.cs
index e5ce28e..20a8f3f 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsAllOrders_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsAllOrders_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMarginAccountsAllOrders("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOco_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOco_Example.cs
index 26c6c1d..11f1dcf 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOco_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOco_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMarginAccountsOco();
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOpenOco_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOpenOco_Example.cs
index 3e8b8f4..e8c5b81 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOpenOco_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOpenOco_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMarginAccountsOpenOco();
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOpenOrders_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOpenOrders_Example.cs
index ef935c8..53edd8e 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOpenOrders_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOpenOrders_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMarginAccountsOpenOrders();
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOrder_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOrder_Example.cs
index ac3c434..f7c3292 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOrder_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsOrder_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMarginAccountsOrder("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsTradeList_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsTradeList_Example.cs
index a1030cf..633c8eb 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsTradeList_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMarginAccountsTradeList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMarginAccountsTradeList("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMarginAsset_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMarginAsset_Example.cs
index 466d6c3..de8ef6a 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMarginAsset_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMarginAsset_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMarginAsset("BTC");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMarginInterestRateHistory_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMarginInterestRateHistory_Example.cs
index b54e212..a0b3e8e 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMarginInterestRateHistory_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMarginInterestRateHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMarginInterestRateHistory("BTC");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMarginPriceindex_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMarginPriceindex_Example.cs
index 9f4ea95..379f0ad 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMarginPriceindex_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMarginPriceindex_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMarginPriceindex("BNBUSDT");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMaxBorrow_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMaxBorrow_Example.cs
index 5618b31..d02b14b 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMaxBorrow_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMaxBorrow_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMaxBorrow("BTC");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryMaxTransferoutAmount_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryMaxTransferoutAmount_Example.cs
index fdace67..7c54125 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryMaxTransferoutAmount_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryMaxTransferoutAmount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryMaxTransferoutAmount("BTC");
}
diff --git a/Examples/CSharp/MarginAccountTrade/QueryRepayRecord_Example.cs b/Examples/CSharp/MarginAccountTrade/QueryRepayRecord_Example.cs
index 3604352..d05c118 100644
--- a/Examples/CSharp/MarginAccountTrade/QueryRepayRecord_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/QueryRepayRecord_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.QueryRepayRecord("BTC");
}
diff --git a/Examples/CSharp/MarginAccountTrade/ToggleBnbBurnOnSpotTradeAndMarginInterest_Example.cs b/Examples/CSharp/MarginAccountTrade/ToggleBnbBurnOnSpotTradeAndMarginInterest_Example.cs
index 652f457..deab2d9 100644
--- a/Examples/CSharp/MarginAccountTrade/ToggleBnbBurnOnSpotTradeAndMarginInterest_Example.cs
+++ b/Examples/CSharp/MarginAccountTrade/ToggleBnbBurnOnSpotTradeAndMarginInterest_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret);
+ var marginAccountTrade = new MarginAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await marginAccountTrade.ToggleBnbBurnOnSpotTradeAndMarginInterest();
}
diff --git a/Examples/CSharp/Market/OldTradeLookup_Example.cs b/Examples/CSharp/Market/OldTradeLookup_Example.cs
index b692909..86c493b 100644
--- a/Examples/CSharp/Market/OldTradeLookup_Example.cs
+++ b/Examples/CSharp/Market/OldTradeLookup_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var market = new Market(httpClient, apiKey, apiSecret);
+ var market = new Market(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await market.OldTradeLookup("BNBUSDT");
}
diff --git a/Examples/CSharp/Market/RollingWindowPriceChangeStatistics_Example.cs b/Examples/CSharp/Market/RollingWindowPriceChangeStatistics_Example.cs
new file mode 100644
index 0000000..bad4b7b
--- /dev/null
+++ b/Examples/CSharp/Market/RollingWindowPriceChangeStatistics_Example.cs
@@ -0,0 +1,30 @@
+namespace Binance.Spot.MarketExamples
+{
+ using System;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading.Tasks;
+ using Binance.Common;
+ using Binance.Spot;
+ using Binance.Spot.Models;
+ using Microsoft.Extensions.Logging;
+
+ public class RollingWindowPriceChangeStatistics_Example
+ {
+ public static async Task Main(string[] args)
+ {
+ using var loggerFactory = LoggerFactory.Create(builder =>
+ {
+ builder.AddConsole();
+ });
+ ILogger logger = loggerFactory.CreateLogger();
+
+ HttpMessageHandler loggingHandler = new BinanceLoggingHandler(logger: logger);
+ HttpClient httpClient = new HttpClient(handler: loggingHandler);
+
+ var market = new Market(httpClient);
+
+ var result = await market.RollingWindowPriceChangeStatistics();
+ }
+ }
+}
\ No newline at end of file
diff --git a/Examples/CSharp/Mining/AccountList_Example.cs b/Examples/CSharp/Mining/AccountList_Example.cs
index f81eabb..092fff0 100644
--- a/Examples/CSharp/Mining/AccountList_Example.cs
+++ b/Examples/CSharp/Mining/AccountList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.AccountList("sha256", "username");
}
diff --git a/Examples/CSharp/Mining/AcquiringAlgorithm_Example.cs b/Examples/CSharp/Mining/AcquiringAlgorithm_Example.cs
index 35174fe..053a1cf 100644
--- a/Examples/CSharp/Mining/AcquiringAlgorithm_Example.cs
+++ b/Examples/CSharp/Mining/AcquiringAlgorithm_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.AcquiringAlgorithm();
}
diff --git a/Examples/CSharp/Mining/AcquiringCoinname_Example.cs b/Examples/CSharp/Mining/AcquiringCoinname_Example.cs
index 669a340..b2fe861 100644
--- a/Examples/CSharp/Mining/AcquiringCoinname_Example.cs
+++ b/Examples/CSharp/Mining/AcquiringCoinname_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.AcquiringCoinname();
}
diff --git a/Examples/CSharp/Mining/CancelHashrateResaleConfiguration_Example.cs b/Examples/CSharp/Mining/CancelHashrateResaleConfiguration_Example.cs
index b11a5ae..5cfc4c3 100644
--- a/Examples/CSharp/Mining/CancelHashrateResaleConfiguration_Example.cs
+++ b/Examples/CSharp/Mining/CancelHashrateResaleConfiguration_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.CancelHashrateResaleConfiguration(168, "username");
}
diff --git a/Examples/CSharp/Mining/EarningsList_Example.cs b/Examples/CSharp/Mining/EarningsList_Example.cs
index c2784ca..3636aab 100644
--- a/Examples/CSharp/Mining/EarningsList_Example.cs
+++ b/Examples/CSharp/Mining/EarningsList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.EarningsList("sha256", "username");
}
diff --git a/Examples/CSharp/Mining/ExtraBonusList_Example.cs b/Examples/CSharp/Mining/ExtraBonusList_Example.cs
index d874e9c..d5d4c3e 100644
--- a/Examples/CSharp/Mining/ExtraBonusList_Example.cs
+++ b/Examples/CSharp/Mining/ExtraBonusList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.ExtraBonusList("sha256", "username");
}
diff --git a/Examples/CSharp/Mining/HashrateResaleDetail_Example.cs b/Examples/CSharp/Mining/HashrateResaleDetail_Example.cs
index 77a0d63..1d320cf 100644
--- a/Examples/CSharp/Mining/HashrateResaleDetail_Example.cs
+++ b/Examples/CSharp/Mining/HashrateResaleDetail_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.HashrateResaleDetail("168", "username");
}
diff --git a/Examples/CSharp/Mining/HashrateResaleList_Example.cs b/Examples/CSharp/Mining/HashrateResaleList_Example.cs
index d5ffa7d..298a52a 100644
--- a/Examples/CSharp/Mining/HashrateResaleList_Example.cs
+++ b/Examples/CSharp/Mining/HashrateResaleList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.HashrateResaleList();
}
diff --git a/Examples/CSharp/Mining/HashrateResaleRequest_Example.cs b/Examples/CSharp/Mining/HashrateResaleRequest_Example.cs
index 801b6e5..dfe7851 100644
--- a/Examples/CSharp/Mining/HashrateResaleRequest_Example.cs
+++ b/Examples/CSharp/Mining/HashrateResaleRequest_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.HashrateResaleRequest("username", "sha256", "username", 100000000);
}
diff --git a/Examples/CSharp/Mining/MiningAccountEarning_Example.cs b/Examples/CSharp/Mining/MiningAccountEarning_Example.cs
index 0b8e0f7..083b538 100644
--- a/Examples/CSharp/Mining/MiningAccountEarning_Example.cs
+++ b/Examples/CSharp/Mining/MiningAccountEarning_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.MiningAccountEarning("sha256");
}
diff --git a/Examples/CSharp/Mining/RequestForDetailMinerList_Example.cs b/Examples/CSharp/Mining/RequestForDetailMinerList_Example.cs
index 703df3a..a3c6992 100644
--- a/Examples/CSharp/Mining/RequestForDetailMinerList_Example.cs
+++ b/Examples/CSharp/Mining/RequestForDetailMinerList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.RequestForDetailMinerList("sha256", "username", "workername");
}
diff --git a/Examples/CSharp/Mining/RequestForMinerList_Example.cs b/Examples/CSharp/Mining/RequestForMinerList_Example.cs
index 2e6d671..2c7c076 100644
--- a/Examples/CSharp/Mining/RequestForMinerList_Example.cs
+++ b/Examples/CSharp/Mining/RequestForMinerList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.RequestForMinerList("sha256", "username");
}
diff --git a/Examples/CSharp/Mining/StatisticList_Example.cs b/Examples/CSharp/Mining/StatisticList_Example.cs
index 22e3a28..00195d4 100644
--- a/Examples/CSharp/Mining/StatisticList_Example.cs
+++ b/Examples/CSharp/Mining/StatisticList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var mining = new Mining(httpClient, apiKey, apiSecret);
+ var mining = new Mining(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await mining.StatisticList("sha256", "username");
}
diff --git a/Examples/CSharp/NFT/GetNftAsset_Example.cs b/Examples/CSharp/NFT/GetNftAsset_Example.cs
index e9605f4..fc67a58 100644
--- a/Examples/CSharp/NFT/GetNftAsset_Example.cs
+++ b/Examples/CSharp/NFT/GetNftAsset_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var nft = new NFT(httpClient, apiKey, apiSecret);
+ var nft = new NFT(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await nft.GetNftAsset();
}
diff --git a/Examples/CSharp/NFT/GetNftDepositHistory_Example.cs b/Examples/CSharp/NFT/GetNftDepositHistory_Example.cs
index ba1aecb..a2ca8ae 100644
--- a/Examples/CSharp/NFT/GetNftDepositHistory_Example.cs
+++ b/Examples/CSharp/NFT/GetNftDepositHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var nft = new NFT(httpClient, apiKey, apiSecret);
+ var nft = new NFT(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await nft.GetNftDepositHistory();
}
diff --git a/Examples/CSharp/NFT/GetNftTransactionHistory_Example.cs b/Examples/CSharp/NFT/GetNftTransactionHistory_Example.cs
index 819e15b..8b8e739 100644
--- a/Examples/CSharp/NFT/GetNftTransactionHistory_Example.cs
+++ b/Examples/CSharp/NFT/GetNftTransactionHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var nft = new NFT(httpClient, apiKey, apiSecret);
+ var nft = new NFT(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await nft.GetNftTransactionHistory(1);
}
diff --git a/Examples/CSharp/NFT/GetNftWithdrawHistory_Example.cs b/Examples/CSharp/NFT/GetNftWithdrawHistory_Example.cs
index 1f57a19..ef726e1 100644
--- a/Examples/CSharp/NFT/GetNftWithdrawHistory_Example.cs
+++ b/Examples/CSharp/NFT/GetNftWithdrawHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var nft = new NFT(httpClient, apiKey, apiSecret);
+ var nft = new NFT(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await nft.GetNftWithdrawHistory();
}
diff --git a/Examples/CSharp/Pay/GetPayTradeHistory_Example.cs b/Examples/CSharp/Pay/GetPayTradeHistory_Example.cs
index 663ae23..1a98bc7 100644
--- a/Examples/CSharp/Pay/GetPayTradeHistory_Example.cs
+++ b/Examples/CSharp/Pay/GetPayTradeHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var pay = new Pay(httpClient, apiKey, apiSecret);
+ var pay = new Pay(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await pay.GetPayTradeHistory();
}
diff --git a/Examples/CSharp/PortfolioMargin/GetPortfolioMarginAccountInfo_Example.cs b/Examples/CSharp/PortfolioMargin/GetPortfolioMarginAccountInfo_Example.cs
index 1a26578..8d5dc63 100644
--- a/Examples/CSharp/PortfolioMargin/GetPortfolioMarginAccountInfo_Example.cs
+++ b/Examples/CSharp/PortfolioMargin/GetPortfolioMarginAccountInfo_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var portfolioMargin = new PortfolioMargin(httpClient, apiKey, apiSecret);
+ var portfolioMargin = new PortfolioMargin(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await portfolioMargin.GetPortfolioMarginAccountInfo();
}
diff --git a/Examples/CSharp/Rebate/GetSpotRebateHistoryRecords_Example.cs b/Examples/CSharp/Rebate/GetSpotRebateHistoryRecords_Example.cs
index 25c1e1d..94b3927 100644
--- a/Examples/CSharp/Rebate/GetSpotRebateHistoryRecords_Example.cs
+++ b/Examples/CSharp/Rebate/GetSpotRebateHistoryRecords_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var rebate = new Rebate(httpClient, apiKey, apiSecret);
+ var rebate = new Rebate(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await rebate.GetSpotRebateHistoryRecords();
}
diff --git a/Examples/CSharp/Savings/ChangeFixedActivityPositionToDailyPosition_Example.cs b/Examples/CSharp/Savings/ChangeFixedActivityPositionToDailyPosition_Example.cs
index e361465..09d13d8 100644
--- a/Examples/CSharp/Savings/ChangeFixedActivityPositionToDailyPosition_Example.cs
+++ b/Examples/CSharp/Savings/ChangeFixedActivityPositionToDailyPosition_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.ChangeFixedActivityPositionToDailyPosition("1234", 1);
}
diff --git a/Examples/CSharp/Savings/GetFixedActivityProjectPosition_Example.cs b/Examples/CSharp/Savings/GetFixedActivityProjectPosition_Example.cs
index 6e38c28..786f3a4 100644
--- a/Examples/CSharp/Savings/GetFixedActivityProjectPosition_Example.cs
+++ b/Examples/CSharp/Savings/GetFixedActivityProjectPosition_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.GetFixedActivityProjectPosition("BTC");
}
diff --git a/Examples/CSharp/Savings/GetFixedAndActivityProjectList_Example.cs b/Examples/CSharp/Savings/GetFixedAndActivityProjectList_Example.cs
index 0385c68..ca8bed3 100644
--- a/Examples/CSharp/Savings/GetFixedAndActivityProjectList_Example.cs
+++ b/Examples/CSharp/Savings/GetFixedAndActivityProjectList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.GetFixedAndActivityProjectList(FixedAndActivityProjectType.ACTIVITY);
}
diff --git a/Examples/CSharp/Savings/GetFlexibleProductList_Example.cs b/Examples/CSharp/Savings/GetFlexibleProductList_Example.cs
index 507888b..4c6cd7b 100644
--- a/Examples/CSharp/Savings/GetFlexibleProductList_Example.cs
+++ b/Examples/CSharp/Savings/GetFlexibleProductList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.GetFlexibleProductList();
}
diff --git a/Examples/CSharp/Savings/GetFlexibleProductPosition_Example.cs b/Examples/CSharp/Savings/GetFlexibleProductPosition_Example.cs
index 5481671..e03d2a0 100644
--- a/Examples/CSharp/Savings/GetFlexibleProductPosition_Example.cs
+++ b/Examples/CSharp/Savings/GetFlexibleProductPosition_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.GetFlexibleProductPosition("BTC");
}
diff --git a/Examples/CSharp/Savings/GetInterestHistory_Example.cs b/Examples/CSharp/Savings/GetInterestHistory_Example.cs
index e99ab83..fc670e4 100644
--- a/Examples/CSharp/Savings/GetInterestHistory_Example.cs
+++ b/Examples/CSharp/Savings/GetInterestHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.GetInterestHistory(LendingType.DAILY);
}
diff --git a/Examples/CSharp/Savings/GetLeftDailyPurchaseQuotaOfFlexibleProduct_Example.cs b/Examples/CSharp/Savings/GetLeftDailyPurchaseQuotaOfFlexibleProduct_Example.cs
index 404a782..4b2604b 100644
--- a/Examples/CSharp/Savings/GetLeftDailyPurchaseQuotaOfFlexibleProduct_Example.cs
+++ b/Examples/CSharp/Savings/GetLeftDailyPurchaseQuotaOfFlexibleProduct_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.GetLeftDailyPurchaseQuotaOfFlexibleProduct("1234");
}
diff --git a/Examples/CSharp/Savings/GetLeftDailyRedemptionQuotaOfFlexibleProduct_Example.cs b/Examples/CSharp/Savings/GetLeftDailyRedemptionQuotaOfFlexibleProduct_Example.cs
index 4e80e10..5a687ea 100644
--- a/Examples/CSharp/Savings/GetLeftDailyRedemptionQuotaOfFlexibleProduct_Example.cs
+++ b/Examples/CSharp/Savings/GetLeftDailyRedemptionQuotaOfFlexibleProduct_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.GetLeftDailyRedemptionQuotaOfFlexibleProduct("1234", RedemptionType.FAST);
}
diff --git a/Examples/CSharp/Savings/GetPurchaseRecord_Example.cs b/Examples/CSharp/Savings/GetPurchaseRecord_Example.cs
index 0267a39..fe75cf5 100644
--- a/Examples/CSharp/Savings/GetPurchaseRecord_Example.cs
+++ b/Examples/CSharp/Savings/GetPurchaseRecord_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.GetPurchaseRecord(LendingType.DAILY);
}
diff --git a/Examples/CSharp/Savings/GetRedemptionRecord_Example.cs b/Examples/CSharp/Savings/GetRedemptionRecord_Example.cs
index a1aca28..dfc2f78 100644
--- a/Examples/CSharp/Savings/GetRedemptionRecord_Example.cs
+++ b/Examples/CSharp/Savings/GetRedemptionRecord_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.GetRedemptionRecord(LendingType.DAILY);
}
diff --git a/Examples/CSharp/Savings/LendingAccount_Example.cs b/Examples/CSharp/Savings/LendingAccount_Example.cs
index adea5d1..6d59f7f 100644
--- a/Examples/CSharp/Savings/LendingAccount_Example.cs
+++ b/Examples/CSharp/Savings/LendingAccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.LendingAccount();
}
diff --git a/Examples/CSharp/Savings/PurchaseFixedActivityProject_Example.cs b/Examples/CSharp/Savings/PurchaseFixedActivityProject_Example.cs
index 35e270d..92afec7 100644
--- a/Examples/CSharp/Savings/PurchaseFixedActivityProject_Example.cs
+++ b/Examples/CSharp/Savings/PurchaseFixedActivityProject_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.PurchaseFixedActivityProject("1234", 1);
}
diff --git a/Examples/CSharp/Savings/PurchaseFlexibleProduct_Example.cs b/Examples/CSharp/Savings/PurchaseFlexibleProduct_Example.cs
index c1a530e..d437e90 100644
--- a/Examples/CSharp/Savings/PurchaseFlexibleProduct_Example.cs
+++ b/Examples/CSharp/Savings/PurchaseFlexibleProduct_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.PurchaseFlexibleProduct("1234", 1.01m);
}
diff --git a/Examples/CSharp/Savings/RedeemFlexibleProduct_Example.cs b/Examples/CSharp/Savings/RedeemFlexibleProduct_Example.cs
index 0ec4270..473cda4 100644
--- a/Examples/CSharp/Savings/RedeemFlexibleProduct_Example.cs
+++ b/Examples/CSharp/Savings/RedeemFlexibleProduct_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var savings = new Savings(httpClient, apiKey, apiSecret);
+ var savings = new Savings(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await savings.RedeemFlexibleProduct("1234", 1.01m, RedemptionType.FAST);
}
diff --git a/Examples/CSharp/SpotAccountTrade/AccountInformation_Example.cs b/Examples/CSharp/SpotAccountTrade/AccountInformation_Example.cs
index 0717723..d94fc27 100644
--- a/Examples/CSharp/SpotAccountTrade/AccountInformation_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/AccountInformation_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.AccountInformation();
}
diff --git a/Examples/CSharp/SpotAccountTrade/AccountTradeList_Example.cs b/Examples/CSharp/SpotAccountTrade/AccountTradeList_Example.cs
index 51249f9..1704fbf 100644
--- a/Examples/CSharp/SpotAccountTrade/AccountTradeList_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/AccountTradeList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.AccountTradeList("BNBUSDT");
}
diff --git a/Examples/CSharp/SpotAccountTrade/AllOrders_Example.cs b/Examples/CSharp/SpotAccountTrade/AllOrders_Example.cs
index cbe67a5..dbca675 100644
--- a/Examples/CSharp/SpotAccountTrade/AllOrders_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/AllOrders_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.AllOrders("BNBUSDT");
}
diff --git a/Examples/CSharp/SpotAccountTrade/CancelAllOpenOrdersOnASymbol_Example.cs b/Examples/CSharp/SpotAccountTrade/CancelAllOpenOrdersOnASymbol_Example.cs
index 6c20027..6dde762 100644
--- a/Examples/CSharp/SpotAccountTrade/CancelAllOpenOrdersOnASymbol_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/CancelAllOpenOrdersOnASymbol_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.CancelAllOpenOrdersOnASymbol("BNBUSDT");
}
diff --git a/Examples/CSharp/SpotAccountTrade/CancelAnExistingOrderAndSendANewOrder_Example.cs b/Examples/CSharp/SpotAccountTrade/CancelAnExistingOrderAndSendANewOrder_Example.cs
new file mode 100644
index 0000000..b967fde
--- /dev/null
+++ b/Examples/CSharp/SpotAccountTrade/CancelAnExistingOrderAndSendANewOrder_Example.cs
@@ -0,0 +1,33 @@
+namespace Binance.Spot.SpotAccountTradeExamples
+{
+ using System;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading.Tasks;
+ using Binance.Common;
+ using Binance.Spot;
+ using Binance.Spot.Models;
+ using Microsoft.Extensions.Logging;
+
+ public class CancelAnExistingOrderAndSendANewOrder_Example
+ {
+ public static async Task Main(string[] args)
+ {
+ using var loggerFactory = LoggerFactory.Create(builder =>
+ {
+ builder.AddConsole();
+ });
+ ILogger logger = loggerFactory.CreateLogger();
+
+ HttpMessageHandler loggingHandler = new BinanceLoggingHandler(logger: logger);
+ HttpClient httpClient = new HttpClient(handler: loggingHandler);
+
+ string apiKey = "api-key";
+ string apiSecret = "api-secret";
+
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+
+ var result = await spotAccountTrade.CancelAnExistingOrderAndSendANewOrder("BNBUSDT", Side.SELL, OrderType.LIMIT, "STOP_ON_FAILURE", cancelOrderId: 12, timeInForce: TimeInForce.GTC, quantity: 10.1m, price: 295.92m);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Examples/CSharp/SpotAccountTrade/CancelOco_Example.cs b/Examples/CSharp/SpotAccountTrade/CancelOco_Example.cs
index 0b52506..41c4d45 100644
--- a/Examples/CSharp/SpotAccountTrade/CancelOco_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/CancelOco_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.CancelOco("BNBUSDT");
}
diff --git a/Examples/CSharp/SpotAccountTrade/CancelOrder_Example.cs b/Examples/CSharp/SpotAccountTrade/CancelOrder_Example.cs
index 875bd7a..a07cb1c 100644
--- a/Examples/CSharp/SpotAccountTrade/CancelOrder_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/CancelOrder_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.CancelOrder("BNBUSDT");
}
diff --git a/Examples/CSharp/SpotAccountTrade/CurrentOpenOrders_Example.cs b/Examples/CSharp/SpotAccountTrade/CurrentOpenOrders_Example.cs
index ccd2430..95c8fb0 100644
--- a/Examples/CSharp/SpotAccountTrade/CurrentOpenOrders_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/CurrentOpenOrders_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.CurrentOpenOrders();
}
diff --git a/Examples/CSharp/SpotAccountTrade/NewOco_Example.cs b/Examples/CSharp/SpotAccountTrade/NewOco_Example.cs
index e5cc506..2c26fb2 100644
--- a/Examples/CSharp/SpotAccountTrade/NewOco_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/NewOco_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.NewOco("BNBUSDT", Side.SELL, 0.1m, 400.15m, 390.3m);
}
diff --git a/Examples/CSharp/SpotAccountTrade/NewOrder_Example.cs b/Examples/CSharp/SpotAccountTrade/NewOrder_Example.cs
index c97d3f7..e7ef43d 100644
--- a/Examples/CSharp/SpotAccountTrade/NewOrder_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/NewOrder_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.NewOrder("BNBUSDT", Side.SELL, OrderType.MARKET);
}
diff --git a/Examples/CSharp/SpotAccountTrade/QueryAllOco_Example.cs b/Examples/CSharp/SpotAccountTrade/QueryAllOco_Example.cs
index f32f2b5..bffb5f0 100644
--- a/Examples/CSharp/SpotAccountTrade/QueryAllOco_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/QueryAllOco_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.QueryAllOco();
}
diff --git a/Examples/CSharp/SpotAccountTrade/QueryCurrentOrderCountUsage_Example.cs b/Examples/CSharp/SpotAccountTrade/QueryCurrentOrderCountUsage_Example.cs
index 253d99c..5e01189 100644
--- a/Examples/CSharp/SpotAccountTrade/QueryCurrentOrderCountUsage_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/QueryCurrentOrderCountUsage_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.QueryCurrentOrderCountUsage();
}
diff --git a/Examples/CSharp/SpotAccountTrade/QueryOco_Example.cs b/Examples/CSharp/SpotAccountTrade/QueryOco_Example.cs
index a5d5f84..067e4da 100644
--- a/Examples/CSharp/SpotAccountTrade/QueryOco_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/QueryOco_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.QueryOco();
}
diff --git a/Examples/CSharp/SpotAccountTrade/QueryOpenOco_Example.cs b/Examples/CSharp/SpotAccountTrade/QueryOpenOco_Example.cs
index 66131f3..b28c117 100644
--- a/Examples/CSharp/SpotAccountTrade/QueryOpenOco_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/QueryOpenOco_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.QueryOpenOco();
}
diff --git a/Examples/CSharp/SpotAccountTrade/QueryOrder_Example.cs b/Examples/CSharp/SpotAccountTrade/QueryOrder_Example.cs
index be58671..c8974db 100644
--- a/Examples/CSharp/SpotAccountTrade/QueryOrder_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/QueryOrder_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.QueryOrder("BNBUSDT");
}
diff --git a/Examples/CSharp/SpotAccountTrade/TestNewOrder_Example.cs b/Examples/CSharp/SpotAccountTrade/TestNewOrder_Example.cs
index 0d5e72b..147c1e6 100644
--- a/Examples/CSharp/SpotAccountTrade/TestNewOrder_Example.cs
+++ b/Examples/CSharp/SpotAccountTrade/TestNewOrder_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret);
+ var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await spotAccountTrade.TestNewOrder("BNBUSDT", Side.SELL, OrderType.MARKET);
}
diff --git a/Examples/CSharp/Staking/GetPersonalLeftQuotaOfStakingProduct_Example.cs b/Examples/CSharp/Staking/GetPersonalLeftQuotaOfStakingProduct_Example.cs
index 6e04683..e510fb2 100644
--- a/Examples/CSharp/Staking/GetPersonalLeftQuotaOfStakingProduct_Example.cs
+++ b/Examples/CSharp/Staking/GetPersonalLeftQuotaOfStakingProduct_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var staking = new Staking(httpClient, apiKey, apiSecret);
+ var staking = new Staking(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await staking.GetPersonalLeftQuotaOfStakingProduct("STAKING", "Axs*90");
}
diff --git a/Examples/CSharp/Staking/GetStakingHistory_Example.cs b/Examples/CSharp/Staking/GetStakingHistory_Example.cs
index e8f80e7..b18ac79 100644
--- a/Examples/CSharp/Staking/GetStakingHistory_Example.cs
+++ b/Examples/CSharp/Staking/GetStakingHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var staking = new Staking(httpClient, apiKey, apiSecret);
+ var staking = new Staking(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await staking.GetStakingHistory("STAKING", "SUBSCRIPTION");
}
diff --git a/Examples/CSharp/Staking/GetStakingProductList_Example.cs b/Examples/CSharp/Staking/GetStakingProductList_Example.cs
index 50dfded..b9394a2 100644
--- a/Examples/CSharp/Staking/GetStakingProductList_Example.cs
+++ b/Examples/CSharp/Staking/GetStakingProductList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var staking = new Staking(httpClient, apiKey, apiSecret);
+ var staking = new Staking(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await staking.GetStakingProductList("STAKING");
}
diff --git a/Examples/CSharp/Staking/GetStakingProductPosition_Example.cs b/Examples/CSharp/Staking/GetStakingProductPosition_Example.cs
index ccac90d..d136441 100644
--- a/Examples/CSharp/Staking/GetStakingProductPosition_Example.cs
+++ b/Examples/CSharp/Staking/GetStakingProductPosition_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var staking = new Staking(httpClient, apiKey, apiSecret);
+ var staking = new Staking(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await staking.GetStakingProductPosition("STAKING");
}
diff --git a/Examples/CSharp/Staking/PurchaseStakingProduct_Example.cs b/Examples/CSharp/Staking/PurchaseStakingProduct_Example.cs
index 841ab6c..6aa51f7 100644
--- a/Examples/CSharp/Staking/PurchaseStakingProduct_Example.cs
+++ b/Examples/CSharp/Staking/PurchaseStakingProduct_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var staking = new Staking(httpClient, apiKey, apiSecret);
+ var staking = new Staking(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await staking.PurchaseStakingProduct("STAKING", "Axs*90", 10.1m);
}
diff --git a/Examples/CSharp/Staking/RedeemStakingProduct_Example.cs b/Examples/CSharp/Staking/RedeemStakingProduct_Example.cs
index cb629ab..7b23f42 100644
--- a/Examples/CSharp/Staking/RedeemStakingProduct_Example.cs
+++ b/Examples/CSharp/Staking/RedeemStakingProduct_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var staking = new Staking(httpClient, apiKey, apiSecret);
+ var staking = new Staking(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await staking.RedeemStakingProduct("STAKING", "Axs*90");
}
diff --git a/Examples/CSharp/Staking/SetAutoStaking_Example.cs b/Examples/CSharp/Staking/SetAutoStaking_Example.cs
index 76a4823..a19674c 100644
--- a/Examples/CSharp/Staking/SetAutoStaking_Example.cs
+++ b/Examples/CSharp/Staking/SetAutoStaking_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var staking = new Staking(httpClient, apiKey, apiSecret);
+ var staking = new Staking(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await staking.SetAutoStaking("STAKING", "1234", "true");
}
diff --git a/Examples/CSharp/SubAccount/AddIpListForASubaccountApiKey_Example.cs b/Examples/CSharp/SubAccount/AddIpListForASubaccountApiKey_Example.cs
index 1d32489..ebf6c71 100644
--- a/Examples/CSharp/SubAccount/AddIpListForASubaccountApiKey_Example.cs
+++ b/Examples/CSharp/SubAccount/AddIpListForASubaccountApiKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.AddIpListForASubaccountApiKey("testaccount@email.com", "subAccountApiKey", "000.000.000.000");
}
diff --git a/Examples/CSharp/SubAccount/CreateAVirtualSubaccount_Example.cs b/Examples/CSharp/SubAccount/CreateAVirtualSubaccount_Example.cs
index b99da7a..eb94d6c 100644
--- a/Examples/CSharp/SubAccount/CreateAVirtualSubaccount_Example.cs
+++ b/Examples/CSharp/SubAccount/CreateAVirtualSubaccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.CreateAVirtualSubaccount("testaccount");
}
diff --git a/Examples/CSharp/SubAccount/DeleteIpListForASubaccountApiKey_Example.cs b/Examples/CSharp/SubAccount/DeleteIpListForASubaccountApiKey_Example.cs
index 92883a1..a1d73ab 100644
--- a/Examples/CSharp/SubAccount/DeleteIpListForASubaccountApiKey_Example.cs
+++ b/Examples/CSharp/SubAccount/DeleteIpListForASubaccountApiKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.DeleteIpListForASubaccountApiKey("testaccount@email.com", "subAccountApiKey", "000.000.000.000");
}
diff --git a/Examples/CSharp/SubAccount/DepositAssetsIntoTheManagedSubaccount_Example.cs b/Examples/CSharp/SubAccount/DepositAssetsIntoTheManagedSubaccount_Example.cs
index b9a8c3f..0dc87d5 100644
--- a/Examples/CSharp/SubAccount/DepositAssetsIntoTheManagedSubaccount_Example.cs
+++ b/Examples/CSharp/SubAccount/DepositAssetsIntoTheManagedSubaccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.DepositAssetsIntoTheManagedSubaccount("testaccount@email.com", "BTC", 1.01m);
}
diff --git a/Examples/CSharp/SubAccount/EnableFuturesForSubaccount_Example.cs b/Examples/CSharp/SubAccount/EnableFuturesForSubaccount_Example.cs
index 441054c..d93656f 100644
--- a/Examples/CSharp/SubAccount/EnableFuturesForSubaccount_Example.cs
+++ b/Examples/CSharp/SubAccount/EnableFuturesForSubaccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.EnableFuturesForSubaccount("testaccount@email.com");
}
diff --git a/Examples/CSharp/SubAccount/EnableLeverageTokenForSubaccount_Example.cs b/Examples/CSharp/SubAccount/EnableLeverageTokenForSubaccount_Example.cs
index e4b7b85..c6c0426 100644
--- a/Examples/CSharp/SubAccount/EnableLeverageTokenForSubaccount_Example.cs
+++ b/Examples/CSharp/SubAccount/EnableLeverageTokenForSubaccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.EnableLeverageTokenForSubaccount("testaccount@email.com", true);
}
diff --git a/Examples/CSharp/SubAccount/EnableMarginForSubaccount_Example.cs b/Examples/CSharp/SubAccount/EnableMarginForSubaccount_Example.cs
index cf34f5b..9ef7a8d 100644
--- a/Examples/CSharp/SubAccount/EnableMarginForSubaccount_Example.cs
+++ b/Examples/CSharp/SubAccount/EnableMarginForSubaccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.EnableMarginForSubaccount("testaccount@email.com");
}
diff --git a/Examples/CSharp/SubAccount/EnableOrDisableIpRestrictionForASubaccountApiKey_Example.cs b/Examples/CSharp/SubAccount/EnableOrDisableIpRestrictionForASubaccountApiKey_Example.cs
index cfc2f87..4f1559e 100644
--- a/Examples/CSharp/SubAccount/EnableOrDisableIpRestrictionForASubaccountApiKey_Example.cs
+++ b/Examples/CSharp/SubAccount/EnableOrDisableIpRestrictionForASubaccountApiKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.EnableOrDisableIpRestrictionForASubaccountApiKey("testaccount@email.com", "subAccountApiKey", true);
}
diff --git a/Examples/CSharp/SubAccount/FuturesTransferForSubaccount_Example.cs b/Examples/CSharp/SubAccount/FuturesTransferForSubaccount_Example.cs
index d0c5f41..8c4f5e2 100644
--- a/Examples/CSharp/SubAccount/FuturesTransferForSubaccount_Example.cs
+++ b/Examples/CSharp/SubAccount/FuturesTransferForSubaccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.FuturesTransferForSubaccount("testaccount@email.com", "BTC", 1.01m, FuturesTransferType.SPOT_TO_USDT_MARGINED_FUTURES);
}
diff --git a/Examples/CSharp/SubAccount/GetDetailOnSubaccountsFuturesAccountV2_Example.cs b/Examples/CSharp/SubAccount/GetDetailOnSubaccountsFuturesAccountV2_Example.cs
index eed0c50..79fe460 100644
--- a/Examples/CSharp/SubAccount/GetDetailOnSubaccountsFuturesAccountV2_Example.cs
+++ b/Examples/CSharp/SubAccount/GetDetailOnSubaccountsFuturesAccountV2_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetDetailOnSubaccountsFuturesAccountV2("testaccount@email.com", FuturesType.USDT_MARGINED_FUTURES);
}
diff --git a/Examples/CSharp/SubAccount/GetDetailOnSubaccountsFuturesAccount_Example.cs b/Examples/CSharp/SubAccount/GetDetailOnSubaccountsFuturesAccount_Example.cs
index 180ff45..dd6d1de 100644
--- a/Examples/CSharp/SubAccount/GetDetailOnSubaccountsFuturesAccount_Example.cs
+++ b/Examples/CSharp/SubAccount/GetDetailOnSubaccountsFuturesAccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetDetailOnSubaccountsFuturesAccount("testaccount@email.com");
}
diff --git a/Examples/CSharp/SubAccount/GetDetailOnSubaccountsMarginAccount_Example.cs b/Examples/CSharp/SubAccount/GetDetailOnSubaccountsMarginAccount_Example.cs
index 6f9d406..b6c178f 100644
--- a/Examples/CSharp/SubAccount/GetDetailOnSubaccountsMarginAccount_Example.cs
+++ b/Examples/CSharp/SubAccount/GetDetailOnSubaccountsMarginAccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetDetailOnSubaccountsMarginAccount("testaccount@email.com");
}
diff --git a/Examples/CSharp/SubAccount/GetFuturesPositionriskOfSubaccountV2_Example.cs b/Examples/CSharp/SubAccount/GetFuturesPositionriskOfSubaccountV2_Example.cs
index ab10b65..77e6fed 100644
--- a/Examples/CSharp/SubAccount/GetFuturesPositionriskOfSubaccountV2_Example.cs
+++ b/Examples/CSharp/SubAccount/GetFuturesPositionriskOfSubaccountV2_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetFuturesPositionriskOfSubaccountV2("testaccount@email.com", FuturesType.USDT_MARGINED_FUTURES);
}
diff --git a/Examples/CSharp/SubAccount/GetFuturesPositionriskOfSubaccount_Example.cs b/Examples/CSharp/SubAccount/GetFuturesPositionriskOfSubaccount_Example.cs
index ce4bcea..0c47bc8 100644
--- a/Examples/CSharp/SubAccount/GetFuturesPositionriskOfSubaccount_Example.cs
+++ b/Examples/CSharp/SubAccount/GetFuturesPositionriskOfSubaccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetFuturesPositionriskOfSubaccount("testaccount@email.com");
}
diff --git a/Examples/CSharp/SubAccount/GetIpRestrictionForASubaccountApiKey_Example.cs b/Examples/CSharp/SubAccount/GetIpRestrictionForASubaccountApiKey_Example.cs
index 2d8d0ec..7d4a4dd 100644
--- a/Examples/CSharp/SubAccount/GetIpRestrictionForASubaccountApiKey_Example.cs
+++ b/Examples/CSharp/SubAccount/GetIpRestrictionForASubaccountApiKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetIpRestrictionForASubaccountApiKey("testaccount@email.com", "subAccountApiKey");
}
diff --git a/Examples/CSharp/SubAccount/GetSubaccountDepositAddress_Example.cs b/Examples/CSharp/SubAccount/GetSubaccountDepositAddress_Example.cs
index 567404e..4c33755 100644
--- a/Examples/CSharp/SubAccount/GetSubaccountDepositAddress_Example.cs
+++ b/Examples/CSharp/SubAccount/GetSubaccountDepositAddress_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetSubaccountDepositAddress("testaccount@email.com", "BNB");
}
diff --git a/Examples/CSharp/SubAccount/GetSubaccountDepositHistory_Example.cs b/Examples/CSharp/SubAccount/GetSubaccountDepositHistory_Example.cs
index 9e10e0e..f443630 100644
--- a/Examples/CSharp/SubAccount/GetSubaccountDepositHistory_Example.cs
+++ b/Examples/CSharp/SubAccount/GetSubaccountDepositHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetSubaccountDepositHistory("testaccount@email.com");
}
diff --git a/Examples/CSharp/SubAccount/GetSubaccountsStatusOnMarginFutures_Example.cs b/Examples/CSharp/SubAccount/GetSubaccountsStatusOnMarginFutures_Example.cs
index c73d1da..ef08973 100644
--- a/Examples/CSharp/SubAccount/GetSubaccountsStatusOnMarginFutures_Example.cs
+++ b/Examples/CSharp/SubAccount/GetSubaccountsStatusOnMarginFutures_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetSubaccountsStatusOnMarginFutures();
}
diff --git a/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccountV2_Example.cs b/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccountV2_Example.cs
index 628eeba..47403e7 100644
--- a/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccountV2_Example.cs
+++ b/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccountV2_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetSummaryOfSubaccountsFuturesAccountV2(FuturesType.USDT_MARGINED_FUTURES);
}
diff --git a/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccount_Example.cs b/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccount_Example.cs
index ac55383..648b474 100644
--- a/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccount_Example.cs
+++ b/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetSummaryOfSubaccountsFuturesAccount();
}
diff --git a/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsMarginAccount_Example.cs b/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsMarginAccount_Example.cs
index d81bb2e..f6e5768 100644
--- a/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsMarginAccount_Example.cs
+++ b/Examples/CSharp/SubAccount/GetSummaryOfSubaccountsMarginAccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.GetSummaryOfSubaccountsMarginAccount();
}
diff --git a/Examples/CSharp/SubAccount/MarginTransferForSubaccount_Example.cs b/Examples/CSharp/SubAccount/MarginTransferForSubaccount_Example.cs
index 34d850d..bf07f21 100644
--- a/Examples/CSharp/SubAccount/MarginTransferForSubaccount_Example.cs
+++ b/Examples/CSharp/SubAccount/MarginTransferForSubaccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.MarginTransferForSubaccount("testaccount@email.com", "BTC", 1.01m, MarginTransferType.SPOT_TO_MARGIN);
}
diff --git a/Examples/CSharp/SubAccount/QueryManagedSubaccountAssetDetails_Example.cs b/Examples/CSharp/SubAccount/QueryManagedSubaccountAssetDetails_Example.cs
index 6e0f88a..da4e74f 100644
--- a/Examples/CSharp/SubAccount/QueryManagedSubaccountAssetDetails_Example.cs
+++ b/Examples/CSharp/SubAccount/QueryManagedSubaccountAssetDetails_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.QueryManagedSubaccountAssetDetails("testaccount@email.com");
}
diff --git a/Examples/CSharp/SubAccount/QueryManagedSubaccountSnapshot_Example.cs b/Examples/CSharp/SubAccount/QueryManagedSubaccountSnapshot_Example.cs
index ed98388..9fb1c1f 100644
--- a/Examples/CSharp/SubAccount/QueryManagedSubaccountSnapshot_Example.cs
+++ b/Examples/CSharp/SubAccount/QueryManagedSubaccountSnapshot_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.QueryManagedSubaccountSnapshot("testaccount@email.com", "SPOT");
}
diff --git a/Examples/CSharp/SubAccount/QuerySubaccountAssets_Example.cs b/Examples/CSharp/SubAccount/QuerySubaccountAssets_Example.cs
index 0b91c2d..357176a 100644
--- a/Examples/CSharp/SubAccount/QuerySubaccountAssets_Example.cs
+++ b/Examples/CSharp/SubAccount/QuerySubaccountAssets_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.QuerySubaccountAssets("testaccount@email.com");
}
diff --git a/Examples/CSharp/SubAccount/QuerySubaccountFuturesAssetTransferHistory_Example.cs b/Examples/CSharp/SubAccount/QuerySubaccountFuturesAssetTransferHistory_Example.cs
index 8a1145c..f190507 100644
--- a/Examples/CSharp/SubAccount/QuerySubaccountFuturesAssetTransferHistory_Example.cs
+++ b/Examples/CSharp/SubAccount/QuerySubaccountFuturesAssetTransferHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.QuerySubaccountFuturesAssetTransferHistory("testaccount@email.com", FuturesType.COIN_MARGINED_FUTURES);
}
diff --git a/Examples/CSharp/SubAccount/QuerySubaccountList_Example.cs b/Examples/CSharp/SubAccount/QuerySubaccountList_Example.cs
index 03c785c..544df80 100644
--- a/Examples/CSharp/SubAccount/QuerySubaccountList_Example.cs
+++ b/Examples/CSharp/SubAccount/QuerySubaccountList_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.QuerySubaccountList();
}
diff --git a/Examples/CSharp/SubAccount/QuerySubaccountSpotAssetTransferHistory_Example.cs b/Examples/CSharp/SubAccount/QuerySubaccountSpotAssetTransferHistory_Example.cs
index d130cf5..6d0f67e 100644
--- a/Examples/CSharp/SubAccount/QuerySubaccountSpotAssetTransferHistory_Example.cs
+++ b/Examples/CSharp/SubAccount/QuerySubaccountSpotAssetTransferHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.QuerySubaccountSpotAssetTransferHistory();
}
diff --git a/Examples/CSharp/SubAccount/QuerySubaccountSpotAssetsSummary_Example.cs b/Examples/CSharp/SubAccount/QuerySubaccountSpotAssetsSummary_Example.cs
index 493ea26..6fea842 100644
--- a/Examples/CSharp/SubAccount/QuerySubaccountSpotAssetsSummary_Example.cs
+++ b/Examples/CSharp/SubAccount/QuerySubaccountSpotAssetsSummary_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.QuerySubaccountSpotAssetsSummary();
}
diff --git a/Examples/CSharp/SubAccount/QueryUniversalTransferHistory_Example.cs b/Examples/CSharp/SubAccount/QueryUniversalTransferHistory_Example.cs
index 991f33a..f9fd4d7 100644
--- a/Examples/CSharp/SubAccount/QueryUniversalTransferHistory_Example.cs
+++ b/Examples/CSharp/SubAccount/QueryUniversalTransferHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.QueryUniversalTransferHistory();
}
diff --git a/Examples/CSharp/SubAccount/SubaccountFuturesAssetTransfer_Example.cs b/Examples/CSharp/SubAccount/SubaccountFuturesAssetTransfer_Example.cs
index 0e3513e..548f150 100644
--- a/Examples/CSharp/SubAccount/SubaccountFuturesAssetTransfer_Example.cs
+++ b/Examples/CSharp/SubAccount/SubaccountFuturesAssetTransfer_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.SubaccountFuturesAssetTransfer("testaccount@email.com", "testaccount2@email.com", FuturesType.COIN_MARGINED_FUTURES, "BTC", 1.01m);
}
diff --git a/Examples/CSharp/SubAccount/SubaccountTransferHistory_Example.cs b/Examples/CSharp/SubAccount/SubaccountTransferHistory_Example.cs
index d85d146..d7175f6 100644
--- a/Examples/CSharp/SubAccount/SubaccountTransferHistory_Example.cs
+++ b/Examples/CSharp/SubAccount/SubaccountTransferHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.SubaccountTransferHistory();
}
diff --git a/Examples/CSharp/SubAccount/TransferToMaster_Example.cs b/Examples/CSharp/SubAccount/TransferToMaster_Example.cs
index 6350ed9..8ffb20d 100644
--- a/Examples/CSharp/SubAccount/TransferToMaster_Example.cs
+++ b/Examples/CSharp/SubAccount/TransferToMaster_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.TransferToMaster("BTC", 1.01m);
}
diff --git a/Examples/CSharp/SubAccount/TransferToSubaccountOfSameMaster_Example.cs b/Examples/CSharp/SubAccount/TransferToSubaccountOfSameMaster_Example.cs
index a43ba2d..9fa0e68 100644
--- a/Examples/CSharp/SubAccount/TransferToSubaccountOfSameMaster_Example.cs
+++ b/Examples/CSharp/SubAccount/TransferToSubaccountOfSameMaster_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.TransferToSubaccountOfSameMaster("testaccount@email.com", "BTC", 1.01m);
}
diff --git a/Examples/CSharp/SubAccount/UniversalTransfer_Example.cs b/Examples/CSharp/SubAccount/UniversalTransfer_Example.cs
index 53327c1..80f8eb7 100644
--- a/Examples/CSharp/SubAccount/UniversalTransfer_Example.cs
+++ b/Examples/CSharp/SubAccount/UniversalTransfer_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.UniversalTransfer(UniversalTransferAccountType.SPOT, UniversalTransferAccountType.COIN_FUTURE, "BTC", 1.01m);
}
diff --git a/Examples/CSharp/SubAccount/WithdrawlAssetsFromTheManagedSubaccount_Example.cs b/Examples/CSharp/SubAccount/WithdrawlAssetsFromTheManagedSubaccount_Example.cs
index 0013b4a..1066fc5 100644
--- a/Examples/CSharp/SubAccount/WithdrawlAssetsFromTheManagedSubaccount_Example.cs
+++ b/Examples/CSharp/SubAccount/WithdrawlAssetsFromTheManagedSubaccount_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var subAccount = new SubAccount(httpClient, apiKey, apiSecret);
+ var subAccount = new SubAccount(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await subAccount.WithdrawlAssetsFromTheManagedSubaccount("testaccount@email.com", "BTC", 1.01m);
}
diff --git a/Examples/CSharp/UserDataStreams/CloseIsolatedMarginListenKey_Example.cs b/Examples/CSharp/UserDataStreams/CloseIsolatedMarginListenKey_Example.cs
index 2accecc..e9353e9 100644
--- a/Examples/CSharp/UserDataStreams/CloseIsolatedMarginListenKey_Example.cs
+++ b/Examples/CSharp/UserDataStreams/CloseIsolatedMarginListenKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret);
+ var userDataStreams = new UserDataStreams(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await userDataStreams.CloseIsolatedMarginListenKey("BTCUSDT", "listen-key");
}
diff --git a/Examples/CSharp/UserDataStreams/CloseMarginListenKey_Example.cs b/Examples/CSharp/UserDataStreams/CloseMarginListenKey_Example.cs
index e7192b0..d480946 100644
--- a/Examples/CSharp/UserDataStreams/CloseMarginListenKey_Example.cs
+++ b/Examples/CSharp/UserDataStreams/CloseMarginListenKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret);
+ var userDataStreams = new UserDataStreams(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await userDataStreams.CloseMarginListenKey("listen-key");
}
diff --git a/Examples/CSharp/UserDataStreams/CloseSpotListenKey_Example.cs b/Examples/CSharp/UserDataStreams/CloseSpotListenKey_Example.cs
index eda64b0..5cb0f8b 100644
--- a/Examples/CSharp/UserDataStreams/CloseSpotListenKey_Example.cs
+++ b/Examples/CSharp/UserDataStreams/CloseSpotListenKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret);
+ var userDataStreams = new UserDataStreams(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await userDataStreams.CloseSpotListenKey("listen-key");
}
diff --git a/Examples/CSharp/UserDataStreams/CreateIsolatedMarginListenKey_Example.cs b/Examples/CSharp/UserDataStreams/CreateIsolatedMarginListenKey_Example.cs
index fe9693a..f9ca4f9 100644
--- a/Examples/CSharp/UserDataStreams/CreateIsolatedMarginListenKey_Example.cs
+++ b/Examples/CSharp/UserDataStreams/CreateIsolatedMarginListenKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret);
+ var userDataStreams = new UserDataStreams(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await userDataStreams.CreateIsolatedMarginListenKey("BTCUSDT");
}
diff --git a/Examples/CSharp/UserDataStreams/CreateMarginListenKey_Example.cs b/Examples/CSharp/UserDataStreams/CreateMarginListenKey_Example.cs
index acdc774..b8ea6f2 100644
--- a/Examples/CSharp/UserDataStreams/CreateMarginListenKey_Example.cs
+++ b/Examples/CSharp/UserDataStreams/CreateMarginListenKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret);
+ var userDataStreams = new UserDataStreams(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await userDataStreams.CreateMarginListenKey();
}
diff --git a/Examples/CSharp/UserDataStreams/CreateSpotListenKey_Example.cs b/Examples/CSharp/UserDataStreams/CreateSpotListenKey_Example.cs
index 21b136d..4a9db60 100644
--- a/Examples/CSharp/UserDataStreams/CreateSpotListenKey_Example.cs
+++ b/Examples/CSharp/UserDataStreams/CreateSpotListenKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret);
+ var userDataStreams = new UserDataStreams(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await userDataStreams.CreateSpotListenKey();
}
diff --git a/Examples/CSharp/UserDataStreams/PingIsolatedMarginListenKey_Example.cs b/Examples/CSharp/UserDataStreams/PingIsolatedMarginListenKey_Example.cs
index 2741647..bf957fd 100644
--- a/Examples/CSharp/UserDataStreams/PingIsolatedMarginListenKey_Example.cs
+++ b/Examples/CSharp/UserDataStreams/PingIsolatedMarginListenKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret);
+ var userDataStreams = new UserDataStreams(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await userDataStreams.PingIsolatedMarginListenKey("BTCUSDT", "listen-key");
}
diff --git a/Examples/CSharp/UserDataStreams/PingMarginListenKey_Example.cs b/Examples/CSharp/UserDataStreams/PingMarginListenKey_Example.cs
index 5f9a2dd..3889a4b 100644
--- a/Examples/CSharp/UserDataStreams/PingMarginListenKey_Example.cs
+++ b/Examples/CSharp/UserDataStreams/PingMarginListenKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret);
+ var userDataStreams = new UserDataStreams(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await userDataStreams.PingMarginListenKey("listen-key");
}
diff --git a/Examples/CSharp/UserDataStreams/PingSpotListenKey_Example.cs b/Examples/CSharp/UserDataStreams/PingSpotListenKey_Example.cs
index 062d22d..5ff7186 100644
--- a/Examples/CSharp/UserDataStreams/PingSpotListenKey_Example.cs
+++ b/Examples/CSharp/UserDataStreams/PingSpotListenKey_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret);
+ var userDataStreams = new UserDataStreams(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await userDataStreams.PingSpotListenKey("listen-key");
}
diff --git a/Examples/CSharp/Wallet/AccountApiTradingStatus_Example.cs b/Examples/CSharp/Wallet/AccountApiTradingStatus_Example.cs
index 66a3d05..6cbfc52 100644
--- a/Examples/CSharp/Wallet/AccountApiTradingStatus_Example.cs
+++ b/Examples/CSharp/Wallet/AccountApiTradingStatus_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.AccountApiTradingStatus();
}
diff --git a/Examples/CSharp/Wallet/AccountStatus_Example.cs b/Examples/CSharp/Wallet/AccountStatus_Example.cs
index aed3ce3..1b747f2 100644
--- a/Examples/CSharp/Wallet/AccountStatus_Example.cs
+++ b/Examples/CSharp/Wallet/AccountStatus_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.AccountStatus();
}
diff --git a/Examples/CSharp/Wallet/AllCoinsInformation_Example.cs b/Examples/CSharp/Wallet/AllCoinsInformation_Example.cs
index 04a0161..5148a1e 100644
--- a/Examples/CSharp/Wallet/AllCoinsInformation_Example.cs
+++ b/Examples/CSharp/Wallet/AllCoinsInformation_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.AllCoinsInformation();
}
diff --git a/Examples/CSharp/Wallet/AssetDetail_Example.cs b/Examples/CSharp/Wallet/AssetDetail_Example.cs
index 3514856..c7b4196 100644
--- a/Examples/CSharp/Wallet/AssetDetail_Example.cs
+++ b/Examples/CSharp/Wallet/AssetDetail_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.AssetDetail();
}
diff --git a/Examples/CSharp/Wallet/AssetDividendRecord_Example.cs b/Examples/CSharp/Wallet/AssetDividendRecord_Example.cs
index 8e3bf72..338e7e7 100644
--- a/Examples/CSharp/Wallet/AssetDividendRecord_Example.cs
+++ b/Examples/CSharp/Wallet/AssetDividendRecord_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.AssetDividendRecord();
}
diff --git a/Examples/CSharp/Wallet/BnbConvertableAssets_Example.cs b/Examples/CSharp/Wallet/BnbConvertableAssets_Example.cs
index ea7011e..2cd40b3 100644
--- a/Examples/CSharp/Wallet/BnbConvertableAssets_Example.cs
+++ b/Examples/CSharp/Wallet/BnbConvertableAssets_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.BnbConvertableAssets();
}
diff --git a/Examples/CSharp/Wallet/DailyAccountSnapshot_Example.cs b/Examples/CSharp/Wallet/DailyAccountSnapshot_Example.cs
index 4367d60..bd91a7e 100644
--- a/Examples/CSharp/Wallet/DailyAccountSnapshot_Example.cs
+++ b/Examples/CSharp/Wallet/DailyAccountSnapshot_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.DailyAccountSnapshot(AccountType.SPOT);
}
diff --git a/Examples/CSharp/Wallet/DepositAddress_Example.cs b/Examples/CSharp/Wallet/DepositAddress_Example.cs
index e452d7e..bacf85d 100644
--- a/Examples/CSharp/Wallet/DepositAddress_Example.cs
+++ b/Examples/CSharp/Wallet/DepositAddress_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.DepositAddress("BNB");
}
diff --git a/Examples/CSharp/Wallet/DepositHistory_Example.cs b/Examples/CSharp/Wallet/DepositHistory_Example.cs
index 10c5cea..89c7aa3 100644
--- a/Examples/CSharp/Wallet/DepositHistory_Example.cs
+++ b/Examples/CSharp/Wallet/DepositHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.DepositHistory();
}
diff --git a/Examples/CSharp/Wallet/DisableFastWithdrawSwitch_Example.cs b/Examples/CSharp/Wallet/DisableFastWithdrawSwitch_Example.cs
index 56d0ee7..4f9d46e 100644
--- a/Examples/CSharp/Wallet/DisableFastWithdrawSwitch_Example.cs
+++ b/Examples/CSharp/Wallet/DisableFastWithdrawSwitch_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.DisableFastWithdrawSwitch();
}
diff --git a/Examples/CSharp/Wallet/DustTransfer_Example.cs b/Examples/CSharp/Wallet/DustTransfer_Example.cs
index de11043..27da41b 100644
--- a/Examples/CSharp/Wallet/DustTransfer_Example.cs
+++ b/Examples/CSharp/Wallet/DustTransfer_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.DustTransfer(new string[] { "BTC", "USDT" });
}
diff --git a/Examples/CSharp/Wallet/Dustlog_Example.cs b/Examples/CSharp/Wallet/Dustlog_Example.cs
index 06123c8..76f73d8 100644
--- a/Examples/CSharp/Wallet/Dustlog_Example.cs
+++ b/Examples/CSharp/Wallet/Dustlog_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.Dustlog();
}
diff --git a/Examples/CSharp/Wallet/EnableFastWithdrawSwitch_Example.cs b/Examples/CSharp/Wallet/EnableFastWithdrawSwitch_Example.cs
index ce6a545..3bd4c7f 100644
--- a/Examples/CSharp/Wallet/EnableFastWithdrawSwitch_Example.cs
+++ b/Examples/CSharp/Wallet/EnableFastWithdrawSwitch_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.EnableFastWithdrawSwitch();
}
diff --git a/Examples/CSharp/Wallet/FundingWallet_Example.cs b/Examples/CSharp/Wallet/FundingWallet_Example.cs
index a1479f3..c3e866b 100644
--- a/Examples/CSharp/Wallet/FundingWallet_Example.cs
+++ b/Examples/CSharp/Wallet/FundingWallet_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.FundingWallet();
}
diff --git a/Examples/CSharp/Wallet/GetApiKeyPermission_Example.cs b/Examples/CSharp/Wallet/GetApiKeyPermission_Example.cs
index 5291d82..3379bca 100644
--- a/Examples/CSharp/Wallet/GetApiKeyPermission_Example.cs
+++ b/Examples/CSharp/Wallet/GetApiKeyPermission_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.GetApiKeyPermission();
}
diff --git a/Examples/CSharp/Wallet/QueryUserUniversalTransferHistory_Example.cs b/Examples/CSharp/Wallet/QueryUserUniversalTransferHistory_Example.cs
index efebdfd..ba5e191 100644
--- a/Examples/CSharp/Wallet/QueryUserUniversalTransferHistory_Example.cs
+++ b/Examples/CSharp/Wallet/QueryUserUniversalTransferHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.QueryUserUniversalTransferHistory(UniversalTransferType.MAIN_UMFUTURE);
}
diff --git a/Examples/CSharp/Wallet/TradeFee_Example.cs b/Examples/CSharp/Wallet/TradeFee_Example.cs
index b3f9be9..8fce77d 100644
--- a/Examples/CSharp/Wallet/TradeFee_Example.cs
+++ b/Examples/CSharp/Wallet/TradeFee_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.TradeFee();
}
diff --git a/Examples/CSharp/Wallet/UserUniversalTransfer_Example.cs b/Examples/CSharp/Wallet/UserUniversalTransfer_Example.cs
index 3e3559b..546b1c6 100644
--- a/Examples/CSharp/Wallet/UserUniversalTransfer_Example.cs
+++ b/Examples/CSharp/Wallet/UserUniversalTransfer_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.UserUniversalTransfer(UniversalTransferType.MAIN_UMFUTURE, "BTC", 1.01m);
}
diff --git a/Examples/CSharp/Wallet/WithdrawHistory_Example.cs b/Examples/CSharp/Wallet/WithdrawHistory_Example.cs
index 61b7195..3dc2f07 100644
--- a/Examples/CSharp/Wallet/WithdrawHistory_Example.cs
+++ b/Examples/CSharp/Wallet/WithdrawHistory_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.WithdrawHistory();
}
diff --git a/Examples/CSharp/Wallet/Withdraw_Example.cs b/Examples/CSharp/Wallet/Withdraw_Example.cs
index 0f5d36e..c95c0e5 100644
--- a/Examples/CSharp/Wallet/Withdraw_Example.cs
+++ b/Examples/CSharp/Wallet/Withdraw_Example.cs
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
string apiKey = "api-key";
string apiSecret = "api-secret";
- var wallet = new Wallet(httpClient, apiKey, apiSecret);
+ var wallet = new Wallet(httpClient, apiKey: apiKey, apiSecret: apiSecret);
var result = await wallet.Withdraw("BNB", "address", 1.01m);
}
diff --git a/Examples/FSharp/BLVT/GetBlvtInfo_Example.fs b/Examples/FSharp/BLVT/GetBlvtInfo_Example.fs
index 9ba8cef..57576cd 100644
--- a/Examples/FSharp/BLVT/GetBlvtInfo_Example.fs
+++ b/Examples/FSharp/BLVT/GetBlvtInfo_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bLVT = new BLVT(httpClient, apiKey, apiSecret)
+ let bLVT = new BLVT(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bLVT.GetBlvtInfo() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BLVT/GetBlvtUserLimitInfo_Example.fs b/Examples/FSharp/BLVT/GetBlvtUserLimitInfo_Example.fs
index c914225..89bb17e 100644
--- a/Examples/FSharp/BLVT/GetBlvtUserLimitInfo_Example.fs
+++ b/Examples/FSharp/BLVT/GetBlvtUserLimitInfo_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bLVT = new BLVT(httpClient, apiKey, apiSecret)
+ let bLVT = new BLVT(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bLVT.GetBlvtUserLimitInfo() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BLVT/QueryRedemptionRecord_Example.fs b/Examples/FSharp/BLVT/QueryRedemptionRecord_Example.fs
index aff7326..8b14ad1 100644
--- a/Examples/FSharp/BLVT/QueryRedemptionRecord_Example.fs
+++ b/Examples/FSharp/BLVT/QueryRedemptionRecord_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bLVT = new BLVT(httpClient, apiKey, apiSecret)
+ let bLVT = new BLVT(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bLVT.QueryRedemptionRecord() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BLVT/QuerySubscriptionRecord_Example.fs b/Examples/FSharp/BLVT/QuerySubscriptionRecord_Example.fs
index 18b43c1..03123b8 100644
--- a/Examples/FSharp/BLVT/QuerySubscriptionRecord_Example.fs
+++ b/Examples/FSharp/BLVT/QuerySubscriptionRecord_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bLVT = new BLVT(httpClient, apiKey, apiSecret)
+ let bLVT = new BLVT(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bLVT.QuerySubscriptionRecord() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BLVT/RedeemBlvt_Example.fs b/Examples/FSharp/BLVT/RedeemBlvt_Example.fs
index 6fd561e..a69def4 100644
--- a/Examples/FSharp/BLVT/RedeemBlvt_Example.fs
+++ b/Examples/FSharp/BLVT/RedeemBlvt_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bLVT = new BLVT(httpClient, apiKey, apiSecret)
+ let bLVT = new BLVT(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bLVT.RedeemBlvt("BTCDOWN", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BLVT/SubscribeBlvt_Example.fs b/Examples/FSharp/BLVT/SubscribeBlvt_Example.fs
index 961121a..53d407e 100644
--- a/Examples/FSharp/BLVT/SubscribeBlvt_Example.fs
+++ b/Examples/FSharp/BLVT/SubscribeBlvt_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bLVT = new BLVT(httpClient, apiKey, apiSecret)
+ let bLVT = new BLVT(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bLVT.SubscribeBlvt("BTCDOWN", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/AddLiquidityPreview_Example.fs b/Examples/FSharp/BSwap/AddLiquidityPreview_Example.fs
index 8d45aae..ec51e52 100644
--- a/Examples/FSharp/BSwap/AddLiquidityPreview_Example.fs
+++ b/Examples/FSharp/BSwap/AddLiquidityPreview_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.AddLiquidityPreview(2, "SINGLE", "USDT", 12415.2m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/AddLiquidity_Example.fs b/Examples/FSharp/BSwap/AddLiquidity_Example.fs
index 9529f78..01497e2 100644
--- a/Examples/FSharp/BSwap/AddLiquidity_Example.fs
+++ b/Examples/FSharp/BSwap/AddLiquidity_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.AddLiquidity(2, "BTC", 12415.2m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/ClaimRewards_Example.fs b/Examples/FSharp/BSwap/ClaimRewards_Example.fs
index 0d4ec15..1ad62ea 100644
--- a/Examples/FSharp/BSwap/ClaimRewards_Example.fs
+++ b/Examples/FSharp/BSwap/ClaimRewards_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.ClaimRewards() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/GetClaimedHistory_Example.fs b/Examples/FSharp/BSwap/GetClaimedHistory_Example.fs
index 6df8190..c14db9b 100644
--- a/Examples/FSharp/BSwap/GetClaimedHistory_Example.fs
+++ b/Examples/FSharp/BSwap/GetClaimedHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.GetClaimedHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/GetLiquidityInformationOfAPool_Example.fs b/Examples/FSharp/BSwap/GetLiquidityInformationOfAPool_Example.fs
index 7b37858..9da62e8 100644
--- a/Examples/FSharp/BSwap/GetLiquidityInformationOfAPool_Example.fs
+++ b/Examples/FSharp/BSwap/GetLiquidityInformationOfAPool_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.GetLiquidityInformationOfAPool() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/GetLiquidityOperationRecord_Example.fs b/Examples/FSharp/BSwap/GetLiquidityOperationRecord_Example.fs
index 629932e..5310203 100644
--- a/Examples/FSharp/BSwap/GetLiquidityOperationRecord_Example.fs
+++ b/Examples/FSharp/BSwap/GetLiquidityOperationRecord_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.GetLiquidityOperationRecord() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/GetSwapHistory_Example.fs b/Examples/FSharp/BSwap/GetSwapHistory_Example.fs
index 2e4c377..5a41b37 100644
--- a/Examples/FSharp/BSwap/GetSwapHistory_Example.fs
+++ b/Examples/FSharp/BSwap/GetSwapHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.GetSwapHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/GetUnclaimedRewardsRecord_Example.fs b/Examples/FSharp/BSwap/GetUnclaimedRewardsRecord_Example.fs
index 4f01cd1..56dcd2b 100644
--- a/Examples/FSharp/BSwap/GetUnclaimedRewardsRecord_Example.fs
+++ b/Examples/FSharp/BSwap/GetUnclaimedRewardsRecord_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.GetUnclaimedRewardsRecord() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/ListAllSwapPools_Example.fs b/Examples/FSharp/BSwap/ListAllSwapPools_Example.fs
index 26ef0fd..987e1b5 100644
--- a/Examples/FSharp/BSwap/ListAllSwapPools_Example.fs
+++ b/Examples/FSharp/BSwap/ListAllSwapPools_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.ListAllSwapPools() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/PoolConfigure_Example.fs b/Examples/FSharp/BSwap/PoolConfigure_Example.fs
index 6cf6854..20ad848 100644
--- a/Examples/FSharp/BSwap/PoolConfigure_Example.fs
+++ b/Examples/FSharp/BSwap/PoolConfigure_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.PoolConfigure() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/RemoveLiquidityPreview_Example.fs b/Examples/FSharp/BSwap/RemoveLiquidityPreview_Example.fs
index 54d0cb9..b587227 100644
--- a/Examples/FSharp/BSwap/RemoveLiquidityPreview_Example.fs
+++ b/Examples/FSharp/BSwap/RemoveLiquidityPreview_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.RemoveLiquidityPreview(2, "SINGLE", "USDT", 12415.2m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/RemoveLiquidity_Example.fs b/Examples/FSharp/BSwap/RemoveLiquidity_Example.fs
index 08373fc..44452f4 100644
--- a/Examples/FSharp/BSwap/RemoveLiquidity_Example.fs
+++ b/Examples/FSharp/BSwap/RemoveLiquidity_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.RemoveLiquidity(2, LiquidityRemovalType.SINGLE, 12415.2m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/RequestQuote_Example.fs b/Examples/FSharp/BSwap/RequestQuote_Example.fs
index 5307dbd..c40e765 100644
--- a/Examples/FSharp/BSwap/RequestQuote_Example.fs
+++ b/Examples/FSharp/BSwap/RequestQuote_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.RequestQuote("USDT", "BUSD", 12415.2m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/BSwap/Swap_Example.fs b/Examples/FSharp/BSwap/Swap_Example.fs
index 2ee9913..4fc3f3f 100644
--- a/Examples/FSharp/BSwap/Swap_Example.fs
+++ b/Examples/FSharp/BSwap/Swap_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let bSwap = new BSwap(httpClient, apiKey, apiSecret)
+ let bSwap = new BSwap(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = bSwap.Swap("USDT", "BUSD", 12415.2m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/C2C/GetC2cTradeHistory_Example.fs b/Examples/FSharp/C2C/GetC2cTradeHistory_Example.fs
index 6f3b536..fc69266 100644
--- a/Examples/FSharp/C2C/GetC2cTradeHistory_Example.fs
+++ b/Examples/FSharp/C2C/GetC2cTradeHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let c2C = new C2C(httpClient, apiKey, apiSecret)
+ let c2C = new C2C(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = c2C.GetC2cTradeHistory(Side.BUY) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Convert/GetConvertTradeHistory_Example.fs b/Examples/FSharp/Convert/GetConvertTradeHistory_Example.fs
index 610fa1d..c95aa26 100644
--- a/Examples/FSharp/Convert/GetConvertTradeHistory_Example.fs
+++ b/Examples/FSharp/Convert/GetConvertTradeHistory_Example.fs
@@ -1,4 +1,3 @@
-open System
open System.Net
open System.Net.Http
open System.Threading.Tasks
@@ -20,8 +19,8 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let convert = new Convert(httpClient, apiKey, apiSecret)
+ let convert = new Convert(httpClient, apiKey = apiKey, apiSecret = apiSecret)
- let result = convert.GetConvertTradeHistory(1563189166000, 1563282766000) |> Async.AwaitTask |> Async.RunSynchronously
+ let result = convert.GetConvertTradeHistory(1563189166000L, 1563282766000L) |> Async.AwaitTask |> Async.RunSynchronously
0
diff --git a/Examples/FSharp/CryptoLoans/GetCryptoLoansIncomeHistory_Example.fs b/Examples/FSharp/CryptoLoans/GetCryptoLoansIncomeHistory_Example.fs
index e7ffaa9..289205f 100644
--- a/Examples/FSharp/CryptoLoans/GetCryptoLoansIncomeHistory_Example.fs
+++ b/Examples/FSharp/CryptoLoans/GetCryptoLoansIncomeHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let cryptoLoans = new CryptoLoans(httpClient, apiKey, apiSecret)
+ let cryptoLoans = new CryptoLoans(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = cryptoLoans.GetCryptoLoansIncomeHistory("BTC") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Fiat/GetFiatDepositWithdrawHistory_Example.fs b/Examples/FSharp/Fiat/GetFiatDepositWithdrawHistory_Example.fs
index 8d87d98..b5a02a2 100644
--- a/Examples/FSharp/Fiat/GetFiatDepositWithdrawHistory_Example.fs
+++ b/Examples/FSharp/Fiat/GetFiatDepositWithdrawHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let fiat = new Fiat(httpClient, apiKey, apiSecret)
+ let fiat = new Fiat(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = fiat.GetFiatDepositWithdrawHistory(FiatOrderTransactionType.DEPOSIT) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Fiat/GetFiatPaymentsHistory_Example.fs b/Examples/FSharp/Fiat/GetFiatPaymentsHistory_Example.fs
index d096684..1815373 100644
--- a/Examples/FSharp/Fiat/GetFiatPaymentsHistory_Example.fs
+++ b/Examples/FSharp/Fiat/GetFiatPaymentsHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let fiat = new Fiat(httpClient, apiKey, apiSecret)
+ let fiat = new Fiat(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = fiat.GetFiatPaymentsHistory(FiatPaymentTransactionType.BUY) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/AdjustCrosscollateralLtvHistory_Example.fs b/Examples/FSharp/Futures/AdjustCrosscollateralLtvHistory_Example.fs
index b607aa0..0fe88bf 100644
--- a/Examples/FSharp/Futures/AdjustCrosscollateralLtvHistory_Example.fs
+++ b/Examples/FSharp/Futures/AdjustCrosscollateralLtvHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.AdjustCrosscollateralLtvHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/AdjustCrosscollateralLtvV2_Example.fs b/Examples/FSharp/Futures/AdjustCrosscollateralLtvV2_Example.fs
index 05c787c..f50fe90 100644
--- a/Examples/FSharp/Futures/AdjustCrosscollateralLtvV2_Example.fs
+++ b/Examples/FSharp/Futures/AdjustCrosscollateralLtvV2_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.AdjustCrosscollateralLtvV2("BUSD", "BTC", 5m, LoanDirection.ADDITIONAL) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/AdjustCrosscollateralLtv_Example.fs b/Examples/FSharp/Futures/AdjustCrosscollateralLtv_Example.fs
index a979143..61b1c28 100644
--- a/Examples/FSharp/Futures/AdjustCrosscollateralLtv_Example.fs
+++ b/Examples/FSharp/Futures/AdjustCrosscollateralLtv_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.AdjustCrosscollateralLtv("BUSD", 5m, LoanDirection.ADDITIONAL) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/BorrowForCrosscollateral_Example.fs b/Examples/FSharp/Futures/BorrowForCrosscollateral_Example.fs
index 5d699bd..ef19ba4 100644
--- a/Examples/FSharp/Futures/BorrowForCrosscollateral_Example.fs
+++ b/Examples/FSharp/Futures/BorrowForCrosscollateral_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.BorrowForCrosscollateral("USDT", "BUSD") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtvV2_Example.fs b/Examples/FSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtvV2_Example.fs
index 1b8a83f..3fb290e 100644
--- a/Examples/FSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtvV2_Example.fs
+++ b/Examples/FSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtvV2_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CalculateRateAfterAdjustCrosscollateralLtvV2("BTC", "BUSD", 1.2375m, LoanDirection.ADDITIONAL) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtv_Example.fs b/Examples/FSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtv_Example.fs
index 73573be..12d2a28 100644
--- a/Examples/FSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtv_Example.fs
+++ b/Examples/FSharp/Futures/CalculateRateAfterAdjustCrosscollateralLtv_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CalculateRateAfterAdjustCrosscollateralLtv("BUSD", 1.2376m, LoanDirection.ADDITIONAL) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CheckCollateralRepayLimit_Example.fs b/Examples/FSharp/Futures/CheckCollateralRepayLimit_Example.fs
index 2bb7f46..2d6d4cb 100644
--- a/Examples/FSharp/Futures/CheckCollateralRepayLimit_Example.fs
+++ b/Examples/FSharp/Futures/CheckCollateralRepayLimit_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CheckCollateralRepayLimit("USDT", "BTC") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CollateralRepaymentResult_Example.fs b/Examples/FSharp/Futures/CollateralRepaymentResult_Example.fs
index 5d5acb6..323bd16 100644
--- a/Examples/FSharp/Futures/CollateralRepaymentResult_Example.fs
+++ b/Examples/FSharp/Futures/CollateralRepaymentResult_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CollateralRepaymentResult("3eece81ca2734042b2f538ea0d9cbdd3") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CrosscollateralBorrowHistory_Example.fs b/Examples/FSharp/Futures/CrosscollateralBorrowHistory_Example.fs
index 56fdf2e..cdb20d0 100644
--- a/Examples/FSharp/Futures/CrosscollateralBorrowHistory_Example.fs
+++ b/Examples/FSharp/Futures/CrosscollateralBorrowHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CrosscollateralBorrowHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CrosscollateralInformationV2_Example.fs b/Examples/FSharp/Futures/CrosscollateralInformationV2_Example.fs
index 7685f22..6789ff1 100644
--- a/Examples/FSharp/Futures/CrosscollateralInformationV2_Example.fs
+++ b/Examples/FSharp/Futures/CrosscollateralInformationV2_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CrosscollateralInformationV2() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CrosscollateralInformation_Example.fs b/Examples/FSharp/Futures/CrosscollateralInformation_Example.fs
index 67a26a4..b365f56 100644
--- a/Examples/FSharp/Futures/CrosscollateralInformation_Example.fs
+++ b/Examples/FSharp/Futures/CrosscollateralInformation_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CrosscollateralInformation() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CrosscollateralInterestHistory_Example.fs b/Examples/FSharp/Futures/CrosscollateralInterestHistory_Example.fs
index 2974518..c01bf15 100644
--- a/Examples/FSharp/Futures/CrosscollateralInterestHistory_Example.fs
+++ b/Examples/FSharp/Futures/CrosscollateralInterestHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CrosscollateralInterestHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CrosscollateralLiquidationHistory_Example.fs b/Examples/FSharp/Futures/CrosscollateralLiquidationHistory_Example.fs
index 9c91fa2..e7acb87 100644
--- a/Examples/FSharp/Futures/CrosscollateralLiquidationHistory_Example.fs
+++ b/Examples/FSharp/Futures/CrosscollateralLiquidationHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CrosscollateralLiquidationHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CrosscollateralRepaymentHistory_Example.fs b/Examples/FSharp/Futures/CrosscollateralRepaymentHistory_Example.fs
index 6cea12c..709c5e1 100644
--- a/Examples/FSharp/Futures/CrosscollateralRepaymentHistory_Example.fs
+++ b/Examples/FSharp/Futures/CrosscollateralRepaymentHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CrosscollateralRepaymentHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CrosscollateralWalletV2_Example.fs b/Examples/FSharp/Futures/CrosscollateralWalletV2_Example.fs
index c613618..5a75d55 100644
--- a/Examples/FSharp/Futures/CrosscollateralWalletV2_Example.fs
+++ b/Examples/FSharp/Futures/CrosscollateralWalletV2_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CrosscollateralWalletV2() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/CrosscollateralWallet_Example.fs b/Examples/FSharp/Futures/CrosscollateralWallet_Example.fs
index ec4c515..6d10ab4 100644
--- a/Examples/FSharp/Futures/CrosscollateralWallet_Example.fs
+++ b/Examples/FSharp/Futures/CrosscollateralWallet_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.CrosscollateralWallet() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/GetCollateralRepayQuote_Example.fs b/Examples/FSharp/Futures/GetCollateralRepayQuote_Example.fs
index 9dee5b4..a76ca45 100644
--- a/Examples/FSharp/Futures/GetCollateralRepayQuote_Example.fs
+++ b/Examples/FSharp/Futures/GetCollateralRepayQuote_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.GetCollateralRepayQuote("USDT", "BTC", 0.00222m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/GetFutureAccountTransactionHistoryList_Example.fs b/Examples/FSharp/Futures/GetFutureAccountTransactionHistoryList_Example.fs
index af38f0d..bee4896 100644
--- a/Examples/FSharp/Futures/GetFutureAccountTransactionHistoryList_Example.fs
+++ b/Examples/FSharp/Futures/GetFutureAccountTransactionHistoryList_Example.fs
@@ -20,8 +20,8 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
- let result = futures.GetFutureAccountTransactionHistoryList("USDT", 1631318399000) |> Async.AwaitTask |> Async.RunSynchronously
+ let result = futures.GetFutureAccountTransactionHistoryList("USDT", 1631318399000L) |> Async.AwaitTask |> Async.RunSynchronously
0
diff --git a/Examples/FSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtvV2_Example.fs b/Examples/FSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtvV2_Example.fs
index 0fcb6a1..26f2328 100644
--- a/Examples/FSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtvV2_Example.fs
+++ b/Examples/FSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtvV2_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.GetMaxAmountForAdjustCrosscollateralLtvV2("BTC", "BUSD") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtv_Example.fs b/Examples/FSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtv_Example.fs
index 39f6af3..e02c7da 100644
--- a/Examples/FSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtv_Example.fs
+++ b/Examples/FSharp/Futures/GetMaxAmountForAdjustCrosscollateralLtv_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.GetMaxAmountForAdjustCrosscollateralLtv("USDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/NewFutureAccountTransfer_Example.fs b/Examples/FSharp/Futures/NewFutureAccountTransfer_Example.fs
index 6aac4ae..595c048 100644
--- a/Examples/FSharp/Futures/NewFutureAccountTransfer_Example.fs
+++ b/Examples/FSharp/Futures/NewFutureAccountTransfer_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.NewFutureAccountTransfer("USDT", 522.23m, FuturesTransferType.SPOT_TO_USDT_MARGINED_FUTURES) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/RepayForCrosscollateral_Example.fs b/Examples/FSharp/Futures/RepayForCrosscollateral_Example.fs
index a70e054..10ed1dc 100644
--- a/Examples/FSharp/Futures/RepayForCrosscollateral_Example.fs
+++ b/Examples/FSharp/Futures/RepayForCrosscollateral_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.RepayForCrosscollateral("USDT", "BUSD", 1.68m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Futures/RepayWithCollateral_Example.fs b/Examples/FSharp/Futures/RepayWithCollateral_Example.fs
index 0a33aaf..a951525 100644
--- a/Examples/FSharp/Futures/RepayWithCollateral_Example.fs
+++ b/Examples/FSharp/Futures/RepayWithCollateral_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let futures = new Futures(httpClient, apiKey, apiSecret)
+ let futures = new Futures(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = futures.RepayWithCollateral("3eece81ca2734042b2f538ea0d9cbdd3") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/GiftCard/CreateBinanceCode_Example.fs b/Examples/FSharp/GiftCard/CreateBinanceCode_Example.fs
index 8ce53f0..020d2ef 100644
--- a/Examples/FSharp/GiftCard/CreateBinanceCode_Example.fs
+++ b/Examples/FSharp/GiftCard/CreateBinanceCode_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let giftCard = new GiftCard(httpClient, apiKey, apiSecret)
+ let giftCard = new GiftCard(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = giftCard.CreateBinanceCode("BTC", 1.01) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/GiftCard/FetchRsaPublicKey_Example.fs b/Examples/FSharp/GiftCard/FetchRsaPublicKey_Example.fs
index 7fad791..5dce897 100644
--- a/Examples/FSharp/GiftCard/FetchRsaPublicKey_Example.fs
+++ b/Examples/FSharp/GiftCard/FetchRsaPublicKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let giftCard = new GiftCard(httpClient, apiKey, apiSecret)
+ let giftCard = new GiftCard(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = giftCard.FetchRsaPublicKey() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/GiftCard/RedeemBinanceCode_Example.fs b/Examples/FSharp/GiftCard/RedeemBinanceCode_Example.fs
index c009fab..cfcbe81 100644
--- a/Examples/FSharp/GiftCard/RedeemBinanceCode_Example.fs
+++ b/Examples/FSharp/GiftCard/RedeemBinanceCode_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let giftCard = new GiftCard(httpClient, apiKey, apiSecret)
+ let giftCard = new GiftCard(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = giftCard.RedeemBinanceCode("000000") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/GiftCard/VerifyBinanceCode_Example.fs b/Examples/FSharp/GiftCard/VerifyBinanceCode_Example.fs
index 7e0fbae..89a7c9e 100644
--- a/Examples/FSharp/GiftCard/VerifyBinanceCode_Example.fs
+++ b/Examples/FSharp/GiftCard/VerifyBinanceCode_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let giftCard = new GiftCard(httpClient, apiKey, apiSecret)
+ let giftCard = new GiftCard(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = giftCard.VerifyBinanceCode("000000000000000000") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/CrossMarginAccountTransfer_Example.fs b/Examples/FSharp/MarginAccountTrade/CrossMarginAccountTransfer_Example.fs
index acb56c6..0922f2c 100644
--- a/Examples/FSharp/MarginAccountTrade/CrossMarginAccountTransfer_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/CrossMarginAccountTransfer_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.CrossMarginAccountTransfer("BTC", 1.01m, MarginTransferType.SPOT_TO_MARGIN) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/DisableIsolatedMarginAccount_Example.fs b/Examples/FSharp/MarginAccountTrade/DisableIsolatedMarginAccount_Example.fs
index 98b52b1..3a7b566 100644
--- a/Examples/FSharp/MarginAccountTrade/DisableIsolatedMarginAccount_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/DisableIsolatedMarginAccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.DisableIsolatedMarginAccount("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/EnableIsolatedMarginAccount_Example.fs b/Examples/FSharp/MarginAccountTrade/EnableIsolatedMarginAccount_Example.fs
index 960568f..628d0a3 100644
--- a/Examples/FSharp/MarginAccountTrade/EnableIsolatedMarginAccount_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/EnableIsolatedMarginAccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.EnableIsolatedMarginAccount("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/GetAllCrossMarginPairs_Example.fs b/Examples/FSharp/MarginAccountTrade/GetAllCrossMarginPairs_Example.fs
index e4c3342..f66f019 100644
--- a/Examples/FSharp/MarginAccountTrade/GetAllCrossMarginPairs_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/GetAllCrossMarginPairs_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.GetAllCrossMarginPairs() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/GetAllIsolatedMarginSymbol_Example.fs b/Examples/FSharp/MarginAccountTrade/GetAllIsolatedMarginSymbol_Example.fs
index 711729d..16f4081 100644
--- a/Examples/FSharp/MarginAccountTrade/GetAllIsolatedMarginSymbol_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/GetAllIsolatedMarginSymbol_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.GetAllIsolatedMarginSymbol() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/GetAllMarginAssets_Example.fs b/Examples/FSharp/MarginAccountTrade/GetAllMarginAssets_Example.fs
index 72ada62..d26c1c3 100644
--- a/Examples/FSharp/MarginAccountTrade/GetAllMarginAssets_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/GetAllMarginAssets_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.GetAllMarginAssets() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/GetBnbBurnStatus_Example.fs b/Examples/FSharp/MarginAccountTrade/GetBnbBurnStatus_Example.fs
index ad3fb76..bf5abb8 100644
--- a/Examples/FSharp/MarginAccountTrade/GetBnbBurnStatus_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/GetBnbBurnStatus_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.GetBnbBurnStatus() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/GetCrossMarginTransferHistory_Example.fs b/Examples/FSharp/MarginAccountTrade/GetCrossMarginTransferHistory_Example.fs
index 5295e7f..9e78370 100644
--- a/Examples/FSharp/MarginAccountTrade/GetCrossMarginTransferHistory_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/GetCrossMarginTransferHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.GetCrossMarginTransferHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/GetForceLiquidationRecord_Example.fs b/Examples/FSharp/MarginAccountTrade/GetForceLiquidationRecord_Example.fs
index a49f96f..1f84150 100644
--- a/Examples/FSharp/MarginAccountTrade/GetForceLiquidationRecord_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/GetForceLiquidationRecord_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.GetForceLiquidationRecord() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/GetInterestHistory_Example.fs b/Examples/FSharp/MarginAccountTrade/GetInterestHistory_Example.fs
index 778a940..3a950af 100644
--- a/Examples/FSharp/MarginAccountTrade/GetInterestHistory_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/GetInterestHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.GetInterestHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/GetIsolatedMarginTransferHistory_Example.fs b/Examples/FSharp/MarginAccountTrade/GetIsolatedMarginTransferHistory_Example.fs
index c0754f1..c04363a 100644
--- a/Examples/FSharp/MarginAccountTrade/GetIsolatedMarginTransferHistory_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/GetIsolatedMarginTransferHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.GetIsolatedMarginTransferHistory("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/IsolatedMarginAccountTransfer_Example.fs b/Examples/FSharp/MarginAccountTrade/IsolatedMarginAccountTransfer_Example.fs
index d09d4a6..55cc6c3 100644
--- a/Examples/FSharp/MarginAccountTrade/IsolatedMarginAccountTransfer_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/IsolatedMarginAccountTransfer_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.IsolatedMarginAccountTransfer("BTC", "BNBUSDT", IsolatedMarginAccountTransferType.SPOT, IsolatedMarginAccountTransferType.ISOLATED_MARGIN, 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/MarginAccountBorrow_Example.fs b/Examples/FSharp/MarginAccountTrade/MarginAccountBorrow_Example.fs
index e3c7d89..bb9091c 100644
--- a/Examples/FSharp/MarginAccountTrade/MarginAccountBorrow_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/MarginAccountBorrow_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.MarginAccountBorrow("BTC", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/MarginAccountCancelAllOpenOrdersOnASymbol_Example.fs b/Examples/FSharp/MarginAccountTrade/MarginAccountCancelAllOpenOrdersOnASymbol_Example.fs
index 086eb31..47726aa 100644
--- a/Examples/FSharp/MarginAccountTrade/MarginAccountCancelAllOpenOrdersOnASymbol_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/MarginAccountCancelAllOpenOrdersOnASymbol_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.MarginAccountCancelAllOpenOrdersOnASymbol("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/MarginAccountCancelOco_Example.fs b/Examples/FSharp/MarginAccountTrade/MarginAccountCancelOco_Example.fs
index acbb95e..f8d6ad9 100644
--- a/Examples/FSharp/MarginAccountTrade/MarginAccountCancelOco_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/MarginAccountCancelOco_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.MarginAccountCancelOco("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/MarginAccountCancelOrder_Example.fs b/Examples/FSharp/MarginAccountTrade/MarginAccountCancelOrder_Example.fs
index ddf2423..43fa60e 100644
--- a/Examples/FSharp/MarginAccountTrade/MarginAccountCancelOrder_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/MarginAccountCancelOrder_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.MarginAccountCancelOrder("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/MarginAccountNewOco_Example.fs b/Examples/FSharp/MarginAccountTrade/MarginAccountNewOco_Example.fs
index 4a76283..a55a8d9 100644
--- a/Examples/FSharp/MarginAccountTrade/MarginAccountNewOco_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/MarginAccountNewOco_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.MarginAccountNewOco("BNBUSDT", Side.SELL, 0.1m, 400.15m, 390.3m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/MarginAccountNewOrder_Example.fs b/Examples/FSharp/MarginAccountTrade/MarginAccountNewOrder_Example.fs
index f84bf0e..759fc34 100644
--- a/Examples/FSharp/MarginAccountTrade/MarginAccountNewOrder_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/MarginAccountNewOrder_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.MarginAccountNewOrder("BNBUSDT", Side.SELL, OrderType.MARKET) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/MarginAccountRepay_Example.fs b/Examples/FSharp/MarginAccountTrade/MarginAccountRepay_Example.fs
index be0ae4f..44b4e52 100644
--- a/Examples/FSharp/MarginAccountTrade/MarginAccountRepay_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/MarginAccountRepay_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.MarginAccountRepay("BTC", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryCrossMarginAccountDetails_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryCrossMarginAccountDetails_Example.fs
index 7c7f38d..0914fca 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryCrossMarginAccountDetails_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryCrossMarginAccountDetails_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryCrossMarginAccountDetails() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryCrossMarginFeeData_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryCrossMarginFeeData_Example.fs
index ae3c8ba..b8f13ed 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryCrossMarginFeeData_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryCrossMarginFeeData_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryCrossMarginFeeData() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryCrossMarginPair_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryCrossMarginPair_Example.fs
index 00b5b4d..346365d 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryCrossMarginPair_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryCrossMarginPair_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryCrossMarginPair("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryCurrentMarginOrderCountUsage_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryCurrentMarginOrderCountUsage_Example.fs
index e02bf5e..4370899 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryCurrentMarginOrderCountUsage_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryCurrentMarginOrderCountUsage_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryCurrentMarginOrderCountUsage() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryEnabledIsolatedMarginAccountLimit_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryEnabledIsolatedMarginAccountLimit_Example.fs
index 2329b31..e4d628d 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryEnabledIsolatedMarginAccountLimit_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryEnabledIsolatedMarginAccountLimit_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryEnabledIsolatedMarginAccountLimit() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginAccountInfo_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginAccountInfo_Example.fs
index 361ef2a..948e776 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginAccountInfo_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginAccountInfo_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryIsolatedMarginAccountInfo() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginFeeData_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginFeeData_Example.fs
index c21a79a..33e4040 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginFeeData_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginFeeData_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryIsolatedMarginFeeData() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginSymbol_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginSymbol_Example.fs
index 1459058..47616b2 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginSymbol_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginSymbol_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryIsolatedMarginSymbol("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginTierData_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginTierData_Example.fs
index 5acb450..fdbab51 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginTierData_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryIsolatedMarginTierData_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryIsolatedMarginTierData("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryLoanRecord_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryLoanRecord_Example.fs
index 4418f4a..4fd670d 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryLoanRecord_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryLoanRecord_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryLoanRecord("BTC") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsAllOco_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsAllOco_Example.fs
index 5188540..00746f8 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsAllOco_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsAllOco_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMarginAccountsAllOco() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsAllOrders_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsAllOrders_Example.fs
index 545ea98..2d25c0d 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsAllOrders_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsAllOrders_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMarginAccountsAllOrders("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOco_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOco_Example.fs
index 7d5bd43..d4a5b5f 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOco_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOco_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMarginAccountsOco() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOpenOco_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOpenOco_Example.fs
index 569ee4b..b2d2faa 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOpenOco_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOpenOco_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMarginAccountsOpenOco() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOpenOrders_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOpenOrders_Example.fs
index 068a5c4..e34d4c9 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOpenOrders_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOpenOrders_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMarginAccountsOpenOrders() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOrder_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOrder_Example.fs
index a0d37a1..152d7d8 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOrder_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsOrder_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMarginAccountsOrder("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsTradeList_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsTradeList_Example.fs
index a9a13e1..caf0792 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsTradeList_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMarginAccountsTradeList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMarginAccountsTradeList("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMarginAsset_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMarginAsset_Example.fs
index bd1f997..b37ab16 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMarginAsset_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMarginAsset_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMarginAsset("BTC") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMarginInterestRateHistory_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMarginInterestRateHistory_Example.fs
index 89a8b10..18f63aa 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMarginInterestRateHistory_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMarginInterestRateHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMarginInterestRateHistory("BTC") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMarginPriceindex_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMarginPriceindex_Example.fs
index f303601..1451e92 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMarginPriceindex_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMarginPriceindex_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMarginPriceindex("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMaxBorrow_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMaxBorrow_Example.fs
index 9591125..bbff339 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMaxBorrow_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMaxBorrow_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMaxBorrow("BTC") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryMaxTransferoutAmount_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryMaxTransferoutAmount_Example.fs
index 513c546..aafe27e 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryMaxTransferoutAmount_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryMaxTransferoutAmount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryMaxTransferoutAmount("BTC") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/QueryRepayRecord_Example.fs b/Examples/FSharp/MarginAccountTrade/QueryRepayRecord_Example.fs
index aeaf0a3..c9793db 100644
--- a/Examples/FSharp/MarginAccountTrade/QueryRepayRecord_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/QueryRepayRecord_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.QueryRepayRecord("BTC") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/MarginAccountTrade/ToggleBnbBurnOnSpotTradeAndMarginInterest_Example.fs b/Examples/FSharp/MarginAccountTrade/ToggleBnbBurnOnSpotTradeAndMarginInterest_Example.fs
index 85b3021..bbffb6c 100644
--- a/Examples/FSharp/MarginAccountTrade/ToggleBnbBurnOnSpotTradeAndMarginInterest_Example.fs
+++ b/Examples/FSharp/MarginAccountTrade/ToggleBnbBurnOnSpotTradeAndMarginInterest_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey, apiSecret)
+ let marginAccountTrade = new MarginAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = marginAccountTrade.ToggleBnbBurnOnSpotTradeAndMarginInterest() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Market/OldTradeLookup_Example.fs b/Examples/FSharp/Market/OldTradeLookup_Example.fs
index fadb711..1f9cfaa 100644
--- a/Examples/FSharp/Market/OldTradeLookup_Example.fs
+++ b/Examples/FSharp/Market/OldTradeLookup_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let market = new Market(httpClient, apiKey, apiSecret)
+ let market = new Market(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = market.OldTradeLookup("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Market/RollingWindowPriceChangeStatistics_Example.fs b/Examples/FSharp/Market/RollingWindowPriceChangeStatistics_Example.fs
new file mode 100644
index 0000000..28bb3a7
--- /dev/null
+++ b/Examples/FSharp/Market/RollingWindowPriceChangeStatistics_Example.fs
@@ -0,0 +1,24 @@
+open System
+open System.Net
+open System.Net.Http
+open System.Threading.Tasks
+open Microsoft.Extensions.Logging
+open Binance.Common
+open Binance.Spot
+open Binance.Spot.Models
+
+[]
+let main argv =
+ let loggerFactory = LoggerFactory.Create(fun (builder:ILoggingBuilder) ->
+ builder.AddConsole() |> ignore
+ )
+ let logger = loggerFactory.CreateLogger()
+
+ let loggingHandler = new BinanceLoggingHandler(logger)
+ let httpClient = new HttpClient(loggingHandler)
+
+ let market = new Market(httpClient)
+
+ let result = market.RollingWindowPriceChangeStatistics() |> Async.AwaitTask |> Async.RunSynchronously
+
+ 0
diff --git a/Examples/FSharp/Mining/AccountList_Example.fs b/Examples/FSharp/Mining/AccountList_Example.fs
index 8e54a38..c12704f 100644
--- a/Examples/FSharp/Mining/AccountList_Example.fs
+++ b/Examples/FSharp/Mining/AccountList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.AccountList("sha256", "username") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/AcquiringAlgorithm_Example.fs b/Examples/FSharp/Mining/AcquiringAlgorithm_Example.fs
index 36d3278..a89df27 100644
--- a/Examples/FSharp/Mining/AcquiringAlgorithm_Example.fs
+++ b/Examples/FSharp/Mining/AcquiringAlgorithm_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.AcquiringAlgorithm() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/AcquiringCoinname_Example.fs b/Examples/FSharp/Mining/AcquiringCoinname_Example.fs
index 1c4a092..bfea667 100644
--- a/Examples/FSharp/Mining/AcquiringCoinname_Example.fs
+++ b/Examples/FSharp/Mining/AcquiringCoinname_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.AcquiringCoinname() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/CancelHashrateResaleConfiguration_Example.fs b/Examples/FSharp/Mining/CancelHashrateResaleConfiguration_Example.fs
index 3ccea38..9f18519 100644
--- a/Examples/FSharp/Mining/CancelHashrateResaleConfiguration_Example.fs
+++ b/Examples/FSharp/Mining/CancelHashrateResaleConfiguration_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.CancelHashrateResaleConfiguration(168, "username") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/EarningsList_Example.fs b/Examples/FSharp/Mining/EarningsList_Example.fs
index ee24574..d912616 100644
--- a/Examples/FSharp/Mining/EarningsList_Example.fs
+++ b/Examples/FSharp/Mining/EarningsList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.EarningsList("sha256", "username") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/ExtraBonusList_Example.fs b/Examples/FSharp/Mining/ExtraBonusList_Example.fs
index 406e918..ab97bb9 100644
--- a/Examples/FSharp/Mining/ExtraBonusList_Example.fs
+++ b/Examples/FSharp/Mining/ExtraBonusList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.ExtraBonusList("sha256", "username") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/HashrateResaleDetail_Example.fs b/Examples/FSharp/Mining/HashrateResaleDetail_Example.fs
index d0f4c5a..54d7ac5 100644
--- a/Examples/FSharp/Mining/HashrateResaleDetail_Example.fs
+++ b/Examples/FSharp/Mining/HashrateResaleDetail_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.HashrateResaleDetail("168", "username") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/HashrateResaleList_Example.fs b/Examples/FSharp/Mining/HashrateResaleList_Example.fs
index 1edf9a7..441484e 100644
--- a/Examples/FSharp/Mining/HashrateResaleList_Example.fs
+++ b/Examples/FSharp/Mining/HashrateResaleList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.HashrateResaleList() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/HashrateResaleRequest_Example.fs b/Examples/FSharp/Mining/HashrateResaleRequest_Example.fs
index 85b4392..9fd2ccb 100644
--- a/Examples/FSharp/Mining/HashrateResaleRequest_Example.fs
+++ b/Examples/FSharp/Mining/HashrateResaleRequest_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.HashrateResaleRequest("username", "sha256", "username", 100000000) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/MiningAccountEarning_Example.fs b/Examples/FSharp/Mining/MiningAccountEarning_Example.fs
index 04d24ab..7666d59 100644
--- a/Examples/FSharp/Mining/MiningAccountEarning_Example.fs
+++ b/Examples/FSharp/Mining/MiningAccountEarning_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.MiningAccountEarning("sha256") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/RequestForDetailMinerList_Example.fs b/Examples/FSharp/Mining/RequestForDetailMinerList_Example.fs
index 9b7a0c2..f8b7ddb 100644
--- a/Examples/FSharp/Mining/RequestForDetailMinerList_Example.fs
+++ b/Examples/FSharp/Mining/RequestForDetailMinerList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.RequestForDetailMinerList("sha256", "username", "workername") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/RequestForMinerList_Example.fs b/Examples/FSharp/Mining/RequestForMinerList_Example.fs
index 60d9ca1..7bfe191 100644
--- a/Examples/FSharp/Mining/RequestForMinerList_Example.fs
+++ b/Examples/FSharp/Mining/RequestForMinerList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.RequestForMinerList("sha256", "username") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Mining/StatisticList_Example.fs b/Examples/FSharp/Mining/StatisticList_Example.fs
index 3660780..ab071f0 100644
--- a/Examples/FSharp/Mining/StatisticList_Example.fs
+++ b/Examples/FSharp/Mining/StatisticList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let mining = new Mining(httpClient, apiKey, apiSecret)
+ let mining = new Mining(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = mining.StatisticList("sha256", "username") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/NFT/GetNftAsset_Example.fs b/Examples/FSharp/NFT/GetNftAsset_Example.fs
index 510318e..d9f9e9e 100644
--- a/Examples/FSharp/NFT/GetNftAsset_Example.fs
+++ b/Examples/FSharp/NFT/GetNftAsset_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let nFT = new NFT(httpClient, apiKey, apiSecret)
+ let nFT = new NFT(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = nFT.GetNftAsset() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/NFT/GetNftDepositHistory_Example.fs b/Examples/FSharp/NFT/GetNftDepositHistory_Example.fs
index 1a15531..7b9f6c8 100644
--- a/Examples/FSharp/NFT/GetNftDepositHistory_Example.fs
+++ b/Examples/FSharp/NFT/GetNftDepositHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let nFT = new NFT(httpClient, apiKey, apiSecret)
+ let nFT = new NFT(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = nFT.GetNftDepositHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/NFT/GetNftTransactionHistory_Example.fs b/Examples/FSharp/NFT/GetNftTransactionHistory_Example.fs
index f19e5dc..d47899b 100644
--- a/Examples/FSharp/NFT/GetNftTransactionHistory_Example.fs
+++ b/Examples/FSharp/NFT/GetNftTransactionHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let nFT = new NFT(httpClient, apiKey, apiSecret)
+ let nFT = new NFT(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = nFT.GetNftTransactionHistory(1) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/NFT/GetNftWithdrawHistory_Example.fs b/Examples/FSharp/NFT/GetNftWithdrawHistory_Example.fs
index 449790f..44be7b4 100644
--- a/Examples/FSharp/NFT/GetNftWithdrawHistory_Example.fs
+++ b/Examples/FSharp/NFT/GetNftWithdrawHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let nFT = new NFT(httpClient, apiKey, apiSecret)
+ let nFT = new NFT(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = nFT.GetNftWithdrawHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Pay/GetPayTradeHistory_Example.fs b/Examples/FSharp/Pay/GetPayTradeHistory_Example.fs
index b4ae74e..e43bdb4 100644
--- a/Examples/FSharp/Pay/GetPayTradeHistory_Example.fs
+++ b/Examples/FSharp/Pay/GetPayTradeHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let pay = new Pay(httpClient, apiKey, apiSecret)
+ let pay = new Pay(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = pay.GetPayTradeHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/PortfolioMargin/GetPortfolioMarginAccountInfo_Example.fs b/Examples/FSharp/PortfolioMargin/GetPortfolioMarginAccountInfo_Example.fs
index dccb633..5a8ad6f 100644
--- a/Examples/FSharp/PortfolioMargin/GetPortfolioMarginAccountInfo_Example.fs
+++ b/Examples/FSharp/PortfolioMargin/GetPortfolioMarginAccountInfo_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let portfolioMargin = new PortfolioMargin(httpClient, apiKey, apiSecret)
+ let portfolioMargin = new PortfolioMargin(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = portfolioMargin.GetPortfolioMarginAccountInfo() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Rebate/GetSpotRebateHistoryRecords_Example.fs b/Examples/FSharp/Rebate/GetSpotRebateHistoryRecords_Example.fs
index aebd452..70e435e 100644
--- a/Examples/FSharp/Rebate/GetSpotRebateHistoryRecords_Example.fs
+++ b/Examples/FSharp/Rebate/GetSpotRebateHistoryRecords_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let rebate = new Rebate(httpClient, apiKey, apiSecret)
+ let rebate = new Rebate(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = rebate.GetSpotRebateHistoryRecords() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/ChangeFixedActivityPositionToDailyPosition_Example.fs b/Examples/FSharp/Savings/ChangeFixedActivityPositionToDailyPosition_Example.fs
index d1264ac..5e17a4b 100644
--- a/Examples/FSharp/Savings/ChangeFixedActivityPositionToDailyPosition_Example.fs
+++ b/Examples/FSharp/Savings/ChangeFixedActivityPositionToDailyPosition_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.ChangeFixedActivityPositionToDailyPosition("1234", 1) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/GetFixedActivityProjectPosition_Example.fs b/Examples/FSharp/Savings/GetFixedActivityProjectPosition_Example.fs
index d495c62..d358849 100644
--- a/Examples/FSharp/Savings/GetFixedActivityProjectPosition_Example.fs
+++ b/Examples/FSharp/Savings/GetFixedActivityProjectPosition_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.GetFixedActivityProjectPosition("BTC") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/GetFixedAndActivityProjectList_Example.fs b/Examples/FSharp/Savings/GetFixedAndActivityProjectList_Example.fs
index 292056c..b5aeeab 100644
--- a/Examples/FSharp/Savings/GetFixedAndActivityProjectList_Example.fs
+++ b/Examples/FSharp/Savings/GetFixedAndActivityProjectList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.GetFixedAndActivityProjectList(FixedAndActivityProjectType.ACTIVITY) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/GetFlexibleProductList_Example.fs b/Examples/FSharp/Savings/GetFlexibleProductList_Example.fs
index d69f17e..eeef45d 100644
--- a/Examples/FSharp/Savings/GetFlexibleProductList_Example.fs
+++ b/Examples/FSharp/Savings/GetFlexibleProductList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.GetFlexibleProductList() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/GetFlexibleProductPosition_Example.fs b/Examples/FSharp/Savings/GetFlexibleProductPosition_Example.fs
index 37fc319..9b3f5b2 100644
--- a/Examples/FSharp/Savings/GetFlexibleProductPosition_Example.fs
+++ b/Examples/FSharp/Savings/GetFlexibleProductPosition_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.GetFlexibleProductPosition("BTC") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/GetInterestHistory_Example.fs b/Examples/FSharp/Savings/GetInterestHistory_Example.fs
index d4bc020..e8eb283 100644
--- a/Examples/FSharp/Savings/GetInterestHistory_Example.fs
+++ b/Examples/FSharp/Savings/GetInterestHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.GetInterestHistory(LendingType.DAILY) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/GetLeftDailyPurchaseQuotaOfFlexibleProduct_Example.fs b/Examples/FSharp/Savings/GetLeftDailyPurchaseQuotaOfFlexibleProduct_Example.fs
index f671232..05ca383 100644
--- a/Examples/FSharp/Savings/GetLeftDailyPurchaseQuotaOfFlexibleProduct_Example.fs
+++ b/Examples/FSharp/Savings/GetLeftDailyPurchaseQuotaOfFlexibleProduct_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.GetLeftDailyPurchaseQuotaOfFlexibleProduct("1234") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/GetLeftDailyRedemptionQuotaOfFlexibleProduct_Example.fs b/Examples/FSharp/Savings/GetLeftDailyRedemptionQuotaOfFlexibleProduct_Example.fs
index 776c6e9..7ee0c9b 100644
--- a/Examples/FSharp/Savings/GetLeftDailyRedemptionQuotaOfFlexibleProduct_Example.fs
+++ b/Examples/FSharp/Savings/GetLeftDailyRedemptionQuotaOfFlexibleProduct_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.GetLeftDailyRedemptionQuotaOfFlexibleProduct("1234", RedemptionType.FAST) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/GetPurchaseRecord_Example.fs b/Examples/FSharp/Savings/GetPurchaseRecord_Example.fs
index 9bd87e0..849dacf 100644
--- a/Examples/FSharp/Savings/GetPurchaseRecord_Example.fs
+++ b/Examples/FSharp/Savings/GetPurchaseRecord_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.GetPurchaseRecord(LendingType.DAILY) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/GetRedemptionRecord_Example.fs b/Examples/FSharp/Savings/GetRedemptionRecord_Example.fs
index defbca2..a7b0cff 100644
--- a/Examples/FSharp/Savings/GetRedemptionRecord_Example.fs
+++ b/Examples/FSharp/Savings/GetRedemptionRecord_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.GetRedemptionRecord(LendingType.DAILY) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/LendingAccount_Example.fs b/Examples/FSharp/Savings/LendingAccount_Example.fs
index e182939..94113bb 100644
--- a/Examples/FSharp/Savings/LendingAccount_Example.fs
+++ b/Examples/FSharp/Savings/LendingAccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.LendingAccount() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/PurchaseFixedActivityProject_Example.fs b/Examples/FSharp/Savings/PurchaseFixedActivityProject_Example.fs
index 535bd5c..1b4aa0e 100644
--- a/Examples/FSharp/Savings/PurchaseFixedActivityProject_Example.fs
+++ b/Examples/FSharp/Savings/PurchaseFixedActivityProject_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.PurchaseFixedActivityProject("1234", 1) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/PurchaseFlexibleProduct_Example.fs b/Examples/FSharp/Savings/PurchaseFlexibleProduct_Example.fs
index a7ce6c7..4c134c2 100644
--- a/Examples/FSharp/Savings/PurchaseFlexibleProduct_Example.fs
+++ b/Examples/FSharp/Savings/PurchaseFlexibleProduct_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.PurchaseFlexibleProduct("1234", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Savings/RedeemFlexibleProduct_Example.fs b/Examples/FSharp/Savings/RedeemFlexibleProduct_Example.fs
index 4168f1c..b22e995 100644
--- a/Examples/FSharp/Savings/RedeemFlexibleProduct_Example.fs
+++ b/Examples/FSharp/Savings/RedeemFlexibleProduct_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let savings = new Savings(httpClient, apiKey, apiSecret)
+ let savings = new Savings(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = savings.RedeemFlexibleProduct("1234", 1.01m, RedemptionType.FAST) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/AccountInformation_Example.fs b/Examples/FSharp/SpotAccountTrade/AccountInformation_Example.fs
index ace070d..91d4605 100644
--- a/Examples/FSharp/SpotAccountTrade/AccountInformation_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/AccountInformation_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.AccountInformation() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/AccountTradeList_Example.fs b/Examples/FSharp/SpotAccountTrade/AccountTradeList_Example.fs
index dcdcfc0..86511ad 100644
--- a/Examples/FSharp/SpotAccountTrade/AccountTradeList_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/AccountTradeList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.AccountTradeList("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/AllOrders_Example.fs b/Examples/FSharp/SpotAccountTrade/AllOrders_Example.fs
index bdf5223..5a7dfc4 100644
--- a/Examples/FSharp/SpotAccountTrade/AllOrders_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/AllOrders_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.AllOrders("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/CancelAllOpenOrdersOnASymbol_Example.fs b/Examples/FSharp/SpotAccountTrade/CancelAllOpenOrdersOnASymbol_Example.fs
index 7647040..82c2b4d 100644
--- a/Examples/FSharp/SpotAccountTrade/CancelAllOpenOrdersOnASymbol_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/CancelAllOpenOrdersOnASymbol_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.CancelAllOpenOrdersOnASymbol("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/CancelAnExistingOrderAndSendANewOrder_Example.fs b/Examples/FSharp/SpotAccountTrade/CancelAnExistingOrderAndSendANewOrder_Example.fs
new file mode 100644
index 0000000..94f7316
--- /dev/null
+++ b/Examples/FSharp/SpotAccountTrade/CancelAnExistingOrderAndSendANewOrder_Example.fs
@@ -0,0 +1,27 @@
+open System
+open System.Net
+open System.Net.Http
+open System.Threading.Tasks
+open Microsoft.Extensions.Logging
+open Binance.Common
+open Binance.Spot
+open Binance.Spot.Models
+
+[]
+let main argv =
+ let loggerFactory = LoggerFactory.Create(fun (builder:ILoggingBuilder) ->
+ builder.AddConsole() |> ignore
+ )
+ let logger = loggerFactory.CreateLogger()
+
+ let loggingHandler = new BinanceLoggingHandler(logger)
+ let httpClient = new HttpClient(loggingHandler)
+
+ let apiKey = "api-key";
+ let apiSecret = "api-secret";
+
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
+
+ let result = spotAccountTrade.CancelAnExistingOrderAndSendANewOrder("BNBUSDT", Side.SELL, OrderType.LIMIT, "STOP_ON_FAILURE", cancelOrderId = 12, timeInForce = TimeInForce.GTC, quantity = 10.1m, price = 295.92m) |> Async.AwaitTask |> Async.RunSynchronously
+
+ 0
diff --git a/Examples/FSharp/SpotAccountTrade/CancelOco_Example.fs b/Examples/FSharp/SpotAccountTrade/CancelOco_Example.fs
index a6b42bc..26f3da2 100644
--- a/Examples/FSharp/SpotAccountTrade/CancelOco_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/CancelOco_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.CancelOco("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/CancelOrder_Example.fs b/Examples/FSharp/SpotAccountTrade/CancelOrder_Example.fs
index 54f6ed1..0283a8a 100644
--- a/Examples/FSharp/SpotAccountTrade/CancelOrder_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/CancelOrder_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.CancelOrder("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/CurrentOpenOrders_Example.fs b/Examples/FSharp/SpotAccountTrade/CurrentOpenOrders_Example.fs
index 9b1827e..19ff148 100644
--- a/Examples/FSharp/SpotAccountTrade/CurrentOpenOrders_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/CurrentOpenOrders_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.CurrentOpenOrders() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/NewOco_Example.fs b/Examples/FSharp/SpotAccountTrade/NewOco_Example.fs
index 291e742..b0aa269 100644
--- a/Examples/FSharp/SpotAccountTrade/NewOco_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/NewOco_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.NewOco("BNBUSDT", Side.SELL, 0.1m, 400.15m, 390.3m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/NewOrder_Example.fs b/Examples/FSharp/SpotAccountTrade/NewOrder_Example.fs
index f128e3e..2ecbb0a 100644
--- a/Examples/FSharp/SpotAccountTrade/NewOrder_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/NewOrder_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.NewOrder("BNBUSDT", Side.SELL, OrderType.MARKET) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/QueryAllOco_Example.fs b/Examples/FSharp/SpotAccountTrade/QueryAllOco_Example.fs
index 5267339..4b925af 100644
--- a/Examples/FSharp/SpotAccountTrade/QueryAllOco_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/QueryAllOco_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.QueryAllOco() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/QueryCurrentOrderCountUsage_Example.fs b/Examples/FSharp/SpotAccountTrade/QueryCurrentOrderCountUsage_Example.fs
index 578a416..ff80b92 100644
--- a/Examples/FSharp/SpotAccountTrade/QueryCurrentOrderCountUsage_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/QueryCurrentOrderCountUsage_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.QueryCurrentOrderCountUsage() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/QueryOco_Example.fs b/Examples/FSharp/SpotAccountTrade/QueryOco_Example.fs
index dfcc739..1e397dd 100644
--- a/Examples/FSharp/SpotAccountTrade/QueryOco_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/QueryOco_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.QueryOco() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/QueryOpenOco_Example.fs b/Examples/FSharp/SpotAccountTrade/QueryOpenOco_Example.fs
index c1ed0ca..b4a9df0 100644
--- a/Examples/FSharp/SpotAccountTrade/QueryOpenOco_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/QueryOpenOco_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.QueryOpenOco() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/QueryOrder_Example.fs b/Examples/FSharp/SpotAccountTrade/QueryOrder_Example.fs
index 310eabb..e822892 100644
--- a/Examples/FSharp/SpotAccountTrade/QueryOrder_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/QueryOrder_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.QueryOrder("BNBUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SpotAccountTrade/TestNewOrder_Example.fs b/Examples/FSharp/SpotAccountTrade/TestNewOrder_Example.fs
index 095ec1a..e94d17c 100644
--- a/Examples/FSharp/SpotAccountTrade/TestNewOrder_Example.fs
+++ b/Examples/FSharp/SpotAccountTrade/TestNewOrder_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey, apiSecret)
+ let spotAccountTrade = new SpotAccountTrade(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = spotAccountTrade.TestNewOrder("BNBUSDT", Side.SELL, OrderType.MARKET) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Staking/GetPersonalLeftQuotaOfStakingProduct_Example.fs b/Examples/FSharp/Staking/GetPersonalLeftQuotaOfStakingProduct_Example.fs
index 4d9063d..00427c1 100644
--- a/Examples/FSharp/Staking/GetPersonalLeftQuotaOfStakingProduct_Example.fs
+++ b/Examples/FSharp/Staking/GetPersonalLeftQuotaOfStakingProduct_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let staking = new Staking(httpClient, apiKey, apiSecret)
+ let staking = new Staking(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = staking.GetPersonalLeftQuotaOfStakingProduct("STAKING", "Axs*90") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Staking/GetStakingHistory_Example.fs b/Examples/FSharp/Staking/GetStakingHistory_Example.fs
index 95501f9..5de984b 100644
--- a/Examples/FSharp/Staking/GetStakingHistory_Example.fs
+++ b/Examples/FSharp/Staking/GetStakingHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let staking = new Staking(httpClient, apiKey, apiSecret)
+ let staking = new Staking(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = staking.GetStakingHistory("STAKING", "SUBSCRIPTION") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Staking/GetStakingProductList_Example.fs b/Examples/FSharp/Staking/GetStakingProductList_Example.fs
index 67d57f0..88366dc 100644
--- a/Examples/FSharp/Staking/GetStakingProductList_Example.fs
+++ b/Examples/FSharp/Staking/GetStakingProductList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let staking = new Staking(httpClient, apiKey, apiSecret)
+ let staking = new Staking(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = staking.GetStakingProductList("STAKING") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Staking/GetStakingProductPosition_Example.fs b/Examples/FSharp/Staking/GetStakingProductPosition_Example.fs
index 22803da..87a1d0e 100644
--- a/Examples/FSharp/Staking/GetStakingProductPosition_Example.fs
+++ b/Examples/FSharp/Staking/GetStakingProductPosition_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let staking = new Staking(httpClient, apiKey, apiSecret)
+ let staking = new Staking(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = staking.GetStakingProductPosition("STAKING") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Staking/PurchaseStakingProduct_Example.fs b/Examples/FSharp/Staking/PurchaseStakingProduct_Example.fs
index 7c6fa02..72e9ade 100644
--- a/Examples/FSharp/Staking/PurchaseStakingProduct_Example.fs
+++ b/Examples/FSharp/Staking/PurchaseStakingProduct_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let staking = new Staking(httpClient, apiKey, apiSecret)
+ let staking = new Staking(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = staking.PurchaseStakingProduct("STAKING", "Axs*90", 10.1m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Staking/RedeemStakingProduct_Example.fs b/Examples/FSharp/Staking/RedeemStakingProduct_Example.fs
index 0df61a7..eaf1d5a 100644
--- a/Examples/FSharp/Staking/RedeemStakingProduct_Example.fs
+++ b/Examples/FSharp/Staking/RedeemStakingProduct_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let staking = new Staking(httpClient, apiKey, apiSecret)
+ let staking = new Staking(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = staking.RedeemStakingProduct("STAKING", "Axs*90") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Staking/SetAutoStaking_Example.fs b/Examples/FSharp/Staking/SetAutoStaking_Example.fs
index c26f93c..1f166a7 100644
--- a/Examples/FSharp/Staking/SetAutoStaking_Example.fs
+++ b/Examples/FSharp/Staking/SetAutoStaking_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let staking = new Staking(httpClient, apiKey, apiSecret)
+ let staking = new Staking(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = staking.SetAutoStaking("STAKING", "1234", "true") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/AddIpListForASubaccountApiKey_Example.fs b/Examples/FSharp/SubAccount/AddIpListForASubaccountApiKey_Example.fs
index b181fda..dd18332 100644
--- a/Examples/FSharp/SubAccount/AddIpListForASubaccountApiKey_Example.fs
+++ b/Examples/FSharp/SubAccount/AddIpListForASubaccountApiKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.AddIpListForASubaccountApiKey("testaccount@email.com", "subAccountApiKey", "000.000.000.000") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/CreateAVirtualSubaccount_Example.fs b/Examples/FSharp/SubAccount/CreateAVirtualSubaccount_Example.fs
index b931442..b03d8ec 100644
--- a/Examples/FSharp/SubAccount/CreateAVirtualSubaccount_Example.fs
+++ b/Examples/FSharp/SubAccount/CreateAVirtualSubaccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.CreateAVirtualSubaccount("testaccount") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/DeleteIpListForASubaccountApiKey_Example.fs b/Examples/FSharp/SubAccount/DeleteIpListForASubaccountApiKey_Example.fs
index 4df58d9..f3a782b 100644
--- a/Examples/FSharp/SubAccount/DeleteIpListForASubaccountApiKey_Example.fs
+++ b/Examples/FSharp/SubAccount/DeleteIpListForASubaccountApiKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.DeleteIpListForASubaccountApiKey("testaccount@email.com", "subAccountApiKey", "000.000.000.000") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/DepositAssetsIntoTheManagedSubaccount_Example.fs b/Examples/FSharp/SubAccount/DepositAssetsIntoTheManagedSubaccount_Example.fs
index bfdc613..9053368 100644
--- a/Examples/FSharp/SubAccount/DepositAssetsIntoTheManagedSubaccount_Example.fs
+++ b/Examples/FSharp/SubAccount/DepositAssetsIntoTheManagedSubaccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.DepositAssetsIntoTheManagedSubaccount("testaccount@email.com", "BTC", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/EnableFuturesForSubaccount_Example.fs b/Examples/FSharp/SubAccount/EnableFuturesForSubaccount_Example.fs
index fce883a..2fcde51 100644
--- a/Examples/FSharp/SubAccount/EnableFuturesForSubaccount_Example.fs
+++ b/Examples/FSharp/SubAccount/EnableFuturesForSubaccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.EnableFuturesForSubaccount("testaccount@email.com") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/EnableLeverageTokenForSubaccount_Example.fs b/Examples/FSharp/SubAccount/EnableLeverageTokenForSubaccount_Example.fs
index 15bd234..3d17184 100644
--- a/Examples/FSharp/SubAccount/EnableLeverageTokenForSubaccount_Example.fs
+++ b/Examples/FSharp/SubAccount/EnableLeverageTokenForSubaccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.EnableLeverageTokenForSubaccount("testaccount@email.com", true) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/EnableMarginForSubaccount_Example.fs b/Examples/FSharp/SubAccount/EnableMarginForSubaccount_Example.fs
index 32b3e16..db8ebd7 100644
--- a/Examples/FSharp/SubAccount/EnableMarginForSubaccount_Example.fs
+++ b/Examples/FSharp/SubAccount/EnableMarginForSubaccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.EnableMarginForSubaccount("testaccount@email.com") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/EnableOrDisableIpRestrictionForASubaccountApiKey_Example.fs b/Examples/FSharp/SubAccount/EnableOrDisableIpRestrictionForASubaccountApiKey_Example.fs
index 14844fa..0755218 100644
--- a/Examples/FSharp/SubAccount/EnableOrDisableIpRestrictionForASubaccountApiKey_Example.fs
+++ b/Examples/FSharp/SubAccount/EnableOrDisableIpRestrictionForASubaccountApiKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.EnableOrDisableIpRestrictionForASubaccountApiKey("testaccount@email.com", "subAccountApiKey", true) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/FuturesTransferForSubaccount_Example.fs b/Examples/FSharp/SubAccount/FuturesTransferForSubaccount_Example.fs
index 8223194..dbaa416 100644
--- a/Examples/FSharp/SubAccount/FuturesTransferForSubaccount_Example.fs
+++ b/Examples/FSharp/SubAccount/FuturesTransferForSubaccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.FuturesTransferForSubaccount("testaccount@email.com", "BTC", 1.01m, FuturesTransferType.SPOT_TO_USDT_MARGINED_FUTURES) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetDetailOnSubaccountsFuturesAccountV2_Example.fs b/Examples/FSharp/SubAccount/GetDetailOnSubaccountsFuturesAccountV2_Example.fs
index 4159212..e8b8b22 100644
--- a/Examples/FSharp/SubAccount/GetDetailOnSubaccountsFuturesAccountV2_Example.fs
+++ b/Examples/FSharp/SubAccount/GetDetailOnSubaccountsFuturesAccountV2_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetDetailOnSubaccountsFuturesAccountV2("testaccount@email.com", FuturesType.USDT_MARGINED_FUTURES) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetDetailOnSubaccountsFuturesAccount_Example.fs b/Examples/FSharp/SubAccount/GetDetailOnSubaccountsFuturesAccount_Example.fs
index 5430ee6..075917e 100644
--- a/Examples/FSharp/SubAccount/GetDetailOnSubaccountsFuturesAccount_Example.fs
+++ b/Examples/FSharp/SubAccount/GetDetailOnSubaccountsFuturesAccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetDetailOnSubaccountsFuturesAccount("testaccount@email.com") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetDetailOnSubaccountsMarginAccount_Example.fs b/Examples/FSharp/SubAccount/GetDetailOnSubaccountsMarginAccount_Example.fs
index 5cc6724..dae4353 100644
--- a/Examples/FSharp/SubAccount/GetDetailOnSubaccountsMarginAccount_Example.fs
+++ b/Examples/FSharp/SubAccount/GetDetailOnSubaccountsMarginAccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetDetailOnSubaccountsMarginAccount("testaccount@email.com") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetFuturesPositionriskOfSubaccountV2_Example.fs b/Examples/FSharp/SubAccount/GetFuturesPositionriskOfSubaccountV2_Example.fs
index 9872741..6a49715 100644
--- a/Examples/FSharp/SubAccount/GetFuturesPositionriskOfSubaccountV2_Example.fs
+++ b/Examples/FSharp/SubAccount/GetFuturesPositionriskOfSubaccountV2_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetFuturesPositionriskOfSubaccountV2("testaccount@email.com", FuturesType.USDT_MARGINED_FUTURES) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetFuturesPositionriskOfSubaccount_Example.fs b/Examples/FSharp/SubAccount/GetFuturesPositionriskOfSubaccount_Example.fs
index 6fc5be7..d980b2a 100644
--- a/Examples/FSharp/SubAccount/GetFuturesPositionriskOfSubaccount_Example.fs
+++ b/Examples/FSharp/SubAccount/GetFuturesPositionriskOfSubaccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetFuturesPositionriskOfSubaccount("testaccount@email.com") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetIpRestrictionForASubaccountApiKey_Example.fs b/Examples/FSharp/SubAccount/GetIpRestrictionForASubaccountApiKey_Example.fs
index 2dbc7ac..a28dcb4 100644
--- a/Examples/FSharp/SubAccount/GetIpRestrictionForASubaccountApiKey_Example.fs
+++ b/Examples/FSharp/SubAccount/GetIpRestrictionForASubaccountApiKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetIpRestrictionForASubaccountApiKey("testaccount@email.com", "subAccountApiKey") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetSubaccountDepositAddress_Example.fs b/Examples/FSharp/SubAccount/GetSubaccountDepositAddress_Example.fs
index 1396d21..2117589 100644
--- a/Examples/FSharp/SubAccount/GetSubaccountDepositAddress_Example.fs
+++ b/Examples/FSharp/SubAccount/GetSubaccountDepositAddress_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetSubaccountDepositAddress("testaccount@email.com", "BNB") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetSubaccountDepositHistory_Example.fs b/Examples/FSharp/SubAccount/GetSubaccountDepositHistory_Example.fs
index ef42ba6..aec31d9 100644
--- a/Examples/FSharp/SubAccount/GetSubaccountDepositHistory_Example.fs
+++ b/Examples/FSharp/SubAccount/GetSubaccountDepositHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetSubaccountDepositHistory("testaccount@email.com") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetSubaccountsStatusOnMarginFutures_Example.fs b/Examples/FSharp/SubAccount/GetSubaccountsStatusOnMarginFutures_Example.fs
index e10bbd6..5034174 100644
--- a/Examples/FSharp/SubAccount/GetSubaccountsStatusOnMarginFutures_Example.fs
+++ b/Examples/FSharp/SubAccount/GetSubaccountsStatusOnMarginFutures_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetSubaccountsStatusOnMarginFutures() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccountV2_Example.fs b/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccountV2_Example.fs
index ce75f55..eeb7105 100644
--- a/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccountV2_Example.fs
+++ b/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccountV2_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetSummaryOfSubaccountsFuturesAccountV2(FuturesType.USDT_MARGINED_FUTURES) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccount_Example.fs b/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccount_Example.fs
index adb60b6..2dc7476 100644
--- a/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccount_Example.fs
+++ b/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsFuturesAccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetSummaryOfSubaccountsFuturesAccount() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsMarginAccount_Example.fs b/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsMarginAccount_Example.fs
index 37d9653..1c9e83f 100644
--- a/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsMarginAccount_Example.fs
+++ b/Examples/FSharp/SubAccount/GetSummaryOfSubaccountsMarginAccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.GetSummaryOfSubaccountsMarginAccount() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/MarginTransferForSubaccount_Example.fs b/Examples/FSharp/SubAccount/MarginTransferForSubaccount_Example.fs
index b32f631..8e03a86 100644
--- a/Examples/FSharp/SubAccount/MarginTransferForSubaccount_Example.fs
+++ b/Examples/FSharp/SubAccount/MarginTransferForSubaccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.MarginTransferForSubaccount("testaccount@email.com", "BTC", 1.01m, MarginTransferType.SPOT_TO_MARGIN) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/QueryManagedSubaccountAssetDetails_Example.fs b/Examples/FSharp/SubAccount/QueryManagedSubaccountAssetDetails_Example.fs
index 64177fe..7edd547 100644
--- a/Examples/FSharp/SubAccount/QueryManagedSubaccountAssetDetails_Example.fs
+++ b/Examples/FSharp/SubAccount/QueryManagedSubaccountAssetDetails_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.QueryManagedSubaccountAssetDetails("testaccount@email.com") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/QueryManagedSubaccountSnapshot_Example.fs b/Examples/FSharp/SubAccount/QueryManagedSubaccountSnapshot_Example.fs
index 819d192..d45e003 100644
--- a/Examples/FSharp/SubAccount/QueryManagedSubaccountSnapshot_Example.fs
+++ b/Examples/FSharp/SubAccount/QueryManagedSubaccountSnapshot_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.QueryManagedSubaccountSnapshot("testaccount@email.com", "SPOT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/QuerySubaccountAssets_Example.fs b/Examples/FSharp/SubAccount/QuerySubaccountAssets_Example.fs
index ece409f..82b3f85 100644
--- a/Examples/FSharp/SubAccount/QuerySubaccountAssets_Example.fs
+++ b/Examples/FSharp/SubAccount/QuerySubaccountAssets_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.QuerySubaccountAssets("testaccount@email.com") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/QuerySubaccountFuturesAssetTransferHistory_Example.fs b/Examples/FSharp/SubAccount/QuerySubaccountFuturesAssetTransferHistory_Example.fs
index 8db0424..db4c209 100644
--- a/Examples/FSharp/SubAccount/QuerySubaccountFuturesAssetTransferHistory_Example.fs
+++ b/Examples/FSharp/SubAccount/QuerySubaccountFuturesAssetTransferHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.QuerySubaccountFuturesAssetTransferHistory("testaccount@email.com", FuturesType.COIN_MARGINED_FUTURES) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/QuerySubaccountList_Example.fs b/Examples/FSharp/SubAccount/QuerySubaccountList_Example.fs
index 2bf4455..5427df3 100644
--- a/Examples/FSharp/SubAccount/QuerySubaccountList_Example.fs
+++ b/Examples/FSharp/SubAccount/QuerySubaccountList_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.QuerySubaccountList() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/QuerySubaccountSpotAssetTransferHistory_Example.fs b/Examples/FSharp/SubAccount/QuerySubaccountSpotAssetTransferHistory_Example.fs
index 527ba75..f345002 100644
--- a/Examples/FSharp/SubAccount/QuerySubaccountSpotAssetTransferHistory_Example.fs
+++ b/Examples/FSharp/SubAccount/QuerySubaccountSpotAssetTransferHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.QuerySubaccountSpotAssetTransferHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/QuerySubaccountSpotAssetsSummary_Example.fs b/Examples/FSharp/SubAccount/QuerySubaccountSpotAssetsSummary_Example.fs
index 7391d9f..f29accf 100644
--- a/Examples/FSharp/SubAccount/QuerySubaccountSpotAssetsSummary_Example.fs
+++ b/Examples/FSharp/SubAccount/QuerySubaccountSpotAssetsSummary_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.QuerySubaccountSpotAssetsSummary() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/QueryUniversalTransferHistory_Example.fs b/Examples/FSharp/SubAccount/QueryUniversalTransferHistory_Example.fs
index d6bc162..29621a2 100644
--- a/Examples/FSharp/SubAccount/QueryUniversalTransferHistory_Example.fs
+++ b/Examples/FSharp/SubAccount/QueryUniversalTransferHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.QueryUniversalTransferHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/SubaccountFuturesAssetTransfer_Example.fs b/Examples/FSharp/SubAccount/SubaccountFuturesAssetTransfer_Example.fs
index 6ce785f..15f7c9f 100644
--- a/Examples/FSharp/SubAccount/SubaccountFuturesAssetTransfer_Example.fs
+++ b/Examples/FSharp/SubAccount/SubaccountFuturesAssetTransfer_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.SubaccountFuturesAssetTransfer("testaccount@email.com", "testaccount2@email.com", FuturesType.COIN_MARGINED_FUTURES, "BTC", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/SubaccountTransferHistory_Example.fs b/Examples/FSharp/SubAccount/SubaccountTransferHistory_Example.fs
index 43d5f72..a956c19 100644
--- a/Examples/FSharp/SubAccount/SubaccountTransferHistory_Example.fs
+++ b/Examples/FSharp/SubAccount/SubaccountTransferHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.SubaccountTransferHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/TransferToMaster_Example.fs b/Examples/FSharp/SubAccount/TransferToMaster_Example.fs
index 6b0d61c..ddd6236 100644
--- a/Examples/FSharp/SubAccount/TransferToMaster_Example.fs
+++ b/Examples/FSharp/SubAccount/TransferToMaster_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.TransferToMaster("BTC", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/TransferToSubaccountOfSameMaster_Example.fs b/Examples/FSharp/SubAccount/TransferToSubaccountOfSameMaster_Example.fs
index 57a750b..3092fd5 100644
--- a/Examples/FSharp/SubAccount/TransferToSubaccountOfSameMaster_Example.fs
+++ b/Examples/FSharp/SubAccount/TransferToSubaccountOfSameMaster_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.TransferToSubaccountOfSameMaster("testaccount@email.com", "BTC", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/UniversalTransfer_Example.fs b/Examples/FSharp/SubAccount/UniversalTransfer_Example.fs
index 3fcd967..28f9251 100644
--- a/Examples/FSharp/SubAccount/UniversalTransfer_Example.fs
+++ b/Examples/FSharp/SubAccount/UniversalTransfer_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.UniversalTransfer(UniversalTransferAccountType.SPOT, UniversalTransferAccountType.COIN_FUTURE, "BTC", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/SubAccount/WithdrawlAssetsFromTheManagedSubaccount_Example.fs b/Examples/FSharp/SubAccount/WithdrawlAssetsFromTheManagedSubaccount_Example.fs
index 2d4ca64..25c2699 100644
--- a/Examples/FSharp/SubAccount/WithdrawlAssetsFromTheManagedSubaccount_Example.fs
+++ b/Examples/FSharp/SubAccount/WithdrawlAssetsFromTheManagedSubaccount_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let subAccount = new SubAccount(httpClient, apiKey, apiSecret)
+ let subAccount = new SubAccount(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = subAccount.WithdrawlAssetsFromTheManagedSubaccount("testaccount@email.com", "BTC", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/UserDataStreams/CloseIsolatedMarginListenKey_Example.fs b/Examples/FSharp/UserDataStreams/CloseIsolatedMarginListenKey_Example.fs
index 25db5fd..5cbcec3 100644
--- a/Examples/FSharp/UserDataStreams/CloseIsolatedMarginListenKey_Example.fs
+++ b/Examples/FSharp/UserDataStreams/CloseIsolatedMarginListenKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret)
+ let userDataStreams = new UserDataStreams(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = userDataStreams.CloseIsolatedMarginListenKey("BTCUSDT", "listen-key") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/UserDataStreams/CloseMarginListenKey_Example.fs b/Examples/FSharp/UserDataStreams/CloseMarginListenKey_Example.fs
index 980b664..971ab09 100644
--- a/Examples/FSharp/UserDataStreams/CloseMarginListenKey_Example.fs
+++ b/Examples/FSharp/UserDataStreams/CloseMarginListenKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret)
+ let userDataStreams = new UserDataStreams(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = userDataStreams.CloseMarginListenKey("listen-key") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/UserDataStreams/CloseSpotListenKey_Example.fs b/Examples/FSharp/UserDataStreams/CloseSpotListenKey_Example.fs
index 8aebe28..588acb2 100644
--- a/Examples/FSharp/UserDataStreams/CloseSpotListenKey_Example.fs
+++ b/Examples/FSharp/UserDataStreams/CloseSpotListenKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret)
+ let userDataStreams = new UserDataStreams(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = userDataStreams.CloseSpotListenKey("listen-key") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/UserDataStreams/CreateIsolatedMarginListenKey_Example.fs b/Examples/FSharp/UserDataStreams/CreateIsolatedMarginListenKey_Example.fs
index 45433c6..a4b754b 100644
--- a/Examples/FSharp/UserDataStreams/CreateIsolatedMarginListenKey_Example.fs
+++ b/Examples/FSharp/UserDataStreams/CreateIsolatedMarginListenKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret)
+ let userDataStreams = new UserDataStreams(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = userDataStreams.CreateIsolatedMarginListenKey("BTCUSDT") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/UserDataStreams/CreateMarginListenKey_Example.fs b/Examples/FSharp/UserDataStreams/CreateMarginListenKey_Example.fs
index dd234f1..dabdabf 100644
--- a/Examples/FSharp/UserDataStreams/CreateMarginListenKey_Example.fs
+++ b/Examples/FSharp/UserDataStreams/CreateMarginListenKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret)
+ let userDataStreams = new UserDataStreams(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = userDataStreams.CreateMarginListenKey() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/UserDataStreams/CreateSpotListenKey_Example.fs b/Examples/FSharp/UserDataStreams/CreateSpotListenKey_Example.fs
index 3d28a79..86949ae 100644
--- a/Examples/FSharp/UserDataStreams/CreateSpotListenKey_Example.fs
+++ b/Examples/FSharp/UserDataStreams/CreateSpotListenKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret)
+ let userDataStreams = new UserDataStreams(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = userDataStreams.CreateSpotListenKey() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/UserDataStreams/PingIsolatedMarginListenKey_Example.fs b/Examples/FSharp/UserDataStreams/PingIsolatedMarginListenKey_Example.fs
index 6f3d28b..3aea568 100644
--- a/Examples/FSharp/UserDataStreams/PingIsolatedMarginListenKey_Example.fs
+++ b/Examples/FSharp/UserDataStreams/PingIsolatedMarginListenKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret)
+ let userDataStreams = new UserDataStreams(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = userDataStreams.PingIsolatedMarginListenKey("BTCUSDT", "listen-key") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/UserDataStreams/PingMarginListenKey_Example.fs b/Examples/FSharp/UserDataStreams/PingMarginListenKey_Example.fs
index 91bee8a..6671b8c 100644
--- a/Examples/FSharp/UserDataStreams/PingMarginListenKey_Example.fs
+++ b/Examples/FSharp/UserDataStreams/PingMarginListenKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret)
+ let userDataStreams = new UserDataStreams(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = userDataStreams.PingMarginListenKey("listen-key") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/UserDataStreams/PingSpotListenKey_Example.fs b/Examples/FSharp/UserDataStreams/PingSpotListenKey_Example.fs
index 7c74b65..e08d2e1 100644
--- a/Examples/FSharp/UserDataStreams/PingSpotListenKey_Example.fs
+++ b/Examples/FSharp/UserDataStreams/PingSpotListenKey_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let userDataStreams = new UserDataStreams(httpClient, apiKey, apiSecret)
+ let userDataStreams = new UserDataStreams(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = userDataStreams.PingSpotListenKey("listen-key") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/AccountApiTradingStatus_Example.fs b/Examples/FSharp/Wallet/AccountApiTradingStatus_Example.fs
index 361cad4..668bc64 100644
--- a/Examples/FSharp/Wallet/AccountApiTradingStatus_Example.fs
+++ b/Examples/FSharp/Wallet/AccountApiTradingStatus_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.AccountApiTradingStatus() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/AccountStatus_Example.fs b/Examples/FSharp/Wallet/AccountStatus_Example.fs
index 00dba0d..4c9be87 100644
--- a/Examples/FSharp/Wallet/AccountStatus_Example.fs
+++ b/Examples/FSharp/Wallet/AccountStatus_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.AccountStatus() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/AllCoinsInformation_Example.fs b/Examples/FSharp/Wallet/AllCoinsInformation_Example.fs
index c64bd2e..2fe1b81 100644
--- a/Examples/FSharp/Wallet/AllCoinsInformation_Example.fs
+++ b/Examples/FSharp/Wallet/AllCoinsInformation_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.AllCoinsInformation() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/AssetDetail_Example.fs b/Examples/FSharp/Wallet/AssetDetail_Example.fs
index 670a5a0..8ab2166 100644
--- a/Examples/FSharp/Wallet/AssetDetail_Example.fs
+++ b/Examples/FSharp/Wallet/AssetDetail_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.AssetDetail() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/AssetDividendRecord_Example.fs b/Examples/FSharp/Wallet/AssetDividendRecord_Example.fs
index 881f733..ca3cf1d 100644
--- a/Examples/FSharp/Wallet/AssetDividendRecord_Example.fs
+++ b/Examples/FSharp/Wallet/AssetDividendRecord_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.AssetDividendRecord() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/BnbConvertableAssets_Example.fs b/Examples/FSharp/Wallet/BnbConvertableAssets_Example.fs
index d343d82..9d33676 100644
--- a/Examples/FSharp/Wallet/BnbConvertableAssets_Example.fs
+++ b/Examples/FSharp/Wallet/BnbConvertableAssets_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.BnbConvertableAssets() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/DailyAccountSnapshot_Example.fs b/Examples/FSharp/Wallet/DailyAccountSnapshot_Example.fs
index 9784870..8bf1c36 100644
--- a/Examples/FSharp/Wallet/DailyAccountSnapshot_Example.fs
+++ b/Examples/FSharp/Wallet/DailyAccountSnapshot_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.DailyAccountSnapshot(AccountType.SPOT) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/DepositAddress_Example.fs b/Examples/FSharp/Wallet/DepositAddress_Example.fs
index 1d7399c..4426866 100644
--- a/Examples/FSharp/Wallet/DepositAddress_Example.fs
+++ b/Examples/FSharp/Wallet/DepositAddress_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.DepositAddress("BNB") |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/DepositHistory_Example.fs b/Examples/FSharp/Wallet/DepositHistory_Example.fs
index cc78c63..ae26fd5 100644
--- a/Examples/FSharp/Wallet/DepositHistory_Example.fs
+++ b/Examples/FSharp/Wallet/DepositHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.DepositHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/DisableFastWithdrawSwitch_Example.fs b/Examples/FSharp/Wallet/DisableFastWithdrawSwitch_Example.fs
index 42a1e14..c093962 100644
--- a/Examples/FSharp/Wallet/DisableFastWithdrawSwitch_Example.fs
+++ b/Examples/FSharp/Wallet/DisableFastWithdrawSwitch_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.DisableFastWithdrawSwitch() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/DustTransfer_Example.fs b/Examples/FSharp/Wallet/DustTransfer_Example.fs
index 9cd15b3..04350b3 100644
--- a/Examples/FSharp/Wallet/DustTransfer_Example.fs
+++ b/Examples/FSharp/Wallet/DustTransfer_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.DustTransfer(new string[] { "BTC", "USDT" }) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/Dustlog_Example.fs b/Examples/FSharp/Wallet/Dustlog_Example.fs
index 90b7513..ff395b2 100644
--- a/Examples/FSharp/Wallet/Dustlog_Example.fs
+++ b/Examples/FSharp/Wallet/Dustlog_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.Dustlog() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/EnableFastWithdrawSwitch_Example.fs b/Examples/FSharp/Wallet/EnableFastWithdrawSwitch_Example.fs
index 815ffab..27b4f88 100644
--- a/Examples/FSharp/Wallet/EnableFastWithdrawSwitch_Example.fs
+++ b/Examples/FSharp/Wallet/EnableFastWithdrawSwitch_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.EnableFastWithdrawSwitch() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/FundingWallet_Example.fs b/Examples/FSharp/Wallet/FundingWallet_Example.fs
index 9e26ae3..6761a24 100644
--- a/Examples/FSharp/Wallet/FundingWallet_Example.fs
+++ b/Examples/FSharp/Wallet/FundingWallet_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.FundingWallet() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/GetApiKeyPermission_Example.fs b/Examples/FSharp/Wallet/GetApiKeyPermission_Example.fs
index 01743b1..465890d 100644
--- a/Examples/FSharp/Wallet/GetApiKeyPermission_Example.fs
+++ b/Examples/FSharp/Wallet/GetApiKeyPermission_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.GetApiKeyPermission() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/QueryUserUniversalTransferHistory_Example.fs b/Examples/FSharp/Wallet/QueryUserUniversalTransferHistory_Example.fs
index 493e212..976e26c 100644
--- a/Examples/FSharp/Wallet/QueryUserUniversalTransferHistory_Example.fs
+++ b/Examples/FSharp/Wallet/QueryUserUniversalTransferHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.QueryUserUniversalTransferHistory(UniversalTransferType.MAIN_UMFUTURE) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/TradeFee_Example.fs b/Examples/FSharp/Wallet/TradeFee_Example.fs
index 1f3f7e9..8103b09 100644
--- a/Examples/FSharp/Wallet/TradeFee_Example.fs
+++ b/Examples/FSharp/Wallet/TradeFee_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.TradeFee() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/UserUniversalTransfer_Example.fs b/Examples/FSharp/Wallet/UserUniversalTransfer_Example.fs
index 62e4007..2a0965d 100644
--- a/Examples/FSharp/Wallet/UserUniversalTransfer_Example.fs
+++ b/Examples/FSharp/Wallet/UserUniversalTransfer_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.UserUniversalTransfer(UniversalTransferType.MAIN_UMFUTURE, "BTC", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/WithdrawHistory_Example.fs b/Examples/FSharp/Wallet/WithdrawHistory_Example.fs
index 8f140e1..faae8e2 100644
--- a/Examples/FSharp/Wallet/WithdrawHistory_Example.fs
+++ b/Examples/FSharp/Wallet/WithdrawHistory_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.WithdrawHistory() |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Examples/FSharp/Wallet/Withdraw_Example.fs b/Examples/FSharp/Wallet/Withdraw_Example.fs
index fedaa0d..91186bb 100644
--- a/Examples/FSharp/Wallet/Withdraw_Example.fs
+++ b/Examples/FSharp/Wallet/Withdraw_Example.fs
@@ -20,7 +20,7 @@ let main argv =
let apiKey = "api-key";
let apiSecret = "api-secret";
- let wallet = new Wallet(httpClient, apiKey, apiSecret)
+ let wallet = new Wallet(httpClient, apiKey = apiKey, apiSecret = apiSecret)
let result = wallet.Withdraw("BNB", "address", 1.01m) |> Async.AwaitTask |> Async.RunSynchronously
diff --git a/Src/Spot/.nuspec b/Src/Spot/.nuspec
index 70be22f..9b4b821 100644
--- a/Src/Spot/.nuspec
+++ b/Src/Spot/.nuspec
@@ -11,7 +11,7 @@
https://github.com/binance/binance-connector-dotnet/blob/master/CHANGELOG.md
README.md
- 1.5.0
+ 1.6.0
binance
diff --git a/Src/Spot/Fiat.cs b/Src/Spot/Fiat.cs
index 49568d3..a790471 100644
--- a/Src/Spot/Fiat.cs
+++ b/Src/Spot/Fiat.cs
@@ -22,7 +22,7 @@ public Fiat(HttpClient httpClient, string baseUrl = DEFAULT_SPOT_BASE_URL, strin
///
/// - If beginTime and endTime are not sent, the recent 30-day data will be returned.
- /// Weight(IP): 1.
+ /// Weight(IP): 90000.
///
/// * `0` - deposit.
/// * `1` - withdraw.
diff --git a/Src/Spot/Market.cs b/Src/Spot/Market.cs
index 3096769..53e4d97 100644
--- a/Src/Spot/Market.cs
+++ b/Src/Spot/Market.cs
@@ -309,5 +309,40 @@ public async Task SymbolOrderBookTicker(string symbol = null, string sym
return result;
}
+
+ private const string ROLLING_WINDOW_PRICE_CHANGE_STATISTICS = "/api/v3/ticker";
+
+ ///
+ /// The window used to compute statistics is typically slightly wider than requested windowSize.
+ /// openTime for /api/v3/ticker always starts on a minute, while the closeTime is the current time of the request. As such, the effective window might be up to 1 minute wider than requested.
+ /// E.g. If the closeTime is 1641287867099 (January 04, 2022 09:17:47:099 UTC) , and the windowSize is 1d. the openTime will be: 1641201420000 (January 3, 2022, 09:17:00 UTC).
+ /// Weight(IP): 2 for each requested symbol regardless of windowSize.
+ /// The weight for this request will cap at 100 once the number of symbols in the request is more than 50.
+ ///
+ /// Trading symbol, e.g. BNBUSDT.
+ /// Either symbol or symbols must be provided.
+ /// Examples of accepted format for the symbols parameter: ["BTCUSDT","BNBUSDT"] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D.
+ /// The maximum number of symbols allowed in a request is 100.
+ /// Defaults to 1d if no parameter provided.
+ /// Supported windowSize values:.
+ /// 1m,2m....59m for minutes.
+ /// 1h, 2h....23h - for hours.
+ /// 1d...7d - for days.
+ /// Units cannot be combined (e.g. 1d2h is not allowed).
+ /// Rolling price ticker.
+ public async Task RollingWindowPriceChangeStatistics(string symbol = null, string symbols = null, string windowSize = null)
+ {
+ var result = await this.SendPublicAsync(
+ ROLLING_WINDOW_PRICE_CHANGE_STATISTICS,
+ HttpMethod.Get,
+ query: new Dictionary
+ {
+ { "symbol", symbol },
+ { "symbols", symbols },
+ { "windowSize", windowSize },
+ });
+
+ return result;
+ }
}
}
\ No newline at end of file
diff --git a/Src/Spot/Pay.cs b/Src/Spot/Pay.cs
index c1981b4..a9dfc4b 100644
--- a/Src/Spot/Pay.cs
+++ b/Src/Spot/Pay.cs
@@ -38,8 +38,8 @@ public async Task GetPayTradeHistory(long? startTimestamp = null, long?
HttpMethod.Get,
query: new Dictionary
{
- { "startTimestamp", startTimestamp },
- { "endTimestamp", endTimestamp },
+ { "startTime", startTimestamp },
+ { "endTime", endTimestamp },
{ "limit", limit },
{ "recvWindow", recvWindow },
{ "timestamp", DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() },
diff --git a/Src/Spot/SpotAccountTrade.cs b/Src/Spot/SpotAccountTrade.cs
index 6145398..3d6c24d 100644
--- a/Src/Spot/SpotAccountTrade.cs
+++ b/Src/Spot/SpotAccountTrade.cs
@@ -514,5 +514,62 @@ public async Task QueryCurrentOrderCountUsage(long? recvWindow = null)
return result;
}
+
+ private const string CANCEL_AN_EXISTING_ORDER_AND_SEND_A_NEW_ORDER = "/api/v3/order/cancelReplace";
+
+ ///
+ /// Cancels an existing order and places a new order on the same symbol.
+ /// Filters are evaluated before the cancel order is placed.
+ /// If the new order placement is successfully sent to the engine, the order count will increase by 1.
+ /// Weight(IP): 1.
+ ///
+ /// Trading symbol, e.g. BNBUSDT.
+ ///
+ /// Order type.
+ /// - `STOP_ON_FAILURE` If the cancel request fails, the new order placement will not be attempted.
+ /// - `ALLOW_FAILURES` If new order placement will be attempted even if cancel request fails.
+ /// Order time in force.
+ /// Order quantity.
+ /// Quote quantity.
+ /// Order price.
+ /// Used to uniquely identify this cancel. Automatically generated by default.
+ /// Either the cancelOrigClientOrderId or cancelOrderId must be provided. If both are provided, cancelOrderId takes precedence.
+ /// Either the cancelOrigClientOrderId or cancelOrderId must be provided. If both are provided, cancelOrderId takes precedence.
+ /// Used to identify the new order. Automatically generated by default.
+ /// Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
+ /// Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
+ /// Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
+ /// Set the response JSON. MARKET and LIMIT order types default to FULL, all other orders default to ACK.
+ /// The value cannot be greater than 60000.
+ /// Operation details.
+ public async Task CancelAnExistingOrderAndSendANewOrder(string symbol, Side side, OrderType type, string cancelReplaceMode, TimeInForce? timeInForce = null, decimal? quantity = null, decimal? quoteOrderQty = null, decimal? price = null, string cancelNewClientOrderId = null, string cancelOrigClientOrderId = null, long? cancelOrderId = null, string newClientOrderId = null, decimal? stopPrice = null, decimal? trailingDelta = null, decimal? icebergQty = null, NewOrderResponseType? newOrderRespType = null, long? recvWindow = null)
+ {
+ var result = await this.SendSignedAsync(
+ CANCEL_AN_EXISTING_ORDER_AND_SEND_A_NEW_ORDER,
+ HttpMethod.Post,
+ query: new Dictionary
+ {
+ { "symbol", symbol },
+ { "side", side },
+ { "type", type },
+ { "cancelReplaceMode", cancelReplaceMode },
+ { "timeInForce", timeInForce },
+ { "quantity", quantity },
+ { "quoteOrderQty", quoteOrderQty },
+ { "price", price },
+ { "cancelNewClientOrderId", cancelNewClientOrderId },
+ { "cancelOrigClientOrderId", cancelOrigClientOrderId },
+ { "cancelOrderId", cancelOrderId },
+ { "newClientOrderId", newClientOrderId },
+ { "stopPrice", stopPrice },
+ { "trailingDelta", trailingDelta },
+ { "icebergQty", icebergQty },
+ { "newOrderRespType", newOrderRespType },
+ { "recvWindow", recvWindow },
+ { "timestamp", DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() },
+ });
+
+ return result;
+ }
}
}
\ No newline at end of file
diff --git a/Tests/Spot.Tests/Market_Tests.cs b/Tests/Spot.Tests/Market_Tests.cs
index cfbe991..1b87601 100644
--- a/Tests/Spot.Tests/Market_Tests.cs
+++ b/Tests/Spot.Tests/Market_Tests.cs
@@ -299,5 +299,29 @@ public async void SymbolOrderBookTicker_Response()
Assert.Equal(responseContent, result);
}
#endregion
+
+ #region RollingWindowPriceChangeStatistics
+ [Fact]
+ public async void RollingWindowPriceChangeStatistics_Response()
+ {
+ var responseContent = "{\"symbol\":\"BNBBTC\",\"priceChange\":\"-8.00000000\",\"priceChangePercent\":\"-88.889\",\"weightedAvgPrice\":\"2.60427807\",\"openPrice\":\"9.00000000\",\"highPrice\":\"9.00000000\",\"lowPrice\":\"1.00000000\",\"lastPrice\":\"1.00000000\",\"volume\":\"187.00000000\",\"quoteVolume\":\"487.00000000\",\"openTime\":1641859200000,\"closeTime\":1642031999999,\"firstId\":0,\"lastId\":60,\"count\":61}";
+ var mockMessageHandler = new Mock();
+ mockMessageHandler.Protected()
+ .SetupSendAsync("/api/v3/ticker", HttpMethod.Get)
+ .ReturnsAsync(new HttpResponseMessage
+ {
+ StatusCode = HttpStatusCode.OK,
+ Content = new StringContent(responseContent),
+ });
+ Market market = new Market(
+ new HttpClient(mockMessageHandler.Object),
+ apiKey: this.apiKey,
+ apiSecret: this.apiSecret);
+
+ var result = await market.RollingWindowPriceChangeStatistics();
+
+ Assert.Equal(responseContent, result);
+ }
+ #endregion
}
}
\ No newline at end of file
diff --git a/Tests/Spot.Tests/SpotAccountTrade_Tests.cs b/Tests/Spot.Tests/SpotAccountTrade_Tests.cs
index 99e327c..6ccabfe 100644
--- a/Tests/Spot.Tests/SpotAccountTrade_Tests.cs
+++ b/Tests/Spot.Tests/SpotAccountTrade_Tests.cs
@@ -371,5 +371,29 @@ public async void QueryCurrentOrderCountUsage_Response()
Assert.Equal(responseContent, result);
}
#endregion
+
+ #region CancelAnExistingOrderAndSendANewOrder
+ [Fact]
+ public async void CancelAnExistingOrderAndSendANewOrder_Response()
+ {
+ var responseContent = "{\"cancelResult\":\"SUCCESS\",\"newOrderResult\":\"SUCCESS\",\"cancelResponse\":{\"symbol\":\"BTCUSDT\",\"origClientOrderId\":\"DnLo3vTAQcjha43lAZhZ0y\",\"orderId\":9,\"orderListId\":-1,\"clientOrderId\":\"osxN3JXAtJvKvCqGeMWMVR\",\"price\":\"0.01000000\",\"origQty\":\"0.000100\",\"executedQty\":\"0.00000000\",\"cummulativeQuoteQty\":\"0.00000000\",\"status\":\"CANCELED\",\"timeInForce\":\"GTC\",\"type\":\"LIMIT\",\"side\":\"SELL\"},\"newOrderResponse\":{\"symbol\":\"BTCUSDT\",\"orderId\":10,\"orderListId\":-1,\"clientOrderId\":\"wOceeeOzNORyLiQfw7jd8S\",\"transactTime\":1652928801803,\"price\":\"0.02000000\",\"origQty\":\"0.040000\",\"executedQty\":\"0.00000000\",\"cummulativeQuoteQty\":\"0.00000000\",\"status\":\"NEW\",\"timeInForce\":\"GTC\",\"type\":\"LIMIT\",\"side\":\"BUY\",\"fills\":[]}}";
+ var mockMessageHandler = new Mock();
+ mockMessageHandler.Protected()
+ .SetupSendAsync("/api/v3/order/cancelReplace", HttpMethod.Post)
+ .ReturnsAsync(new HttpResponseMessage
+ {
+ StatusCode = HttpStatusCode.OK,
+ Content = new StringContent(responseContent),
+ });
+ SpotAccountTrade spotAccountTrade = new SpotAccountTrade(
+ new HttpClient(mockMessageHandler.Object),
+ apiKey: this.apiKey,
+ apiSecret: this.apiSecret);
+
+ var result = await spotAccountTrade.CancelAnExistingOrderAndSendANewOrder("BNBUSDT", Side.SELL, OrderType.LIMIT, "STOP_ON_FAILURE", cancelOrderId: 12, timeInForce: TimeInForce.GTC, quantity: 10.1m, price: 295.92m);
+
+ Assert.Equal(responseContent, result);
+ }
+ #endregion
}
}
\ No newline at end of file