This repository was archived by the owner on Apr 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy pathsettings.py
More file actions
27 lines (22 loc) · 1.3 KB
/
Copy pathsettings.py
File metadata and controls
27 lines (22 loc) · 1.3 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
import os
from decimal import Decimal
API_VERSION = 1
API_URL = 'https://api.gemini.com'
API_WS_URL = 'wss://api.gemini.com'
STARTING_NONCE = 800 # must always increase incrementally
SYMBOL = 'ethusd' # currency pair to trade
POLL_DELAY = 30 # runloop interval in seconds
MAX_ACTIVE_ORDERS = 5 # maximum number of active orders to track
USD_MIN_ORDER_AMT = Decimal(5.00) # min amount to use when making new orders
USD_MAX_ORDER_AMT = Decimal(25.00) # max amount to use when making new orders
MAX_GAIN_RATIO = Decimal(0.02) # maximum percentage gains before selling the order
MAX_LOSS_RATIO = Decimal(-0.0075) # maximum percentage losses before selling the order
OVERPAY_RATIO = Decimal(0.0025) # percentage to pay over current price in order to guarantee orders closing quickly
USD_MAX_NET_GAINS = 10000 # total maximum USD gains before quitting the program
USD_MAX_NET_LOSS = -20 # total maximum USD losses before quitting the program
DATA_DIR = './data' # where to store the state and logs
try:
from secrets import * # copy and edit secrets_default.py to secrets.py
except ImportError:
print('Copy secrets_default.py to secrets.py to add your API credentials')
raise SystemExit(1)