Skip to content

m-kus/testex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestEx

Build Status Maintainability Codacy Badge Made With License: GPL v3

TestEx is a universal and standalone service for testing crypto-exchange API interaction with your code. It behaves almost exactly as a particular exchange itself.

No more debugging in production!

Supported exchanges

Exchange API version Revised in TestEx Documentation
Bittrex v1.1 10.12.18 docs
Poloniex v1.0 10.12.18 docs

Requirements

Installation

# Clone this repository
$ git clone https://github.com/m-kus/testex.git

# Go into the folder
$ cd testex

# Build and run project in daemon mode
$ docker-compose up -d --build

# Shutdown
$ docker-compose down

Usage

Modify api urls

Set base url in your custom wrapper or patch third party libraries.

https://bittrex.com/api/v1.1/public/getmarkets  # before
http://127.0.0.1:8008/bittrex.com/api/v1.1/public/getmarkets  # after

https://poloniex.com/public?command=returnTicker  # before
http://127.0.0.1:8008/poloniex.com/public?command=returnTicker  # after

Make a deposit

Open http://127.0.0.1:8008/deposit in your browser and make a deposit.

You can also do this from code, for example:

import requests
from decimal import Decimal

requests.post('http://127.0.0.1:8008/deposit', data=dict(
    api_key='API_KEY',
    currency='BTC',
    amount=Decimal('100')
))

Watch logs

$ docker logs testex

# In real-time
$ docker logs testex -ft 

View data

Connect directly to the database via mongodb://127.0.0.1:27018/testex

Planned features

  • More complicated execution (market/limit orders, ioc, fok, post)
  • Connection reset simulation
  • Rate limit emulation
  • Support top 5 exchanges
  • Autonomous market data generator
  • Websocket API
  • Deposit/withdrawals in testnet
  • TestEx as a service

About

💎 Virtual crypto exchange for testing purposes. API is compatible with major crypto exchanges.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published