Skip to content

Commit b943389

Browse files
authored
Merge pull request #361 from binance/rc-v3.11.1
Release v3.11.1
2 parents cf2bfbc + a64d6ad commit b943389

File tree

9 files changed

+60
-92
lines changed

9 files changed

+60
-92
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 3.12.0 - 2025-01-13
4+
### Changed
5+
- Updated documentation links.
6+
7+
### Removed
8+
- Crypto-loans
9+
- `GET /sapi/v1/loan/repay/collateral/rate`
10+
311
## 3.11.0 - 2024-12-19
412
### Added
513
- A new optional parameter `time_unit` can be used to select the time unit.

binance/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.11.0"
1+
__version__ = "3.12.0"

binance/spot/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ def __init__(self, api_key=None, api_secret=None, **kwargs):
220220
from binance.spot._crypto_loan import loan_vip_repay_history
221221
from binance.spot._crypto_loan import loan_vip_collateral_account
222222
from binance.spot._crypto_loan import loan_loanable_data
223-
from binance.spot._crypto_loan import loan_collateral_rate
224223

225224
# PAY
226225
from binance.spot._pay import pay_history

binance/spot/_crypto_loan.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -179,37 +179,3 @@ def loan_loanable_data(self, **kwargs):
179179
"""
180180

181181
return self.sign_request("GET", "/sapi/v1/loan/loanable/data", kwargs)
182-
183-
184-
def loan_collateral_rate(
185-
self, loanCoin: str, collateralCoin: str, repayAmount: float, **kwargs
186-
):
187-
"""Check Collateral Repay Rate (USER_DATA)
188-
189-
GET /sapi/v1/loan/repay/collateral/rate
190-
191-
https://developers.binance.com/docs/crypto_loan/stable-rate/market-data/Check-Collateral-Repay-Rate
192-
193-
Args:
194-
loanCoin (str)
195-
collateralCoin (str)
196-
repayAmount (float)
197-
Keyword Args:
198-
recvWindow (int, optional): The value cannot be greater than 60000
199-
"""
200-
201-
check_required_parameters(
202-
[
203-
[loanCoin, "loanCoin"],
204-
[collateralCoin, "collateralCoin"],
205-
[repayAmount, "repayAmount"],
206-
]
207-
)
208-
209-
payload = {
210-
"loanCoin": loanCoin,
211-
"collateralCoin": collateralCoin,
212-
"repayAmount": repayAmount,
213-
**kwargs,
214-
}
215-
return self.sign_request("GET", "/sapi/v1/loan/repay/collateral/rate", payload)

binance/spot/_market.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def ping(self):
1313
1414
GET /api/v3/ping
1515
16-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#test-connectivity
16+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#test-connectivity
1717
1818
"""
1919

