A Trading Gateway
Project description
Trade Gate
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": {
"exchangeName": "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'], 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.8.1.tar.gz
(38.2 kB
view hashes)
Built Distribution
Close
Hashes for TradeGate-0.0.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 677a320dad339daae0858294c84906ddd38a3432fd1d58e3577f228205467268 |
|
MD5 | beea63799bd44f2795a6c9356bea8753 |
|
BLAKE2b-256 | e35118abd29281e63c07b32bc1949d19d0de7b46daf51ac243a727f57466206a |