Skip to content

Commit acbbd05

Browse files
committed
Add binance APIs
Signed-off-by: adshao <tjusgj@gmail.com>
1 parent 0411fe8 commit acbbd05

2,145 files changed

Lines changed: 87864 additions & 1549 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Please do not edit the generated code manually, but rather regenerate it from [O
1010

1111
| Product | Module | Sub Products |
1212
|:---------:|-----------|--------|
13-
| [Spot API](binance/spot_README.md) | `binance.spot` | ✅ Spot Trading <br> ✅ Margin Trading <br> ✅ Algo Trading <br> ✅ Wallet <br> ✅ Copy Trading <br> ✅ Convert <br> ✅ Sub Account <br>✅ Binance Link <br>✅ Futures Data <br> ✅ Portfolio Margin Pro |
14-
| [USD-M Futures API](binance/umfutures_README.md) | `binance.umfutures` | ✅ USDS Margined Futures |
15-
| [COIN-M Futures API](binance/cmfutures_README.md) | `binance.cmfutures` | ✅ COIN Margined Futures |
16-
| [Options API](binance/options_README.md) | `binance.options` | ✅ Options |
17-
| [Portfolio Margin API](binance/pmargin_README.md) | `binance.pmargin` |Porfolio Margin |
13+
| [Spot API](binance/spot_README.md) | `binance.spot` | ✅ [Spot Trading](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) <br> ✅ [Margin Trading](https://developers.binance.com/docs/margin_trading/Introduction) <br> ✅ [Algo Trading](https://developers.binance.com/docs/algo/Introduction) <br> ✅ [Wallet](https://developers.binance.com/docs/wallet/Introduction) <br> ✅ [Copy Trading](https://developers.binance.com/docs/copy_trading/Introduction) <br> ✅ [Convert](https://developers.binance.com/docs/convert/Introduction) <br> ✅ [Sub Account](https://developers.binance.com/docs/sub_account/Introduction) <br>✅ [Binance Link](https://developers.binance.com/docs/binance_link/change-log) <br>✅ [Futures Data](https://developers.binance.com/docs/derivatives/futures-data/general-info) <br> ✅ [Portfolio Margin Pro](https://developers.binance.com/docs/derivatives/portfolio-margin-pro/general-info) <br>✅ [Staking](https://developers.binance.com/docs/staking/Introduction) <br>✅ [Dual Investment](https://developers.binance.com/docs/dual_investment/Introduction) <br>✅ [Mining](https://developers.binance.com/docs/mining/Introduction) <br>✅ [Crypto Loan](https://developers.binance.com/docs/crypto_loan/Introduction) <br>✅ [VIP Loan](https://developers.binance.com/docs/vip_loan/Introduction) <br>✅ [C2C](https://developers.binance.com/docs/c2c/Introduction) <br>✅ [Fiat](https://developers.binance.com/docs/fiat/Introduction) <br>✅ [NFT](https://developers.binance.com/docs/nft/Introduction) <br>✅ [Gift Card](https://developers.binance.com/docs/gift_card/Introduction) <br>✅ [Rebate](https://developers.binance.com/docs/rebate/Introduction) <br>✅ [Simple Earn](https://developers.binance.com/docs/simple_earn/Introduction) <br>✅ [Binance Pay History](https://developers.binance.com/docs/pay/Introduction) |
14+
| [USD-M Futures API](binance/umfutures_README.md) | `binance.umfutures` |[USDS Margined Futures](https://developers.binance.com/docs/derivatives/usds-margined-futures/general-info) <br> ✅ [Binance Link](https://developers.binance.com/docs/binance_link/link-and-trade/futures) |
15+
| [COIN-M Futures API](binance/cmfutures_README.md) | `binance.cmfutures` |[COIN Margined Futures](https://developers.binance.com/docs/derivatives/coin-margined-futures/general-info) |
16+
| [Options API](binance/options_README.md) | `binance.options` |[Options](https://developers.binance.com/docs/derivatives/option/general-info) |
17+
| [Portfolio Margin API](binance/pmargin_README.md) | `binance.pmargin` |[Portfolio Margin](https://developers.binance.com/docs/derivatives/portfolio-margin/general-info) |
1818

1919
## Requirements.
2020

binance/cmfutures/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
88
OpenAPI specification for Binance exchange - Cmfutures API
99
10-
The version of the OpenAPI document: 0.2.2
10+
The version of the OpenAPI document: 0.3.0
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212
1313
Do not edit the class manually.
1414
""" # noqa: E501
1515

1616

17-
__version__ = "0.2.2"
17+
__version__ = "0.3.0"
1818

1919
# import apis into sdk package
2020
from binance.cmfutures.api.futures_api import FuturesApi

binance/cmfutures/api/futures_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
OpenAPI specification for Binance exchange - Cmfutures API
77

8-
The version of the OpenAPI document: 0.2.2
8+
The version of the OpenAPI document: 0.3.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010

1111
Do not edit the class manually.

binance/cmfutures/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
OpenAPI specification for Binance exchange - Cmfutures API
77
8-
The version of the OpenAPI document: 0.2.2
8+
The version of the OpenAPI document: 0.3.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/0.2.2/python'
93+
self.user_agent = 'OpenAPI-Generator/0.3.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

binance/cmfutures/configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
OpenAPI specification for Binance exchange - Cmfutures API
77
8-
The version of the OpenAPI document: 0.2.2
8+
The version of the OpenAPI document: 0.3.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.
@@ -465,8 +465,8 @@ def to_debug_report(self) -> str:
465465
return "Python SDK Debug Report:\n"\
466466
"OS: {env}\n"\
467467
"Python Version: {pyversion}\n"\
468-
"Version of the API: 0.2.2\n"\
469-
"SDK Package Version: 0.2.2".\
468+
"Version of the API: 0.3.0\n"\
469+
"SDK Package Version: 0.3.0".\
470470
format(env=sys.platform, pyversion=sys.version)
471471

472472
def get_host_settings(self) -> List[HostSetting]:

binance/cmfutures/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
OpenAPI specification for Binance exchange - Cmfutures API
77
8-
The version of the OpenAPI document: 0.2.2
8+
The version of the OpenAPI document: 0.3.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

binance/cmfutures/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
OpenAPI specification for Binance exchange - Cmfutures API
88
9-
The version of the OpenAPI document: 0.2.2
9+
The version of the OpenAPI document: 0.3.0
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
1212
Do not edit the class manually.

binance/cmfutures/models/api_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
OpenAPI specification for Binance exchange - Cmfutures API
77
8-
The version of the OpenAPI document: 0.2.2
8+
The version of the OpenAPI document: 0.3.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

binance/cmfutures/models/cmfutures_create_batch_order_v1_req_batch_orders_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
OpenAPI specification for Binance exchange - Cmfutures API
77
8-
The version of the OpenAPI document: 0.2.2
8+
The version of the OpenAPI document: 0.3.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

binance/cmfutures/models/cmfutures_create_batch_orders_v1_resp_inner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
OpenAPI specification for Binance exchange - Cmfutures API
77
8-
The version of the OpenAPI document: 0.2.2
8+
The version of the OpenAPI document: 0.3.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.

0 commit comments

Comments
 (0)