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":
{
"main":
{
"futures":
{
"key": "API-KEY",
"secret": "API-SECRET"
},
"spot":
{
"key": "API-KEY",
"secret": "API-SECRET"
}
},
"test":
{
"futures":
{
"key": "API-KEY",
"secret": "API-SECRET"
},
"spot":
{
"key": "API-KEY",
"secret": "API-SECRET"
}
}
}
}
}
You should read this config file as json and give the desired exchange's informations to the main class initializer. Use sandbox
argument to connect to the testnets of exchanges (if it exsits). 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.9.tar.gz
(38.6 kB
view hashes)
Built Distribution
TradeGate-0.0.9-py3-none-any.whl
(59.7 kB
view hashes)
Close
Hashes for TradeGate-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 441b72b05122c4fc984324e8345e91c5b5c417217fae02100c3ebb49715a5d65 |
|
MD5 | bd28dd74b673e057f378451c99648832 |
|
BLAKE2b-256 | de52c42c68c1eb8dfaa84d20c5f242cfe2bf51bff8705ae36d1e45ac5dcc90a4 |