deerme / api-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python 3 Trading Scripts


This repository contains Python 3 API trading scripts for Bullish cryptocurrency exchange. This set of scripts can be used out of the box. API traders can use these scripts as a starting point.

Bullish Trading API documentation: https://api.exchange.bullish.com/docs/api/rest/#overview

Install dependencies

pip3 install -r requirements.txt

Prepare environment variables

Inside the .env file, override the default variables with your JWT token and API key:

export BX_JWT=< your credential >

export BX_PUBLIC_KEY=< your credential >
export BX_PRIVATE_KEY=< your credential >
export BX_API_METADATA=< your credential >
export BX_AUTHORIZER=< your credential >

Scripts

For a full walk-through on the usage of these scripts, start here.

  • Generate a JWT token
  • Create an order
  • Cancel an order
  • Read orders

About


Languages

Language:Python 93.0%Language:Shell 7.0%