Skip to content

Commit

Permalink
Merge pull request #18 from binance/rc-1.5.0
Browse files Browse the repository at this point in the history
v1.5.0 release
  • Loading branch information
alplabin committed Apr 10, 2024
2 parents 97fa150 + 09cd53d commit 4471871
Show file tree
Hide file tree
Showing 116 changed files with 1,710 additions and 2,242 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.6, 2.7, 3.0, 3.1]
ruby: [3.0, 3.1, 3.2, 3.3]

runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Metrics/ParameterLists:
Metrics/ModuleLength:
Enabled: false

Gemspec/DateAssignment:
Gemspec/DeprecatedAttributeAssignment:
Enabled: true

Style/SwapValues:
Expand Down
72 changes: 72 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,77 @@
# Changelog

## 1.5.0 - 2024-04-10

### Added
- Support Ruby 3.2 and 3.3
- New endpoint for Simple Earn:
- `GET /sapi/v1/simple-earn/flexible/list` to query available Simple Earn flexible product list
- `GET /sapi/v1/simple-earn/locked/list` to query available Simple Earn locked product list
- `POST /sapi/v1/simple-earn/flexible/subscribe` to subscribe to a flexible product
- `POST /sapi/v1/simple-earn/locked/subscribe` to subscribe to a locked product
- `POST /sapi/v1/simple-earn/flexible/redeem` to redeem a flexible product
- `POST /sapi/v1/simple-earn/locked/redeem` to redeem a locked product
- `GET /sapi/v1/simple-earn/flexible/position` to get a flexible product position
- `GET /sapi/v1/simple-earn/locked/position` to get a locked product position
- `GET /sapi/v1/simple-earn/account` to get a simple account balances
- `GET /sapi/v1/simple-earn/flexible/history/subscriptionRecord` to get flexible subscription records
- `GET /sapi/v1/simple-earn/locked/history/subscriptionRecord` to get locked subscription records
- `GET /sapi/v1/simple-earn/flexible/history/redemptionRecord` to retrieve flexible redemption records
- `GET /sapi/v1/simple-earn/locked/history/redemptionRecord` to retrieve locked redemption records
- `GET /sapi/v1/simple-earn/flexible/history/rewardsRecord` to get flexible rewards history
- `GET /sapi/v1/simple-earn/locked/history/rewardsRecord` to get locked rewards history
- `POST /sapi/v1/simple-earn/flexible/setAutoSubscribe` to set an auto-subscription to a flexible product
- `POST /sapi/v1/simple-earn/locked/setAutoSubscribe` to set an auto-subscription to a locked product
- `GET /sapi/v1/simple-earn/flexible/personalLeftQuota` to get flexible personal left quota
- `GET /sapi/v1/simple-earn/locked/personalLeftQuota` to get locked personal left quota
- `GET /sapi/v1/simple-earn/flexible/subscriptionPreview` to get flexible subscription preview
- `GET /sapi/v1/simple-earn/locked/subscriptionPreview` to get locked subscription previews
- `GET /sapi/v1/simple-earn/flexible/history/rateHistory` to get a rate history
- `GET /sapi/v1/simple-earn/flexible/history/collateralRecord` to get collateral records

### Changed
- Update dependencies
- Drop support of Ruby 2.6 and 2.7

### Removed
- Deprecated Savings endpoints:
- `GET /sapi/v1/lending/daily/product/list`
- `GET /sapi/v1/lending/daily/userLeftQuota`
- `POST /sapi/v1/lending/daily/purchase`
- `GET /sapi/v1/lending/daily/userRedemptionQuota`
- `POST /sapi/v1/lending/daily/redeem`
- `GET /sapi/v1/lending/daily/token/position`
- `GET /sapi/v1/lending/project/list`
- `POST /sapi/v1/lending/customizedFixed/purchase`
- `GET /sapi/v1/lending/union/account`
- `GET /sapi/v1/lending/union/purchaseRecord`
- `GET /sapi/v1/lending/union/redemptionRecord`
- `GET /sapi/v1/lending/union/interestHistory`
- `GET /sapi/v1/lending/project/position/list`
- `POST /sapi/v1/lending/positionChanged`

- Deprecated Staking endpoints:
- `GET /sapi/v1/staking/productList`
- `POST /sapi/v1/staking/purchase`
- `POST /sapi/v1/staking/redeem`
- `GET /sapi/v1/staking/position`
- `GET /sapi/v1/staking/stakingRecord`
- `POST /sapi/v1/staking/setAutoStaking`
- `GET /sapi/v1/staking/personalLeftQuota`

- Deprecated BSwap endpoints:
- `GET /sapi/v1/bswap/pools`
- `GET /sapi/v1/bswap/liquidity`
- `POST /sapi/v1/bswap/liquidityAdd`
- `POST /sapi/v1/bswap/liquidityRemove`
- `GET /sapi/v1/bswap/liquidityOps`
- `GET /sapi/v1/bswap/quote`
- `POST /sapi/v1/bswap/swap`
- `GET /sapi/v1/bswap/swap`
- `GET /sapi/v1/bswap/poolConfigure`
- `GET /sapi/v1/bswap/addLiquidityPreview`
- `GET /sapi/v1/bswap/removeLiquidityPreview`

