Skip to content

interdax/interdax_api_docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Interdax API

  • Detailed API-docs with node.js and python code examples @ https://app.interdax.com/docs
  • A comprehensive example market-maker bot, utilizing both http and websocket API's is below

Example market-maker bot

Prerequisites
  • Create an API-key in your account's security settings on the site:

  • Install required python modules

    • cd examples/python && pip install -r examples/python/requirements.txt
  • Refer to the Dockerfile for any other setup needs

Test

Runs a single market-making loop, cancels all orders and exits.

  • python mmbot.py -as <YOUR-API-KEY-SECRET> -ak <YOUR-API-KEY-ID> -t
Run

Run a market-making infinite loop

  • python mmbot.py -as <YOUR-API-KEY-SECRET> -ak <YOUR-API-KEY-ID> --market-maker

Run a market-taking loop that rebalances 50x leverage every 10 seconds

  • python mmbot.py -as <YOUR-API-KEY-SECRET> -ak <YOUR-API-KEY-ID> --market-taker --leverage 50 --delay 10
Alternatively, use the docker image
  1. Build - cd examples/python && docker build . -t interdaxapi
  2. Test - docker run -it -e API_KEY_SECRET=<YOUR-API-KEY-SECRET> -e API_KEY_ID=<YOUR-API-KEY-ID> -e TEST=true interdaxapi
  3. Run - docker run -it -e API_KEY_SECRET=<YOUR-API-KEY-SECRET> -e API_KEY_ID=<YOUR-API-KEY-ID> interdaxapi

About

Interdax API docs and examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published