Skip to content

Commit

Permalink
v3.4.0 Release (#264)
Browse files Browse the repository at this point in the history
* v3.4.0 Release

* add missing logger param (#261)

---------

Co-authored-by: Burak Yildiz <[email protected]>
  • Loading branch information
2pd and byildiz authored Oct 7, 2023
1 parent a417706 commit 3367d18
Show file tree
Hide file tree
Showing 240 changed files with 7,113 additions and 1,463 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Post release cleaning
- name: Post release cleaning
run: |
python setup.py clean --all
rm dist/*
rm dist/*
102 changes: 102 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,107 @@
# Changelog

## 3.4.0 - 2023-10-07
### Added
- Portfolio endpoints:
- `POST /sapi/v1/portfolio/interest-history`
- `POST /sapi/v1/portfolio/asset-index-price`
- `POST /sapi/v1/portfolio/auto-collection`
- `POST /sapi/v1/portfolio/bnb-transfer`
- `POST /sapi/v1/portfolio/repay-futures-switch`
- `GET /sapi/v1/portfolio/repay-futures-switch`
- `POST /sapi/v1/portfolio/repay-futures-negative-balance`
- `POST /sapi/v1/portfolio/asset-collection`
- Convert
- `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`
- Crypto Loan
- `POST /sapi/v1/loan/flexible/borrow`
- `GET /sapi/v1/loan/flexible/ongoing/order`
- `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`
- Margin
- `GET /sapi/v1/margin/crossMarginCollateralRatio`
- `GET /sapi/v1/margin/exchange-small-liability`
- `GET /sapi/v1/margin/exchange-small-liability-history`
- `GET /sapi/v1/margin/next-hourly-interest-rate`
- `GET /sapi/v1/margin/dust`
- `POST /sapi/v1/margin/dust`
- `GET /sapi/v1/margin/max-leverage`
- SubAccount
- `POST /sapi/v4/sub-account/assets`
- `POST /sapi/v1/sub-account/eoptions/enable`
- `GET /sapi/v1/sub-account/transaction-statistics`
- `GET /sapi/v1/managed-subaccount/query-trans-log`
- `GET /sapi/v1/managed-subaccount/info`
- `GET /sapi/v1/managed-subaccount/marginAsset`
- `GET /sapi/v1/managed-subaccount/fetch-future-asset`
- `GET /sapi/v1/sub-account/futures/positionRisk`
- `GET /sapi/v1/sub-account/futures/accountSummary`
- `GET /sapi/v1/sub-account/futures/account`
- Trade
- `GET /api/v3/myPreventedMatches`
- Wallet
- `POST /sapi/v1/capital/deposit/credit-apply`
- Simple Earn
- `GET /sapi/v1/simple-earn/flexible/list`
- `GET /sapi/v1/simple-earn/locked/list`
- `POST /sapi/v1/simple-earn/flexible/subscribe`
- `POST /sapi/v1/simple-earn/locked/subscribe`
- `POST /sapi/v1/simple-earn/flexible/redeem`
- `POST /sapi/v1/simple-earn/locked/redeem`
- `GET /sapi/v1/simple-earn/flexible/position`
- `GET /sapi/v1/simple-earn/locked/position`
- `GET /sapi/v1/simple-earn/account`
- `GET /sapi/v1/simple-earn/flexible/history/subscriptionRecord`
- `GET /sapi/v1/simple-earn/locked/history/subscriptionRecord`
- `GET /sapi/v1/simple-earn/flexible/history/redemptionRecord`
- `GET /sapi/v1/simple-earn/locked/history/redemptionRecord`
- `GET /sapi/v1/simple-earn/flexible/history/rewardsRecord`
- `GET /sapi/v1/simple-earn/locked/history/rewardsRecord`
- `POST /sapi/v1/simple-earn/flexible/setAutoSubscribe`
- `POST /sapi/v1/simple-earn/locked/setAutoSubscribe`
- `GET /sapi/v1/simple-earn/flexible/personalLeftQuota`
- `GET /sapi/v1/simple-earn/locked/personalLeftQuota`
- `GET /sapi/v1/simple-earn/flexible/subscriptionPreview`
- `GET /sapi/v1/simple-earn/locked/subscriptionPreview`
- `GET /sapi/v1/simple-earn/flexible/history/rateHistory`
- `GET /sapi/v1/simple-earn/flexible/history/collateralRecord`
- All Auto-Invest endpoints

### Deleted
- `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/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/list`
- `POST /sapi/v1/lending/customizedFixed/purchase`
- `GET /sapi/v1/lending/project/position/list`
- `POST /sapi/v1/lending/positionChanged`
- `GET /sapi/v1/futures/loan/borrow/history`
- `GET /sapi/v1/futures/loan/repay/history`
- `GET /sapi/v2/futures/loan/wallet`
- `GET /sapi/v1/futures/loan/adjustCollateral/history`
- `GET /sapi/v1/futures/loan/liquidationHistory`
- `GET /sapi/v1/futures/loan/interestHistory`

### Changed
- Change `Loan` module name to `Crypto Loan`
- Pump dependencies

## 3.3.1 - 2023-08-23

### Changed
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.3.1"
__version__ = "3.4.0"
145 changes: 105 additions & 40 deletions binance/spot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._trade import account
from binance.spot._trade import my_trades
from binance.spot._trade import get_order_rate_limit
from binance.spot._trade import query_prevented_matches

# STREAMS
from binance.spot._data_stream import new_listen_key
Expand Down Expand Up @@ -98,22 +99,13 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._margin import margin_order_usage
from binance.spot._margin import margin_dust_log
from binance.spot._margin import summary_of_margin_account

# SAVINGS
from binance.spot._savings import savings_flexible_products
from binance.spot._savings import savings_flexible_user_left_quota
from binance.spot._savings import savings_purchase_flexible_product
from binance.spot._savings import savings_flexible_user_redemption_quota
from binance.spot._savings import savings_flexible_redeem
from binance.spot._savings import savings_flexible_product_position
from binance.spot._savings import savings_project_list
from binance.spot._savings import savings_purchase_project
from binance.spot._savings import savings_project_position
from binance.spot._savings import savings_account
from binance.spot._savings import savings_purchase_record
from binance.spot._savings import savings_redemption_record
from binance.spot._savings import savings_interest_history
from binance.spot._savings import savings_change_position
from binance.spot._margin import cross_margin_collateral_ratio
from binance.spot._margin import get_small_liability_exchange_coin_list
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 get_assets_that_can_be_converted_into_bnb
from binance.spot._margin import dust_transfer
from binance.spot._margin import adjust_cross_margin_max_leverage

# Staking
from binance.spot._staking import staking_product_list
Expand Down Expand Up @@ -152,6 +144,7 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
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

# MINING
from binance.spot._mining import mining_algo_list
Expand Down Expand Up @@ -204,16 +197,22 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._sub_account import managed_sub_account_investor_trans_log
from binance.spot._sub_account import managed_sub_account_trading_trans_log
from binance.spot._sub_account import managed_sub_account_deposit_address
from binance.spot._sub_account import query_sub_account_assets
from binance.spot._sub_account import enable_options_for_sub_account
from binance.spot._sub_account import query_sub_account_transaction_statistics
from binance.spot._sub_account import query_managed_sub_account_margin_asset_details
from binance.spot._sub_account import query_managed_sub_account_list
from binance.spot._sub_account import (
query_managed_sub_account_futures_asset_details,
)
from binance.spot._sub_account import futures_position_risk_of_sub_account
from binance.spot._sub_account import summary_of_sub_account_s_futures_account
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
from binance.spot._futures import futures_loan_borrow_history
from binance.spot._futures import futures_loan_repay_history
from binance.spot._futures import futures_loan_wallet
from binance.spot._futures import futures_loan_adjust_collateral_history
from binance.spot._futures import futures_loan_liquidation_history
from binance.spot._futures import futures_loan_interest_history

# BLVTs
from binance.spot._blvt import blvt_info
Expand Down Expand Up @@ -246,29 +245,43 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
# C2C
from binance.spot._c2c import c2c_trade_history

# LOANS
from binance.spot._loan import loan_history
from binance.spot._loan import loan_borrow
from binance.spot._loan import loan_borrow_history
from binance.spot._loan import loan_ongoing_orders
from binance.spot._loan import loan_repay
from binance.spot._loan import loan_repay_history
from binance.spot._loan import loan_adjust_ltv
from binance.spot._loan import loan_adjust_ltv_history
from binance.spot._loan import loan_vip_ongoing_orders
from binance.spot._loan import loan_vip_repay
from binance.spot._loan import loan_vip_repay_history
from binance.spot._loan import loan_vip_collateral_account
from binance.spot._loan import loan_loanable_data
from binance.spot._loan import loan_collateral_data
from binance.spot._loan import loan_collateral_rate
from binance.spot._loan import loan_customize_margin_call
# Crypto LOANS
from binance.spot._crypto_loan import loan_history
from binance.spot._crypto_loan import loan_borrow
from binance.spot._crypto_loan import loan_borrow_history
from binance.spot._crypto_loan import loan_ongoing_orders
from binance.spot._crypto_loan import loan_repay
from binance.spot._crypto_loan import loan_repay_history
from binance.spot._crypto_loan import loan_adjust_ltv
from binance.spot._crypto_loan import loan_adjust_ltv_history
from binance.spot._crypto_loan import loan_vip_ongoing_orders
from binance.spot._crypto_loan import loan_vip_repay
from binance.spot._crypto_loan import loan_vip_repay_history
from binance.spot._crypto_loan import loan_vip_collateral_account
from binance.spot._crypto_loan import loan_loanable_data
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

# CONVERT
from binance.spot._convert import convert_trade_history
from binance.spot._convert import list_all_convert_pairs
from binance.spot._convert import query_order_quantity_precision_per_asset
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 get_convert_trade_history

# REBATE
from binance.spot._rebate import rebate_spot_history
Expand All @@ -292,3 +305,55 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
from binance.spot._portfolio_margin import portfolio_margin_collateral_rate
from binance.spot._portfolio_margin import portfolio_margin_bankruptcy_loan_amount
from binance.spot._portfolio_margin import portfolio_margin_bankruptcy_loan_repay
from binance.spot._portfolio_margin import (
query_classic_portfolio_margin_negative_balance_interest_history,
)
from binance.spot._portfolio_margin import query_portfolio_margin_asset_index_price
from binance.spot._portfolio_margin import fund_auto_collection
from binance.spot._portfolio_margin import bnb_transfer
from binance.spot._portfolio_margin import change_auto_repay_futures_status
from binance.spot._portfolio_margin import get_auto_repay_futures_status
from binance.spot._portfolio_margin import repay_futures_negative_balance
from binance.spot._portfolio_margin import fund_collection_by_asset

# Simple Earn
from binance.spot._simple_earn import get_simple_earn_flexible_product_list
from binance.spot._simple_earn import get_simple_earn_locked_product_list
from binance.spot._simple_earn import subscribe_flexible_product
from binance.spot._simple_earn import subscribe_locked_product
from binance.spot._simple_earn import redeem_flexible_product
from binance.spot._simple_earn import redeem_locked_product
from binance.spot._simple_earn import get_flexible_product_position
from binance.spot._simple_earn import get_locked_product_position
from binance.spot._simple_earn import simple_account
from binance.spot._simple_earn import get_flexible_subscription_record
from binance.spot._simple_earn import get_locked_subscription_record
from binance.spot._simple_earn import get_flexible_redemption_record
from binance.spot._simple_earn import get_locked_redemption_record
from binance.spot._simple_earn import get_flexible_rewards_history
from binance.spot._simple_earn import get_locked_rewards_history
from binance.spot._simple_earn import set_flexible_auto_subscribe
from binance.spot._simple_earn import set_locked_auto_subscribe
from binance.spot._simple_earn import get_flexible_personal_left_quota
from binance.spot._simple_earn import get_locked_personal_left_quota
from binance.spot._simple_earn import get_flexible_subscription_preview
from binance.spot._simple_earn import get_locked_subscription_preview
from binance.spot._simple_earn import get_rate_history
from binance.spot._simple_earn import get_collateral_record

# Auto-Invest
from binance.spot._auto_invest import get_target_asset_list
from binance.spot._auto_invest import get_target_asset_roi_data
from binance.spot._auto_invest import query_all_source_asset_and_target_asset
from binance.spot._auto_invest import query_source_asset_list
from binance.spot._auto_invest import change_plan_status
from binance.spot._auto_invest import get_list_of_plans
from binance.spot._auto_invest import query_holding_details_of_the_plan
from binance.spot._auto_invest import query_subscription_transaction_history
from binance.spot._auto_invest import query_index_details
from binance.spot._auto_invest import query_index_linked_plan_position_details
from binance.spot._auto_invest import one_time_transaction
from binance.spot._auto_invest import query_one_time_transaction_status
from binance.spot._auto_invest import index_linked_plan_redemption
from binance.spot._auto_invest import get_index_linked_plan_redemption_history
from binance.spot._auto_invest import index_linked_plan_rebalance_details
Loading

0 comments on commit 3367d18

Please sign in to comment.