A package to make requests to brokers like binance,kraken
Project description
Python_Brokers_API
This repository hosts the brain api used for my trading algorithms.
Simple functions to use crypto brokers with python 3
Built by
Hugo Demenez
Example
import Python_Brokers_API
broker=Python_Brokers_API.binance()
#Public data
print(
broker.price(),
broker.get_klines_data(),
broker.get_24h_stats(),
)
#To connect api
print(
broker.connect_key("binance.key")
)
#Private data
print(
broker.account_information(),
broker.get_open_orders(),
broker.get_balances(),
broker.create_market_order(symbol='BTCUSD',side='buy',quantity=1),
broker.create_limit_order(symbol='BTCUSD',side='buy',quantity=1,price=10000),
broker.create_take_profit_order(symbol='BTCUSD',side='buy',quantity=1,profitPrice=100000),
broker.create_stop_loss_order(symbol='BTCUSD',side='buy',quantity=1,stopPrice=1000),
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Python_Brokers_API-1.3.tar.gz.
File metadata
- Download URL: Python_Brokers_API-1.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc402ee12cec07a6c51abd571f969be496affa697e5a9bfe343197de5fc6cda1
|
|
| MD5 |
724c3c07619ad39e5f8302891440f5ca
|
|
| BLAKE2b-256 |
9daee0c15aabda3af55319de33a3f538b581fbbdc677dd531ea11575b04a8228
|
File details
Details for the file Python_Brokers_API-1.3-py3-none-any.whl.
File metadata
- Download URL: Python_Brokers_API-1.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25b83faf11c306ebd2af5118d7212f826e38059056526f8599dc00f9123d6b48
|
|
| MD5 |
11be849979dfe04dcb3d154216fc3381
|
|
| BLAKE2b-256 |
c8cfc26ee93e71c0edee7b3d54bb7c872283b8e2a5a32085bb99eb2a1b0a1e96
|