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.9.0 #342

Merged
merged 2 commits into from
Oct 2, 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
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 3.9.0 - 2024-10-02

### Removed
- Futures
- `POST /sapi/v1/futures/transfer`
- `GET /sapi/v1/futures/transfer`

- BLVT
- `GET /sapi/v1/blvt/tokenInfo`
- `POST /sapi/v1/blvt/subscribe`
- `GET /sapi/v1/blvt/subscribe/record`
- `POST /sapi/v1/blvt/redeem`
- `GET /sapi/v1/blvt/redeem/record`
- `GET /sapi/v1/blvt/userLimit`

- Wallet
- `POST /sapi/v1/asset/convert-transfer`
- `GET /sapi/v1/asset/convert-transfer/queryByPage`
- `GET /sapi/v1/capital/contract/convertible-coins`
- `POST /sapi/v1/capital/contract/convertible-coins`

## 3.8.1 - 2024-07-25
### Added
- `.readthedocs.yml` to resolve documentation issue
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.8.1"
__version__ = "3.9.0"
16 changes: 0 additions & 16 deletions binance/spot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,8 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._wallet import user_asset
from binance.spot._wallet import api_key_permissions
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
Expand Down Expand Up @@ -201,18 +197,6 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._sub_account import detail_on_sub_account_s_futures_account
from binance.spot._sub_account import query_managed_sub_account_transfer_log

# FUTURES
from binance.spot._futures import futures_transfer
from binance.spot._futures import futures_transfer_history

# BLVTs
from binance.spot._blvt import blvt_info
from binance.spot._blvt import subscribe_blvt
from binance.spot._blvt import subscription_record
from binance.spot._blvt import redeem_blvt
from binance.spot._blvt import redemption_record
from binance.spot._blvt import user_limit_info

# FIAT
from binance.spot._fiat import fiat_order_history
from binance.spot._fiat import fiat_payment_history
Expand Down
30 changes: 15 additions & 15 deletions binance/spot/_auto_invest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def get_target_asset_list(self, **kwargs):

GET /sapi/v1/lending/auto-invest/target-asset/list

https://binance-docs.github.io/apidocs/spot/en/#get-target-asset-list-user_data
https://developers.binance.com/docs/auto_invest/market-data/Get-target-asset-list

Keyword Args:
targetAsset (str)
Expand All @@ -31,7 +31,7 @@ def get_target_asset_roi_data(self, targetAsset: str, hisRoiType: str, **kwargs)

GET /sapi/v1/lending/auto-invest/target-asset/roi/list

https://binance-docs.github.io/apidocs/spot/en/#get-target-asset-roi-data-user_data
https://developers.binance.com/docs/auto_invest/market-data/Get-target-asset-ROI-data

Args:
targetAsset (str)
Expand All @@ -57,7 +57,7 @@ def query_all_source_asset_and_target_asset(self, **kwargs):

GET /sapi/v1/lending/auto-invest/all/asset

https://binance-docs.github.io/apidocs/spot/en/#query-all-source-asset-and-target-asset-user_data
https://developers.binance.com/docs/auto_invest/market-data/Query-all-source-asset-and-target-asset

Keyword Args:
recvWindow (int, optional): The value cannot be greater than 60000
Expand All @@ -76,7 +76,7 @@ def query_source_asset_list(self, usageType: str, **kwargs):

GET /sapi/v1/lending/auto-invest/source-asset/list

https://binance-docs.github.io/apidocs/spot/en/#query-source-asset-list-user_data
https://developers.binance.com/docs/auto_invest/market-data/Query-source-asset-list

Args:
usageType (str)
Expand All @@ -103,7 +103,7 @@ def change_plan_status(self, planId: int, status: str, **kwargs):

POST /sapi/v1/lending/auto-invest/plan/edit-status

https://binance-docs.github.io/apidocs/spot/en/#change-plan-status-trade
https://developers.binance.com/docs/auto_invest/trade/Change-Plan-Status

