Skip to content

Commit

Permalink
Merge pull request #24 from binance/rc-1.7.0
Browse files Browse the repository at this point in the history
Release v1.7.0
  • Loading branch information
alplabin authored Dec 5, 2024
2 parents d400ee2 + 41bccfa commit 1621b2e
Show file tree
Hide file tree
Showing 113 changed files with 3,075 additions and 88 deletions.
76 changes: 76 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,81 @@
# Changelog

## 1.7.0 -2024-12-05
### Added
- Convert endpoints:
- `GET /sapi/v1/convert/exchangeInfo`
- `GET /sapi/v1/convert/assetInfo`
- `POST /sapi/v1/convert/getQuote`
- `POST /sapi/v1/convert/acceptQuote`
- `GET /sapi/v1/convert/orderStatus`
- `POST /sapi/v1/convert/limit/placeOrder`
- `POST /sapi/v1/convert/limit/cancelOrder`
- `POST /sapi/v1/convert/limit/queryOpenOrders`

- Loan endpoints:
- `GET /sapi/v2/loan/flexible/collateral/data`
- `GET /sapi/v2/loan/flexible/loanable/data`
- `POST /sapi/v2/loan/flexible/borrow`
- `POST /sapi/v2/loan/flexible/repay`
- `POST /sapi/v2/loan/flexible/adjust/ltv`
- `GET /sapi/v2/loan/flexible/ltv/adjustment/history`
- `GET /sapi/v2/loan/flexible/borrow/history`
- `GET /sapi/v2/loan/flexible/ongoing/orders`
- `GET /sapi/v2/loan/flexible/repay/history`
- `GET /sapi/v1/loan/borrow/history`
- `GET /sapi/v1/loan/ltv/adjustment/history`
- `GET /sapi/v1/loan/repay/history`

- Margin endpoints:
- `POST /sapi/v1/margin/borrow-repay`
- `GET /sapi/v1/margin/borrow-repay`
- `GET /sapi/v1/margin/available-inventory`
- `GET /sapi/v1/margin/leverageBracket`
- `POST /sapi/v1/margin/manual-liquidation`

- Market endpoints:
- `GET /api/v3/ticker/tradingDay`
- `GET /api/v3/uiKlines`

- Simple Earn endpoints:
- `POST /sapi/v1/simple-earn/locked/setRedeemOption`

- Sub Account endpoints:
- `GET /sapi/v4/sub-account/assets`
- `POST /sapi/v1/sub-account/eoptions/enable`
- `GET /sapi/v1/managed-subaccount/marginAsset`
- `GET /sapi/v1/sub-account/transaction-statistics`
- `GET /sapi/v1/managed-subaccount/fetch-future-asset`
- `GET /sapi/v1/managed-subaccount/queryTransLogForTradeParent`
- `GET /sapi/v1/managed-subaccount/query-trans-log`
- `GET /sapi/v1/managed-subaccount/queryTransLogForInvestor`
- `GET /sapi/v1/managed-subaccount/info`

- Trade endpoint:
- `GET /api/v3/myPreventedMatches`
- `GET /api/v3/myAllocations`
- `GET /api/v3/account/commission`

- Wallet endpoints:
- `GET /sapi/v1/spot/delist-schedule`
- `GET /sapi/v1/capital/deposit/address/list`
- `POST /sapi/v1/capital/deposit/credit-apply`
- `GET /sapi/v1/asset/wallet/balance`
- `POST /sapi/v1/asset/dust-btc`
- `GET /sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage`
- `GET /sapi/v1/asset/custody/transfer-history`
- `GET /sapi/v1/account/info`

- Websocket:
- `<symbol>@avgPrice`

### Changed
- Added new parameter `redeemTo` to endpoint `POST /sapi/v1/simple-earn/locked/subscribe`
- Added new parameter `timeZone` to endpoint `GET /api/v3/klines`
- Added new parameters `orderRateLimitExceededMode`, `strategyId`, `strategyType`, `selfTradePreventionMode` and `cancelRestrictions` to endpoint `POST /api/v3/order/cancelReplace`
- Added new parameters `showPermissionSets` and `symbolStatus` to endpoint `GET /api/v3/exchangeInfo`
- Replaced endpoint `POST /api/v3/order/oco` by `POST /api/v3/orderList/oco`

## 1.6.0 - 2024-10-02

### Changed
Expand Down
32 changes: 17 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
binance-connector-ruby (1.6.0)
binance-connector-ruby (1.7.0)
faraday (~> 1.8)
websocket-eventmachine-client (~> 1.3)