## 1.4.0 - 2022-12-20
### Added
- Add RSA signature
Expand Down
113 changes: 66 additions & 47 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
binance-connector-ruby (1.4.0)
binance-connector-ruby (1.5.0)
faraday (~> 1.8)
websocket-eventmachine-client (~> 1.3)

Expand All @@ -12,46 +12,56 @@ GEM
adamantium (0.2.0)
ice_nine (~> 0.11.0)
memoizable (~> 0.4.0)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
anima (0.3.2)
abstract_type (~> 0.0.7)
adamantium (~> 0.2)
equalizer (~> 0.0.11)
ast (2.4.2)
binding_ninja (0.2.3)
bigdecimal (3.1.7)
binding_of_caller (1.0.1)
debug_inspector (>= 1.2.0)
coderay (1.1.3)
concord (0.1.6)
adamantium (~> 0.2.0)
equalizer (~> 0.0.9)
crack (0.4.5)
crack (1.0.0)
bigdecimal
rexml
diff-lcs (1.4.4)
debug_inspector (1.2.0)
diff-lcs (1.5.1)
docile (1.4.0)
equalizer (0.0.11)
eventmachine (1.2.7)
faraday (1.8.0)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.1)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
multipart-post (>= 1.2, < 3)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
gem-release (2.2.2)
hashdiff (1.0.1)
hashdiff (1.1.0)
ice_nine (0.11.2)
json (2.7.2)
language_server-protocol (3.17.0.3)
memoizable (0.4.2)
thread_safe (~> 0.3, >= 0.3.1)
mprelude (0.1.0)
Expand All @@ -61,60 +71,69 @@ GEM
equalizer (~> 0.0.9)
ice_nine (~> 0.11.1)
procto (~> 0.0.2)
multipart-post (2.1.1)
parallel (1.21.0)
parser (3.0.2.0)
multipart-post (2.4.0)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
proc_to_ast (0.1.0)
coderay
parser
unparser
procto (0.0.3)
public_suffix (4.0.6)
rainbow (3.0.0)
rake (13.0.6)
regexp_parser (2.1.1)
rexml (3.2.5)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
public_suffix (5.0.5)
racc (1.7.3)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-parameterized (0.5.0)
binding_ninja (>= 0.2.3)
rspec-support (~> 3.13.0)
rspec-parameterized (1.0.0)
rspec-parameterized-core (< 2)
rspec-parameterized-table_syntax (< 2)
rspec-parameterized-core (1.0.0)
parser
proc_to_ast
rspec (>= 2.13, < 4)
unparser
rspec-support (3.10.3)
rubocop (1.23.0)
rspec-parameterized-table_syntax (1.0.1)
binding_of_caller
rspec-parameterized-core (< 2)
rspec-support (3.13.1)
rubocop (1.63.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.0.0.0)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.12.0, < 2.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.13.0)
parser (>= 3.0.1.1)
ruby-progressbar (1.11.0)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
simplecov (0.21.2)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.3)
simplecov_json_formatter (0.1.4)
thread_safe (0.3.6)
unicode-display_width (2.1.0)
unicode-display_width (2.5.0)
unparser (0.5.7)
abstract_type (~> 0.0.7)
adamantium (~> 0.2.0)
Expand All @@ -125,19 +144,19 @@ GEM
mprelude (~> 0.1.0)
parser (>= 3.0.0)
procto (~> 0.0.2)
webmock (3.14.0)
webmock (3.23.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
websocket (1.2.9)
websocket (1.2.10)
websocket-eventmachine-base (1.2.0)
eventmachine (~> 1.0)
websocket (~> 1.0)
websocket-native (~> 1.0)
websocket-eventmachine-client (1.3.0)
websocket-eventmachine-base (~> 1.0)
websocket-native (1.0.0)
yard (0.9.26)
yard (0.9.36)

PLATFORMS
ruby
Expand All @@ -158,4 +177,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.2.27
2.5.3
15 changes: 0 additions & 15 deletions examples/spot/bswap/add_liquidity.rb

This file was deleted.

15 changes: 0 additions & 15 deletions examples/spot/bswap/add_liquidity_preview.rb

This file was deleted.

15 changes: 0 additions & 15 deletions examples/spot/bswap/remove_liquidity.rb

This file was deleted.

15 changes: 0 additions & 15 deletions examples/spot/bswap/remove_liquidity_preview.rb

This file was deleted.

15 changes: 0 additions & 15 deletions examples/spot/bswap/request_quote.rb

This file was deleted.

15 changes: 0 additions & 15 deletions examples/spot/bswap/swap.rb

This file was deleted.

Loading

0 comments on commit 4471871

Please sign in to comment.