-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added and fixed endpoints * added release date
- Loading branch information
Showing
10 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "3.1.2" | ||
__version__ = "3.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
def pm_exchange_info(self, symbol: str = None): | ||
""" | ||
| | ||
| **Portfolio Margin Exchange Information** | ||
| *Current Portfolio Margin exchange trading rules.* | ||
:API endpoint: ``GET /dapi/v1/pmExchangeInfo`` | ||
:API doc: https://binance-docs.github.io/apidocs/delivery/en/#portfolio-margin-exchange-information | ||
:parameter symbol: string; the trading pair. | ||
| | ||
""" | ||
|
||
params = {"symbol": symbol} | ||
return self.query("/dapi/v1/pmExchangeInfo", params) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
def pm_exchange_info(self, symbol: str = None): | ||
""" | ||
| | ||
| **Portfolio Margin Exchange Information** | ||
| *Current Portfolio Margin exchange trading rules.* | ||
:API endpoint: ``GET /fapi/v1/pmExchangeInfo`` | ||
:API doc: https://binance-docs.github.io/apidocs/futures/en/#portfolio-margin-endpoints | ||
:parameter symbol: string; the trading pair. | ||
| | ||
""" | ||
|
||
params = {"symbol": symbol} | ||
return self.query("/fapi/v1/pmExchangeInfo", params) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env python | ||
import logging | ||
from binance.cm_futures import CMFutures | ||
from binance.lib.utils import config_logging | ||
|
||
config_logging(logging, logging.DEBUG) | ||
|
||
cm_futures_client = CMFutures() | ||
|
||
logging.info(cm_futures_client.pm_exchange_info()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env python | ||
import logging | ||
from binance.um_futures import UMFutures | ||
from binance.lib.utils import config_logging | ||
|
||
config_logging(logging, logging.DEBUG) | ||
|
||
um_futures_client = UMFutures() | ||
|
||
logging.info(um_futures_client.pm_exchange_info()) |