Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/akmamun/bitmex-api-helper
- Owner: akmamun
- Created: 2019-07-27T20:01:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-01T11:47:30.000Z (about 5 years ago)
- Last Synced: 2024-12-06T14:46:50.466Z (about 2 months ago)
- Topics: api, bitcoin-api, bitmex, bitmex-python, flask, python3, swagger-codegen
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```