Args:
planId (int)
Expand All @@ -127,7 +127,7 @@ def get_list_of_plans(self, planType: str, **kwargs):

GET /sapi/v1/lending/auto-invest/plan/list

https://binance-docs.github.io/apidocs/spot/en/#get-list-of-plans-user_data
https://developers.binance.com/docs/auto_invest/market-data/Get-list-of-plans

Args:
planType (str)
Expand All @@ -150,7 +150,7 @@ def query_holding_details_of_the_plan(self, **kwargs):

GET /sapi/v1/lending/auto-invest/plan/id

https://binance-docs.github.io/apidocs/spot/en/#query-holding-details-of-the-plan-user_data
https://developers.binance.com/docs/auto_invest/trade/Query-holding-details-of-the-plan

Keyword Args:
planId (int, optional)
Expand All @@ -171,7 +171,7 @@ def query_subscription_transaction_history(self, **kwargs):

GET /sapi/v1/lending/auto-invest/history/list

https://binance-docs.github.io/apidocs/spot/en/#query-subscription-transaction-history-user_data
https://developers.binance.com/docs/auto_invest/trade/Query-subscription-transaction-history

Keyword Args:
planType (str, optional)
Expand All @@ -196,7 +196,7 @@ def query_index_details(self, indexId: int, **kwargs):

GET /sapi/v1/lending/auto-invest/index/info

https://binance-docs.github.io/apidocs/spot/en/#query-index-details-user_data
https://developers.binance.com/docs/auto_invest/market-data/Query-Index-Details

Args:
indexId (int)
Expand All @@ -219,7 +219,7 @@ def query_index_linked_plan_position_details(self, indexId: int, **kwargs):

GET /sapi/v1/lending/auto-invest/index/user-summary

https://binance-docs.github.io/apidocs/spot/en/#query-index-linked-plan-position-details-user_data
https://developers.binance.com/docs/auto_invest/trade/Query-Index-Linked-Plan-Position-Details