@@ -27,7 +27,7 @@ def time(self):
2727
2828
GET /api/v3/time
2929
30-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#check-server-time
30+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time
3131
3232
"""
3333

@@ -43,7 +43,7 @@ def exchange_info(
4343
4444
GET /api/v3/exchangeinfo
4545
46-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#exchange-information
46+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-information
4747
4848
Args:
4949
symbol (str, optional): the trading pair
@@ -76,7 +76,7 @@ def depth(self, symbol: str, **kwargs):
7676
7777
GET /api/v3/depth
7878
79-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#order-book
79+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book
8080
8181
Args:
8282
symbol (str): the trading pair
@@ -95,7 +95,7 @@ def trades(self, symbol: str, **kwargs):
9595
9696
GET /api/v3/trades
9797
98-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#recent-trades-list
98+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list
9999
100100
Args:
101101
symbol (str): the trading pair
@@ -113,7 +113,7 @@ def historical_trades(self, symbol: str, **kwargs):
113113
114114
GET /api/v3/historicalTrades
115115
116-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#old-trade-lookup
116+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#old-trade-lookup
117117
118118
Args:
119119
symbol (str): the trading pair
@@ -131,7 +131,7 @@ def agg_trades(self, symbol: str, **kwargs):
131131
132132
GET /api/v3/aggTrades
133133
134-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#compressedaggregate-trades-list
134+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list
135135
136136
Args:
137137
symbol (str): the trading pair
@@ -152,7 +152,7 @@ def klines(self, symbol: str, interval: str, **kwargs):
152152
153153
GET /api/v3/klines
154154
155-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#klinecandlestick-data
155+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data
156156
157157
Args:
158158
symbol (str): the trading pair
@@ -174,7 +174,7 @@ def ui_klines(self, symbol: str, interval: str, **kwargs):
174174
175175
GET /api/v3/uiKlines
176176
177-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#uiklines
177+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#uiklines
178178
179179
Args:
180180
symbol (str): the trading pair
@@ -196,7 +196,7 @@ def avg_price(self, symbol: str):
196196
197197
GET /api/v3/avgPrice
198198
199-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#current-average-price
199+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#current-average-price
200200
201201
Args:
202202
symbol (str): the trading pair
@@ -214,7 +214,7 @@ def ticker_24hr(self, symbol: str = None, symbols: list = None, **kwargs):
214214
215215
GET /api/v3/ticker/24hr
216216
217-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#24hr-ticker-price-change-statistics
217+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics
218218
219219
Args:
220220
symbol (str, optional): the trading pair
@@ -237,7 +237,7 @@ def trading_day_ticker(self, symbol: str = None, symbols: list = None):
237237
238238
GET /api/v3/ticker/tradingDay
239239
240-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#trading-day-ticker
240+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#trading-day-ticker
241241
242242
Args:
243243
symbol (str, optional): Either symbol or symbols must be provided
@@ -259,7 +259,7 @@ def ticker_price(self, symbol: str = None, symbols: list = None):
259259
260260
GET /api/v3/ticker/price
261261
262-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#symbol-price-ticker
262+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker
263263
264264
Args:
265265
symbol (str, optional): the trading pair
@@ -278,7 +278,7 @@ def book_ticker(self, symbol: str = None, symbols: list = None):
278278
279279
GET /api/v3/ticker/bookTicker
280280
281-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#symbol-order-book-ticker
281+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker
282282
283283
Args:
284284
symbol (str, optional): the trading pair
@@ -307,7 +307,7 @@ def rolling_window_ticker(self, symbol: str = None, symbols: list = None, **kwar
307307
308308
GET /api/v3/ticker
309309
310-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#rolling-window-price-change-statistics
310+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics
311311
312312
Args:
313313
symbol (str, optional): the trading pair

binance/spot/_trade.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def new_order_test(self, symbol: str, side: str, type: str, **kwargs):
1010
1111
POST /api/v3/order/test
1212
13-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#test-new-order-trade
13+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#test-new-order-trade
1414
1515
Args:
1616
symbol (str)
@@ -41,7 +41,7 @@ def new_order(self, symbol: str, side: str, type: str, **kwargs):
4141
4242
POST /api/v3/order
4343
44-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#new-order-trade
44+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-trade
4545
4646
Args:
4747
symbol (str)
@@ -75,7 +75,7 @@ def cancel_order(self, symbol: str, **kwargs):
7575
7676
DELETE /api/v3/order
7777
78-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#cancel-order-trade
78+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-trade
7979
8080
Args:
8181
symbol (str)
@@ -100,7 +100,7 @@ def cancel_open_orders(self, symbol: str, **kwargs):
100100
101101
DELETE api/v3/openOrders
102102
103-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#cancel-all-open-orders-on-a-symbol-trade
103+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-all-open-orders-on-a-symbol-trade
104104
105105
Args:
106106
symbol (str)
@@ -121,7 +121,7 @@ def get_order(self, symbol, **kwargs):
121121
122122
GET /api/v3/order
123123
124-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-order-user_data
124+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-user_data
125125
126126
Args:
127127
symbol (str)
@@ -152,7 +152,7 @@ def cancel_and_replace(
152152
153153
POST /api/v3/order/cancelReplace
154154
155-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
155+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-an-existing-order-and-send-a-new-order-trade
156156
157157
Args:
158158
symbol (str)
@@ -206,7 +206,7 @@ def get_open_orders(self, symbol=None, **kwargs):
206206
207207
GET /api/v3/openOrders
208208
209-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#current-open-orders-user_data
209+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#current-open-orders-user_data
210210
211211
Args:
212212
symbol (str, optional)
@@ -226,7 +226,7 @@ def get_orders(self, symbol: str, **kwargs):
226226
227227
GET /api/v3/allOrders
228228
229-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#all-orders-user_data
229+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#all-orders-user_data
230230
231231
Args:
232232
symbol (str)
@@ -268,7 +268,7 @@ def new_oco_order(
268268
269269
POST /api/v3/orderList/oco
270270
271-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#new-order-list---oco-trade
271+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-list---oco-trade
272272
273273
Args:
274274
symbol (str)
@@ -345,7 +345,7 @@ def new_oto_order(
345345
346346
POST /api/v3/orderList/oto
347347
348-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#new-order-list---oto-trade
348+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-list---oto-trade
349349
350350
Args:
351351
symbol (str)
@@ -428,7 +428,7 @@ def new_otoco_order(
428428
429429
POST /api/v3/orderList/otoco
430430
431-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#new-order-list---otoco-trade
431+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-list---otoco-trade
432432
433433
Args:
434434
symbol (str)
@@ -502,7 +502,7 @@ def cancel_oco_order(self, symbol, **kwargs):
502502
503503
DELETE /api/v3/orderList
504504
505-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#cancel-order-list-trade
505+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#cancel-order-list-trade
506506
507507
Args:
508508
symbol (str)
@@ -526,7 +526,7 @@ def get_oco_order(self, **kwargs):
526526
527527
GET /api/v3/orderList
528528
529-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-order-list-user_data
529+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-order-list-user_data
530530
531531
Keyword Args:
532532
orderListId (int, optional): Either orderListId or listClientOrderId must be provided
@@ -544,7 +544,7 @@ def get_oco_orders(self, **kwargs):
544544
545545
GET /api/v3/allOrderList
546546
547-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-all-order-lists-user_data
547+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-all-order-lists-user_data
548548
549549
Keyword Args:
550550
fromId (int, optional): If supplied, neither startTime or endTime can be provided
@@ -563,7 +563,7 @@ def get_oco_open_orders(self, **kwargs):
563563
564564
GET /api/v3/openOrderList
565565
566-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-open-order-lists-user_data
566+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#query-open-order-lists-user_data
567567
568568
Keyword Args:
569569
recvWindow (int, optional): The value cannot be greater than 60000
@@ -580,7 +580,7 @@ def account(self, **kwargs):
580580
581581
GET /api/v3/account
582582
583-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#account-information-user_data
583+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-information-user_data
584584
585585
Keyword Args:
586586
omitZeroBalances (bool, optional): When set to true, emits only the non-zero balances of an account. Default value: false
@@ -598,7 +598,7 @@ def my_trades(self, symbol: str, **kwargs):
598598
599599
GET /api/v3/myTrades
600600
601-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#account-trade-list-user_data
601+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#account-trade-list-user_data
602602
603603
Args:
604604
symbol (str)
@@ -625,7 +625,7 @@ def get_order_rate_limit(self, **kwargs):
625625
626626
GET /api/v3/rateLimit/order
627627
628-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-unfilled-order-count-user_data
628+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#query-unfilled-order-count-user_data
629629
630630
Keyword Args:
631631
recvWindow (int, optional): The value cannot be greater than 60000
@@ -658,7 +658,7 @@ def query_prevented_matches(self, symbol: str, **kwargs):
658658
659659
GET /api/v3/myPreventedMatches
660660
661-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-prevented-matches-user_data
661+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#query-prevented-matches-user_data
662662
663663
Args:
664664
symbol (str)
@@ -681,7 +681,7 @@ def query_allocations(self, symbol: str, **kwargs):
681681
682682
GET /api/v3/myAllocations
683683
684-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-allocations-user_data
684+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#query-allocations-user_data
685685
686686
Args:
687687
symbol (str)
@@ -705,7 +705,7 @@ def query_commission_rates(self, symbol: str, **kwargs):
705705
706706
GET /api/v3/account/commission
707707
708-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/public-api-endpoints#query-commission-rates-user_data
708+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/account-endpoints#query-commission-rates-user_data
709709
710710
Args:
711711
symbol (str)

0 commit comments

Comments
 (0)