Expand Down Expand Up @@ -57,9 +57,9 @@ GEM
faraday-rack (1.0.0)
faraday-retry (1.0.3)
gem-release (2.2.2)
hashdiff (1.1.1)
hashdiff (1.1.2)
ice_nine (0.11.2)
json (2.7.2)
json (2.8.2)
language_server-protocol (3.17.0.3)
memoizable (0.4.2)
thread_safe (~> 0.3, >= 0.3.1)
Expand All @@ -72,7 +72,7 @@ GEM
procto (~> 0.0.2)
multipart-post (2.4.1)
parallel (1.26.3)
parser (3.3.5.0)
parser (3.3.6.0)
ast (~> 2.4.1)
racc
proc_to_ast (0.2.0)
Expand All @@ -84,19 +84,19 @@ GEM
racc (1.8.1)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.2)
rexml (3.3.8)
rouge (4.4.0)
regexp_parser (2.9.3)
rexml (3.3.9)
rouge (4.5.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.1)
rspec-core (3.13.2)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.1)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-parameterized (1.0.2)
Expand All @@ -110,18 +110,18 @@ GEM
rspec-parameterized-table_syntax (1.0.1)
binding_of_caller
rspec-parameterized-core (< 2)
rspec-support (3.13.1)
rubocop (1.66.1)
rspec-support (3.13.2)
rubocop (1.69.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0)
rubocop-ast (>= 1.32.2, < 2.0)
rubocop-ast (>= 1.36.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.32.3)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.36.2)
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
Expand All @@ -132,7 +132,9 @@ GEM
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
thread_safe (0.3.6)
unicode-display_width (2.6.0)
unicode-display_width (3.1.2)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
unparser (0.5.7)
abstract_type (~> 0.0.7)
adamantium (~> 0.2.0)
Expand Down
15 changes: 15 additions & 0 deletions examples/spot/convert/convert_accept_quote.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

# set key here
# or BINANCE_PUBLIC_API_KEY in env
client = Binance::Spot.new(key: '', secret: '')

logger.info(client.convert_accept_quote(quoteId: '1234'))
15 changes: 15 additions & 0 deletions examples/spot/convert/convert_asset_info.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

# set key here
# or BINANCE_PUBLIC_API_KEY in env
client = Binance::Spot.new(key: '', secret: '')

logger.info(client.convert_asset_info)
15 changes: 15 additions & 0 deletions examples/spot/convert/convert_exchange_info.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

# set key here
# or BINANCE_PUBLIC_API_KEY in env
client = Binance::Spot.new(key: '', secret: '')

logger.info(client.convert_exchange_info)
15 changes: 15 additions & 0 deletions examples/spot/convert/convert_get_quote.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

# set key here
# or BINANCE_PUBLIC_API_KEY in env
client = Binance::Spot.new(key: '', secret: '')

logger.info(client.convert_get_quote(fromAsset: 'BNB', toAsset: 'USDT', fromAmount: 1.0))
15 changes: 15 additions & 0 deletions examples/spot/convert/convert_limit_cancel_order.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

# set key here
# or BINANCE_PUBLIC_API_KEY in env
client = Binance::Spot.new(key: '', secret: '')

logger.info(client.convert_limit_cancel_order(orderId: '1234'))
15 changes: 15 additions & 0 deletions examples/spot/convert/convert_limit_place_order.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

# set key here
# or BINANCE_PUBLIC_API_KEY in env
client = Binance::Spot.new(key: '', secret: '')

logger.info(client.convert_limit_place_order(baseAsset: 'BNB', quoteAsset: 'USDT', limitPrice: 590.0, side: 'BUY', expiredType: '1_D', baseAmount: 1.0))
15 changes: 15 additions & 0 deletions examples/spot/convert/convert_limit_query_open_orders.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

# set key here
# or BINANCE_PUBLIC_API_KEY in env
client = Binance::Spot.new(key: '', secret: '')

logger.info(client.convert_limit_query_open_orders)
15 changes: 15 additions & 0 deletions examples/spot/convert/convert_order_status.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

# set key here
# or BINANCE_PUBLIC_API_KEY in env
client = Binance::Spot.new(key: '', secret: '')

logger.info(client.convert_order_status)
15 changes: 15 additions & 0 deletions examples/spot/loan/adjust_flexible_loan_ltv.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

key = ''
secret = ''

client = Binance::Spot.new(key: key, secret: secret)
logger.info(client.adjust_flexible_loan_ltv(loanCoin: 'BUSD', collateralCoin: 'BNB', adjustmentAmount: 1.0, direction: 'ADDITIONAL'))
15 changes: 15 additions & 0 deletions examples/spot/loan/borrow_flexible_loan.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

key = ''
secret = ''

client = Binance::Spot.new(key: key, secret: secret)
logger.info(client.borrow_flexible_loan(loanCoin: 'BUSD', collateralCoin: 'BNB', loanAmount: 1.0))
15 changes: 15 additions & 0 deletions examples/spot/loan/get_flexible_loan_assets_data.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

key = ''
secret = ''

client = Binance::Spot.new(key: key, secret: secret)
logger.info(client.get_flexible_loan_assets_data)
15 changes: 15 additions & 0 deletions examples/spot/loan/get_flexible_loan_borrow_history.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

key = ''
secret = ''

client = Binance::Spot.new(key: key, secret: secret)
logger.info(client.get_flexible_loan_borrow_history)
15 changes: 15 additions & 0 deletions examples/spot/loan/get_flexible_loan_collateral_data.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

key = ''
secret = ''

client = Binance::Spot.new(key: key, secret: secret)
logger.info(client.get_flexible_loan_collateral_data)
15 changes: 15 additions & 0 deletions examples/spot/loan/get_flexible_loan_ltv_adjustment_history.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift('./lib')

require 'binance'
require_relative '../../common'

logger = Common.setup_logger

key = ''
secret = ''

client = Binance::Spot.new(key: key, secret: secret)
logger.info(client.get_flexible_loan_ltv_adjustment_history)
Loading

0 comments on commit 1621b2e

Please sign in to comment.