Skip to main content

A Trading Gateway

Project description

Trade Gate

PyPI version Python version License: MIT

: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


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)

Uploaded Source

Built Distribution

TradeGate-0.0.7-py3-none-any.whl (59.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page