Skip to content

Deribit Testnet Copy Trader is a python script that copy trade from Deribit mainnet to testnet.

License

Notifications You must be signed in to change notification settings

SilverBeavers/deribit_testnet_copy_trader

Repository files navigation

Deribit Testnet Copy Trader

Deribit Testnet Copy Trader is a python script that copy trade from Deribit mainnet to testnet.

Some instruments in Deribit testnet may have limited liquidity and create addition challenges for testing scripts. By copying mainnet trades to testnet, it can creates a more liquid testing environment.

Table of Contents
  1. Built With
  2. Getting Started
  3. Docs
  4. Contact

Built With

Getting Started

  1. Register a mainnet account with Deribit (Affiliated link, Non-affiliated link).

  2. Register a testnet account with Deribit (Non-affiliated link).

  3. Fund testing token to testnet account. (Do not send real coin to testnet deposite address)

    1. Select coin type (BTC, ETH, SOL) on top left corner
    2. Click "Generate a deposit address"
    3. Copy deposit address
    4. Click on "here" of "You can fund your account with internal test coins here. In this case, please don't deposit more than 10 BTC to leave some coins for other traders as well." or https://test.deribit.com/dericoin/BTC/deposit.
    5. Paste the deposit address.
    6. Input the deposit amount.
    7. Click "Make deposit".
  4. Clone to local

git clone https://github.com/SilverBeavers/deribit_testnet_copy_trader.git
  1. Add mainnet API key to "credentials.py"
    1. Click on User Name on top right corner > "My Account" > "API" > "Add New Key".
    2. Select "Trade" > "read" > "Create a new API key".
    3. Copy "Client ID" and "Client Secret" to "credentials.py".
  2. Add testnet API key to "credentials.py"
    1. Click on User Name on top right corner > "My Account" > "API" > "Add New Key".
    2. Select "Trade" > "read" > "Create a new API key".
    3. Copy "Client ID" and "Client Secret" to "credentials.py".
  3. Input parameters to "user_settings.py"
  4. Run in python
python deribit_testnet_copy_trader.py

Docs

deribit_testnet_copy_trader(_instrument_names, _trade_amount)
Parameter Type Description
_instrument_names List The instrument name list which to be monitored
_trade_amount List The trade amount list for each side of trade
deribit_limit_trade(deribit_client, instrument_name, is_buy, trade_amount, price)
Parameter Type Description
deribit_client WS_Client Deribit websocket client
is_buy bool Whether buy or sell, True: buy, False: sell
trade_amount float The amount of contract wish to be traded
price float The limit price

Contact

About

Deribit Testnet Copy Trader is a python script that copy trade from Deribit mainnet to testnet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages