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.tar.gz
(38.1 kB
view hashes)
Built Distribution
TradeGate-0.0.8-py3-none-any.whl
(59.4 kB
view hashes)
Close
Hashes for TradeGate-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f79d6505bf5c19deca9b48193d209b5f7a616fd29b97d19354ce8be628792996 |
|
MD5 | ad8290a2a07a0dde8296e525211e3778 |
|
BLAKE2b-256 | f87e031aba146d30d42da92430d99c6f79b4527d2e56d0779fec9befc534236d |