-
Notifications
You must be signed in to change notification settings - Fork 18
/
config.py
36 lines (30 loc) · 1.25 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- coding: utf-8 -*-
DERIBIT_ACCOUNT_ID = 'mogu1988'
DERIBIT_CLIENT_ID = 'PmyJIl5T'
DERIBIT_CLIENT_SECRET = '7WBI4N_YT8YB5nAFq1VjPFedLMxGfrxxCbreMFOYLv0'
# N_ means next quarterly future
N_DERIBIT_ACCOUNT_ID = 'maxlu'
N_DERIBIT_CLIENT_ID = 'RZ4pks_D'
N_DERIBIT_CLIENT_SECRET = 'i62Zz0piJN3YSFvjTITkLegso-NpZVj0iL1anhxh0Vc'
# parameters for arbitrage between perpetual and future
SYMBOL = 'BTC'
MINIMUM_TICK_SIZE = 0.5
PERPETUAL = 'BTC-PERPETUAL'
SEASON_FUTURE = 'BTC-25SEP20'
SIZE_PER_TRADE = 900
TX_ENTRY_GAP = [10, 12, 14, 16, 18, 20] # premium rate
TX_EXIT_GAP = 1 # premium rate
TX_ENTRY_PRICE_GAP = 0.13 # percentage of current price
# POSITION_SIZE_THRESHOLD = [0.12 * i for i in [1, 2, 3, 4, 5, 6]]
POSITION_SIZE_THRESHOLD = [0.04 * i for i in [1, 2, 3, 4, 5, 6]]
# no open when first threshold is met, and close position when second threshold is met
MARGIN_THRESHOLD = [0.9, 0.92]
# parameters for next quarterly future
N_QUARTERLY_FUTURE = 'BTC-12DEC20'
N_SIZE_PER_TRADE = 900
N_TX_ENTRY_GAP = [5.5, 6.5, 7.5, 8.5, 9.5, 10.5]
N_TX_EXIT_GAP = 3.0
N_TX_ENTRY_PRICE_GAP = 1
N_POSITION_SIZE_THRESHOLD = [0.12 * i for i in [1, 2, 3, 4, 5, 6]]
# N_POSITION_SIZE_THRESHOLD = [200000 * i for i in [0.5, 1.2, 2.1, 3.2, 4.5, 6]]
N_MARGIN_THRESHOLD = [0.9, 0.92]