A Trading Gateway
Project description
Trade Gate
:money_with_wings: An algorithmic trading library to use as a gateway to different exchanges
How to install
Use this github repository and running python setup.py install
, or using pip:
pip install TradeGate
How to use
Use with a config file in json format. Your config file should look like this:
{
"Binance": {
"credentials": {
"test": {
"futures": {
"key": "API-KEY",
"secret": "API-SECRET"
},
"spot": {
"key": "API-KEY",
"secret": "API-SECRET"
}
}
},
"baseUrls": {
"spot": "SPOT-URL",
"futures": "FUTURES-URL"
}
}
}
You should read this config file as json and give the desired exchange's informations to the main class initializer. This is shown below:
from TradeGate import TradeGate
import json
with open('/Users/rustinsoraki/Documents/Projects/tradeGate/config.json') as f:
config = json.load(f)
gate = TradeGate(config['Binance'], 'Binance', sandbox=True)
print(gate.getSymbolTickerPrice('BTCUSDT'))
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
TradeGate-0.0.7.tar.gz
(37.4 kB
view hashes)
Built Distribution
TradeGate-0.0.7-py3-none-any.whl
(59.1 kB
view hashes)
Close
Hashes for TradeGate-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d22919a5f7d0975e51134186b6beeb9ffb1fa833b51bd3c512c2405384003339 |
|
MD5 | 970f6bac84317b522c8cfe90fded004e |
|
BLAKE2b-256 | 79ee1757f39ac8ece162c96e523628ef23976d42f579f96d893035b2b92f182d |