Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akmamun/bitmex-api-helper

Bitmex Api Helper in Python Flask
https://github.com/akmamun/bitmex-api-helper

api bitcoin-api bitmex bitmex-python flask python3 swagger-codegen

Last synced: about 18 hours ago
JSON representation

Bitmex Api Helper in Python Flask

Awesome Lists containing this project

README

        

# Bitmex API Helper for Python Flask
#### Implementation of [Bitmex](https://github.com/BitMEX/api-connectors/tree/master/official-http/python-swaggerpy) API connectors in Flask
### Create [virtual environment]('https://docs.python.org/3/library/venv.html) and install requirements
```sh
pip install -r requirements.txt
```
### Need API Key and API Secret from [Bitmex Test](https://testnet.bitmex.com/app/apiKeys)
- Add `api_key` and `api_secret` in [app](./src/app.py)
#### List of Implemented Routes
| Request | Endpoint | Details |
| --- | --- | --- |
| `GET` | `http://127.0.0.1:5000/data/order`| Get Orders Data|
| `GET` | `http://127.0.0.1:5000/data/instrument`| Get Instrument Data|
| `GET` | `http://127.0.0.1:5000/data/position`| Get Position Data|
| `GET` | `http://127.0.0.1:5000/data/quote`| Get Quote Data|

- To see route list from cli `flask routes`

### Lets run the App
```sh
python app.py
```