forked from kanikaverma343/BitmexBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
executable file
·51 lines (33 loc) · 1.19 KB
/
settings.py
File metadata and controls
executable file
·51 lines (33 loc) · 1.19 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
from os.path import join
import logging
BASE_URL_LIVE = "https://www.bitmex.com/api/v1/"
BASE_URL_TESTING = "https://testnet.bitmex.com/api/v1/"
# The BitMEX API requires permanent API keys. Go to https://testnet.bitmex.com/api/apiKeys to fill these out.
# for TESTING mode
# https://www.bitmex.com/api/apiKeys for LIVE mode
API_KEY = "HkrGARbQaw6SAXUKskmZGgXj"
API_SECRET = "-StPBQFePPZ7xi4cg0i3cGV0z8JOqEaehsYaGcN0Kv8o4yps"
# Instrument to market make on BitMEX.
SYMBOL = "XBTUSD"
# order amount for bitmex in USD
POSITION = 1000
# tick interval used for mcad data
TICK_INTERVAL = '1m'
STOP_LOSS_FACTOR = 0.007
STOP_PROFIT_FACTOR = 0.01
# There is two mode one is TESTING and other is LIVE
MODE = "TESTING"
INTERVAL = 0.005
RELIST_INTERVAL = 0.01
CHECK_POSITION_LIMITS = False
MIN_POSITION = -10000
MAX_POSITION = 10000
LOOP_INTERVAL = 5
# Wait times between orders / errors
API_REST_INTERVAL = 1
API_ERROR_INTERVAL = 10
# Available levels: logging.(DEBUG|INFO|WARN|ERROR)
LOG_LEVEL = logging.INFO
ORDERID_PREFIX = "sam_bitmex_"
# If any of these files (and this file) changes, reload the bot.
WATCHED_FILES = [join("bitmex_bot", f) for f in ["bitmex_bot.py", "bitmex_historical.py", __file__]]