Skip to content

Commit

Permalink
rc-1.6.0 (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Tanti <tantialex@users.noreply.github.com>
  • Loading branch information
tantialex and tantialex authored Jul 4, 2022
1 parent c3373b7 commit 169cfec
Show file tree
Hide file tree
Showing 450 changed files with 734 additions and 446 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BLVT/GetBlvtInfo_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BLVT/GetBlvtUserLimitInfo_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BLVT/QueryRedemptionRecord_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BLVT/QuerySubscriptionRecord_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BLVT/RedeemBlvt_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BLVT/SubscribeBlvt_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/AddLiquidityPreview_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/AddLiquidity_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/ClaimRewards_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/GetClaimedHistory_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/GetSwapHistory_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/GetUnclaimedRewardsRecord_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/ListAllSwapPools_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/PoolConfigure_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/RemoveLiquidityPreview_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/RemoveLiquidity_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/RequestQuote_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/BSwap/Swap_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/C2C/GetC2cTradeHistory_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<PropertyGroup>
<StartupObject>Binance.Spot.MarketDataWebSocketExamples.DepthStream_Example</StartupObject>
<StartupObject>Binance.Spot.SpotAccountTradeExamples.AccountInformation_Example</StartupObject>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand Down
3 changes: 1 addition & 2 deletions Examples/CSharp/Convert/GetConvertTradeHistory_Example.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Binance.Spot.ConvertExamples
{
using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
Expand All @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/CSharp/Fiat/GetFiatPaymentsHistory_Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Loading

0 comments on commit 169cfec

Please sign in to comment.