-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env
28 lines (20 loc) · 1.02 KB
/
.env
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
# the private key of the bot can be UInt8Array or base58
BOT_KEY=
# the RPC url
RPC_URL=https://ssc-dao.genesysgo.net/
# the delimiter which separates the markets to make
ACTIVE_MARKETS_DELIMITER=,
# the pairs which the bot should act on ( BTC,ETH,SOL,LUNA,AVAX,APE,NEAR,GMT )
ACTIVE_MARKETS=BTC,ETH
# how often the bot should cancel open orders and open fresh orders using the MM_SPREAD_PERCENTAGE to determine the distance from mark price
REBALANCE_INTERVAL=60
# how much time in seconds to wait between cancelling orders (this is used to limit tx spamming on rate limited rpcs)
CANCEL_ORDER_INTERVAL_SECONDS=1
# how much time in seconds to wait between rebalancing markets (this is used to limit tx spamming on rate limited rpcs)
MARKET_REBALANCE_TIMEOUT_SECONDS=2
# the total distance from short to long with mark price residing in the middle
MM_SPREAD_PERCENTAGE=0.1
# the maximum loss percentage to allow before closing an open position
MAX_LOSS=0.25
# the maximum gain percentage to allow before closing an open position
MAX_GAIN=0.25