Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v3.7.0 #315

Merged
merged 7 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,74 @@
# Changelog

## 3.7.0 - 2024-05-03
### Added
- Convert
- `POST /sapi/v1/convert/limit/placeOrder`
- `POST /sapi/v1/convert/limit/cancelOrder`
- `GET /sapi/v1/convert/limit/queryOpenOrders`

- Margin
- `GET /sapi/v1/margin/available-inventory`
- `POST /sapi/v1/margin/manual-liquidation`
- `GET /sapi/v1/margin/leverageBracket`

- Market
- `GET /api/v3/ticker/tradingDay`

- Trade
- `GET /api/v3/myAllocations`
- `GET /api/v3/account/commission`

- Wallet
- `GET /sapi/v1/capital/deposit/address/list`
- `GET /sapi/v1/spot/delist-schedule`

### Updated
- `POST /sapi/v1/asset/dust-btc` add parameter `accountType`
- `POST /sapi/v1/asset/dust` add parameter `accountType`
- `GET /sapi/v1/asset/dribblet` add parameter `accountType`
- `POST /sapi/v1/margin/order/oco`: New enumerate value `AUTO_BORROW_REPAY` for the field of `sideEffectType`
- `POST /sapi/v1/margin/order`: New enumerate value `AUTO_BORROW_REPAY` for the field of `sideEffectType`
- Update documentation
- Add new handle exception in websocket read_data

### Removed
- Bswap
- `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`
- `GET /sapi/v1/bswap/unclaimedRewards`
- `POST /sapi/v1/bswap/claimRewards`
- `GET /sapi/v1/bswap/claimedHistory`

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

- Staking
- `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`

## 3.6.0 - 2024-03-07
### Removed
- `POST /sapi/v1/margin/transfer`
Expand Down
2 changes: 1 addition & 1 deletion binance/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.6.0"
__version__ = "3.7.0"
45 changes: 11 additions & 34 deletions binance/spot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._market import ui_klines
from binance.spot._market import avg_price
from binance.spot._market import ticker_24hr
from binance.spot._market import trading_day_ticker
from binance.spot._market import ticker_price
from binance.spot._market import book_ticker
from binance.spot._market import rolling_window_ticker
Expand All @@ -41,6 +42,8 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._trade import my_trades
from binance.spot._trade import get_order_rate_limit
from binance.spot._trade import query_prevented_matches
from binance.spot._trade import query_allocations
from binance.spot._trade import query_commission_rates

# STREAMS
from binance.spot._data_stream import new_listen_key
Expand Down Expand Up @@ -95,15 +98,9 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._margin import get_small_liability_exchange_history
from binance.spot._margin import get_a_future_hourly_interest_rate
from binance.spot._margin import adjust_cross_margin_max_leverage

# Staking
from binance.spot._staking import staking_product_list
from binance.spot._staking import staking_purchase_product
from binance.spot._staking import staking_redeem_product
from binance.spot._staking import staking_product_position
from binance.spot._staking import staking_history
from binance.spot._staking import staking_set_auto_staking
from binance.spot._staking import staking_product_quota
from binance.spot._margin import margin_available_inventory
from binance.spot._margin import margin_manual_liquidation
from binance.spot._margin import liability_coin_leverage_bracket

# WALLET
from binance.spot._wallet import system_status
Expand All @@ -130,11 +127,13 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._wallet import bnb_convertible_assets
from binance.spot._wallet import convertible_coins
from binance.spot._wallet import toggle_auto_convertion
from binance.spot._wallet import list_deposit_address
from binance.spot._wallet import cloud_mining_trans_history
from binance.spot._wallet import convert_transfer
from binance.spot._wallet import convert_history
from binance.spot._wallet import one_click_arrival_deposit_apply
from binance.spot._wallet import balance
from binance.spot._wallet import delist_schedule_symbols

# MINING
from binance.spot._mining import mining_algo_list
Expand Down Expand Up @@ -212,22 +211,6 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._blvt import redemption_record
from binance.spot._blvt import user_limit_info

# BSwap
from binance.spot._bswap import bswap_pools
from binance.spot._bswap import bswap_liquidity
from binance.spot._bswap import bswap_liquidity_add
from binance.spot._bswap import bswap_liquidity_remove
from binance.spot._bswap import bswap_liquidity_operation_record
from binance.spot._bswap import bswap_request_quote
from binance.spot._bswap import bswap_swap
from binance.spot._bswap import bswap_swap_history
from binance.spot._bswap import bswap_pool_configure
from binance.spot._bswap import bswap_add_liquidity_preview
from binance.spot._bswap import bswap_remove_liquidity_preview
from binance.spot._bswap import bswap_unclaimed_rewards
from binance.spot._bswap import bswap_claim_rewards
from binance.spot._bswap import bswap_claimed_rewards

# FIAT
from binance.spot._fiat import fiat_order_history
from binance.spot._fiat import fiat_payment_history
Expand All @@ -252,15 +235,6 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._crypto_loan import loan_collateral_data
from binance.spot._crypto_loan import loan_collateral_rate
from binance.spot._crypto_loan import loan_customize_margin_call
from binance.spot._crypto_loan import flexible_loan_adjust_ltv
from binance.spot._crypto_loan import flexible_loan_assets_data
from binance.spot._crypto_loan import flexible_loan_borrow_history
from binance.spot._crypto_loan import flexible_loan_borrow
from binance.spot._crypto_loan import flexible_loan_collateral_assets_data
from binance.spot._crypto_loan import flexible_loan_ltv_adjustment_history
from binance.spot._crypto_loan import flexible_loan_ongoing_orders
from binance.spot._crypto_loan import flexible_loan_repay
from binance.spot._crypto_loan import flexible_loan_repayment_history

# PAY
from binance.spot._pay import pay_history
Expand All @@ -271,6 +245,9 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._convert import send_quote_request
from binance.spot._convert import accept_quote
from binance.spot._convert import order_status
from binance.spot._convert import place_limit_order
from binance.spot._convert import cancel_limit_order
from binance.spot._convert import query_limit_open_order
from binance.spot._convert import get_convert_trade_history

# REBATE
Expand Down
Loading
Loading