Skip to content

Commit

Permalink
rc-1.1.0 (binance#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Tanti <[email protected]>
  • Loading branch information
tantialex and tantialex authored Jan 19, 2022
1 parent 5c6c008 commit ab95a22
Show file tree
Hide file tree
Showing 96 changed files with 2,946 additions and 117 deletions.
74 changes: 74 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: "Bug Report"
description: "Submit a bug report to help us improve the library"
title: "Bug Report: "
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out our bug report form 🙏
- type: textarea
id: reproduction
validations:
required: true
attributes:
label: "Reproduction steps"
description: "Please provide a step by step walkthrough on how to reproduce the bug."
placeholder: >
1) First step...
2) Second step....
- type: textarea
id: expected-behavior
validations:
required: true
attributes:
label: "Expected behavior"
description: "What did you expect to happen?"
placeholder: "Expected Result..."
- type: textarea
id: actual-behavior
validations:
required: true
attributes:
label: "Actual Behavior"
description: "What did actually happen? (Add any useful information if available ex. screenshots or logs)"
placeholder: "Actual Result... "
- type: dropdown
id: appwrite-version
attributes:
label: ".NET version"
description: "What version of .NET are you running?"
options:
- .NET Core 3.1.x
- .NET Framework 5.0.x
- .NET Framework 6.0.x
- Other (specify in environment)
validations:
required: true
- type: dropdown
id: operating-system
attributes:
label: "Operating system"
description: "What OS are you using to reproduce the bug?"
options:
- Linux
- MacOS
- Windows
- Other (specify in environment)
validations:
required: true
- type: textarea
id: enviromnemt
validations:
required: false
attributes:
label: "Environment"
description: "Any additional differences in your environment which may relate to the issue"
placeholder: ""
- type: textarea
id: dotnet-info
attributes:
label: dotnet --info
description: Run the dotnet --info command and copy and paste the results
validations:
required: false
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Documentation"
description: "Documentation report"
title: "Documentation: "
labels: [documentation]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to help us improve our documentation
- type: textarea
id: issue-description
validations:
required: true
attributes:
label: "Description"
description: "A clear and concise description of what the issue is."
placeholder: "Suggestion to change the documentation for..."
28 changes: 28 additions & 0 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: .NET Distributable

on:
push:
branches: [ master ]
pull_request:
branches: [ master, rc-** ]

jobs:
build:

runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Setup .NET on 3.1.x, 5.0.x, 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build Src/Spot --no-restore
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET
name: .NET Main Workflow

on:
push:
Expand All @@ -13,7 +13,7 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Setup .NET
- name: Setup .NET 5.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Distributables

on:
release:
types:
- published

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET on 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
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
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
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

74 changes: 74 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,79 @@
# Changelog

## 1.1.0 - 2022-01-19
### Added
- New endpoints for BSwap
- GET /sapi/v1/bswap/poolConfigure to get pool configure
- GET /sapi/v1/bswap/addLiquidityPreview to get add liquidity preview
- GET /sapi/v1/margin/isolated/accountLimit to get remove liquidity preview
- GET /sapi/v1/bswap/unclaimedRewards to get unclaimed rewards record.
- POST /sapi/v1/bswap/claimRewards to claim swap rewards or liquidity rewards.
- GET /sapi/v1/bswap/claimedHistory to get history of claimed rewards.

- New endpoints for Trade:
- GET api/v3/rateLimit/order added

- New endpoint for Crypto Loans
- GET /sapi/v1/loan/income

- New endpoint for Pay
- GET /sapi/v1/pay/transactions to support user query Pay trade history

- New endpoint for Convert
- GET /sapi/v1/convert/tradeFlow to support user query convert trade history records

- New endpoint for Rebate
- GET /sapi/v1/rebate/taxQuery to support user query spot rebate history records

- New endpoint for Margin
- GET /sapi/v1/margin/crossMarginData to get cross margin fee data collection
- GET /sapi/v1/margin/isolatedMarginData to get isolated margin fee data collection
- GET /sapi/v1/margin/isolatedMarginTier to get isolated margin tier data collection

- New endpoints for NFT
- GET /sapi/v1/nft/history/transactions to get NFT transaction history
- GET /sapi/v1/nft/history/deposit to get NFT deposit history
- GET /sapi/v1/nft/history/withdraw to get NFT withdraw history
- GET /sapi/v1/nft/user/getAsset to get NFT asset

- New endpoint for Mining
- GET /sapi/v1/mining/payment/uid to get Mining account earning.