Args:
indexId (int)
Expand All @@ -244,7 +244,7 @@ def one_time_transaction(

POST /sapi/v1/lending/auto-invest/one-off

https://binance-docs.github.io/apidocs/spot/en/#one-time-transaction-trade
https://developers.binance.com/docs/auto_invest/trade/One-Time-Transaction

Args:
sourceType (str)
Expand Down Expand Up @@ -285,7 +285,7 @@ def query_one_time_transaction_status(self, transactionId: int, **kwargs):

GET /sapi/v1/lending/auto-invest/one-off/status

https://binance-docs.github.io/apidocs/spot/en/#query-one-time-transaction-status-user_data
https://developers.binance.com/docs/auto_invest/trade/Query-One-Time-Transaction-Status

Args:
transactionId (int)
Expand All @@ -311,7 +311,7 @@ def index_linked_plan_redemption(

POST /sapi/v1/lending/auto-invest/redeem

https://binance-docs.github.io/apidocs/spot/en/#index-linked-plan-redemption-trade
https://developers.binance.com/docs/auto_invest/trade/Index-Linked-Plan-Redemption

Args:
indexId (int)
Expand Down Expand Up @@ -342,7 +342,7 @@ def get_index_linked_plan_redemption_history(self, requestId: int, **kwargs):

GET /sapi/v1/lending/auto-invest/redeem/history

https://binance-docs.github.io/apidocs/spot/en/#index-linked-plan-redemption-user_data
https://developers.binance.com/docs/auto_invest/trade/Query-Index-Linked-Plan-Redemption

Args:
requestId (int)
Expand Down Expand Up @@ -373,7 +373,7 @@ def index_linked_plan_rebalance_details(self, **kwargs):

GET /sapi/v1/lending/auto-invest/rebalance/history

https://binance-docs.github.io/apidocs/spot/en/#index-linked-plan-rebalance-details-user_data
https://developers.binance.com/docs/auto_invest/trade/Index-Linked-Plan-Rebalance-Details

Keyword Args:
startTime (int, optional): UTC timestamp in ms
Expand Down
109 changes: 0 additions & 109 deletions binance/spot/_blvt.py

This file was deleted.

2 changes: 1 addition & 1 deletion binance/spot/_c2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def c2c_trade_history(self, tradeType: str, **kwargs):

GET /sapi/v1/c2c/orderMatch/listUserOrderHistory

https://binance-docs.github.io/apidocs/spot/en/#get-c2c-trade-history-user_data
https://developers.binance.com/docs/c2c/rest-api/Get-C2C-Trade-History

Args:
tradeType (str): BUY, SELL
Expand Down
18 changes: 9 additions & 9 deletions binance/spot/_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def list_all_convert_pairs(self, **kwargs):

GET /sapi/v1/convert/exchangeInfo

https://binance-docs.github.io/apidocs/spot/en/#list-all-convert-pairs
https://developers.binance.com/docs/convert/market-data/List-all-convert-pairs

Keyword Args:
fromAsset (str, optional): User spends coin
Expand All @@ -33,7 +33,7 @@ def query_order_quantity_precision_per_asset(self, **kwargs):

GET /sapi/v1/convert/assetInfo

https://binance-docs.github.io/apidocs/spot/en/#query-order-quantity-precision-per-asset-user_data
https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset

Keyword Args:
recvWindow (int, optional): The value cannot be greater than 60000
Expand All @@ -52,7 +52,7 @@ def send_quote_request(self, fromAsset: str, toAsset: str, **kwargs):

POST /sapi/v1/convert/getQuote

https://binance-docs.github.io/apidocs/spot/en/#send-quote-request-user_data
https://developers.binance.com/docs/convert/trade/Send-quote-request

Args:
fromAsset (str)
Expand Down Expand Up @@ -80,7 +80,7 @@ def accept_quote(self, quoteId: str, **kwargs):

POST /sapi/v1/convert/acceptQuote

https://binance-docs.github.io/apidocs/spot/en/#accept-quote-trade
https://developers.binance.com/docs/convert/trade/Accept-Quote

Args:
quoteId (str)
Expand All @@ -103,7 +103,7 @@ def order_status(self, **kwargs):

GET /sapi/v1/convert/orderStatus

https://binance-docs.github.io/apidocs/spot/en/#order-status-user_data
https://developers.binance.com/docs/convert/trade/Order-Status

Keyword Args:
orderId (str, optional)
Expand All @@ -128,7 +128,7 @@ def place_limit_order(

POST /sapi/v1/convert/limit/placeOrder

https://binance-docs.github.io/apidocs/spot/en/#place-limit-order-user_data
https://developers.binance.com/docs/convert/trade/Place-Order

Args:
baseAsset (str): base asset (use the response fromIsBase from GET /sapi/v1/convert/exchangeInfo api to check which one is baseAsset)
Expand Down Expand Up @@ -169,7 +169,7 @@ def cancel_limit_order(self, orderId: str, **kwargs):

POST /sapi/v1/convert/limit/cancelOrder

https://binance-docs.github.io/apidocs/spot/en/#cancel-limit-order-user_data
https://developers.binance.com/docs/convert/trade/Cancel-Order

Args:
orderId (str): The orderId from placeOrder api
Expand All @@ -188,7 +188,7 @@ def query_limit_open_order(self, **kwargs):

GET /sapi/v1/convert/limit/queryOpenOrders

https://binance-docs.github.io/apidocs/spot/en/#query-limit-open-orders-user_data
https://developers.binance.com/docs/convert/trade/Query-Order

Keyword Args:
recvWindow (int, optional): The value cannot be greater than 60000
Expand All @@ -206,7 +206,7 @@ def get_convert_trade_history(self, startTime: int, endTime: int, **kwargs):

GET /sapi/v1/convert/tradeFlow

https://binance-docs.github.io/apidocs/spot/en/#get-convert-trade-history-user_data
https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History

Args:
startTime (int)
Expand Down
Loading
Loading