- New endpoints for Sub-Account
- POST /sapi/v1/sub-account/subAccountApi/ipRestriction to support master account enable and disable IP restriction for a sub-account API Key
- POST /sapi/v1/sub-account/subAccountApi/ipRestriction/ipList to support master account add IP list for a sub-account API Key
- GET /sapi/v1/account/apiRestrictions/ipRestriction to support master account query IP restriction for a sub-account API Key
- DELETE /sapi/v1/account/apiRestrictions/ipRestriction/ipList to support master account delete IP list for a sub-account API Key

- Issue templates
- Added templates for bug report and documentation changes

- Actions
- Added release action
- Added multi-framework distributable build tests

### Updated
- Updated endpoints for Sub-Account
- New parameter clientTranId added in POST /sapi/v1/sub-account/universalTransfer and GET /sapi/v1/sub-account/universalTransfer to support custom transfer id

- Updated endpoint for Wallet and Futures
- GET /sapi/v1/asset/transfer
- GET /sapi/v1/futures/transfer
- GET /sapi/v1/accountSnapshot
- The query time range of both endpoints are shortened to support data query within the last 6 months only, where startTime does not support selecting a timestamp beyond 6 months.
If you do not specify startTime and endTime, the data of the last 7 days will be returned by default.

- Updated endpoints for Wallet
- New parameter walletType added in POST /sapi/v1/capital/withdraw/apply

- Updated endpoints for Margin
- Removed out limit from GET /sapi/v1/margin/interestRateHistory
- As the Mining account is merged into Funding account, transfer types MAIN_MINING, MINING_MAIN, MINING_UMFUTURE, MARGIN_MINING, and MINING_MARGIN will be discontinued in Universal Transfer endpoint POST /sapi/v1/asset/transfer on January 05, 2022 08:00 AM UTC

- Resolved lint warnings

- Improved Http Exceptions

## 1.0.1 - 2022-01-10

### Added
Expand Down
30 changes: 30 additions & 0 deletions Examples/CSharp/BSwap/AddLiquidityPreview_Example.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
namespace Binance.Spot.BSwapExamples
{
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 AddLiquidityPreview_Example
{
public static async Task Main(string[] args)
{
using var loggerFactory = LoggerFactory.Create(builder =>
{
builder.AddConsole();
});
ILogger logger = loggerFactory.CreateLogger<AddLiquidityPreview_Example>();

HttpMessageHandler loggingHandler = new BinanceLoggingHandler(logger: logger);
HttpClient httpClient = new HttpClient(handler: loggingHandler);

var bSwap = new BSwap(httpClient);

var result = await bSwap.AddLiquidityPreview(2, "SINGLE", "USDT", 1.1m);
}
}
}
30 changes: 30 additions & 0 deletions Examples/CSharp/BSwap/ClaimRewards_Example.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
namespace Binance.Spot.BSwapExamples
{
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 ClaimRewards_Example
{
public static async Task Main(string[] args)
{
using var loggerFactory = LoggerFactory.Create(builder =>
{
builder.AddConsole();
});
ILogger logger = loggerFactory.CreateLogger<ClaimRewards_Example>();

HttpMessageHandler loggingHandler = new BinanceLoggingHandler(logger: logger);
HttpClient httpClient = new HttpClient(handler: loggingHandler);

var bSwap = new BSwap(httpClient);

var result = await bSwap.ClaimRewards();
}
}
}
30 changes: 30 additions & 0 deletions Examples/CSharp/BSwap/GetClaimedHistory_Example.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
namespace Binance.Spot.BSwapExamples
{
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 GetClaimedHistory_Example
{
public static async Task Main(string[] args)
{
using var loggerFactory = LoggerFactory.Create(builder =>
{
builder.AddConsole();
});
ILogger logger = loggerFactory.CreateLogger<GetClaimedHistory_Example>();

HttpMessageHandler loggingHandler = new BinanceLoggingHandler(logger: logger);
HttpClient httpClient = new HttpClient(handler: loggingHandler);

var bSwap = new BSwap(httpClient);

var result = await bSwap.GetClaimedHistory();
}
}
}
30 changes: 30 additions & 0 deletions Examples/CSharp/BSwap/GetUnclaimedRewardsRecord_Example.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
namespace Binance.Spot.BSwapExamples
{
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 GetUnclaimedRewardsRecord_Example
{
public static async Task Main(string[] args)
{
using var loggerFactory = LoggerFactory.Create(builder =>
{
builder.AddConsole();
});
ILogger logger = loggerFactory.CreateLogger<GetUnclaimedRewardsRecord_Example>();

HttpMessageHandler loggingHandler = new BinanceLoggingHandler(logger: logger);
HttpClient httpClient = new HttpClient(handler: loggingHandler);

var bSwap = new BSwap(httpClient);

var result = await bSwap.GetUnclaimedRewardsRecord();
}
}
}
Loading

0 comments on commit ab95a22

Please sign in to comment.