-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
45 lines (36 loc) · 1.75 KB
/
.env.example
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
#
#
#
# SYNCING ENV VARS BELOW.
#
#
#
# Alchemy API settings
ALCHEMY_API_URL=https://solana-mainnet.g.alchemy.com
ALCHEMY_API_KEY=your_api_key_here
# Coingecko API settings. For header if you are on demo account, leave as is if on pro use "if on demo account leave as is, if pro account replace it with x-cg-pro-api-key"
COINGECKO_API_URL=https://api.coingecko.com/api/v3/
COINGECKO_API_KEY=your_api_key_here
COINGECKO_HEADER=x-cg-api-key
# Database connection string for example "postgres://tmilukas:pw@localhost:5432/sol_amm_backtester"
DATABASE_URL=postgres://username:pw@localhost:4321/sol_amm_backtester
# Pool addresses to sync for example SOL/USDC pool FpCMFDFGYotvufJ7HrFHsWEiiQCGbkLCtwHiDnh7o28Q. POOL_PLATFORM necessary for optimizations and decoding data correctly. Only ORCA/RAYDIUM are supported.
POOL_ADDRESS=your_desired_pool_address
POOL_PLATFORM=ORCA
FEATURE_FLAG_OPTIMIZATION=TRUE # Only applies to ORCA.
# Settings for transaction sync. Three sync modes: FULL_RANGE, HISTORICAL, UPDATE. FULL_RANGE updates regardless of ur db state (perfect for initial sync). HISTORICAL updates from lowest block time on ur db till the SYNC_DAYS u specified. UPDATE just syncs latest transactions after ur highest block time from db.
SYNC_DAYS=3
SYNC_MODE=FULL_RANGE
#
#
#
# BACKTESTING ENV VARS BELOW.
#
#
#
# The strategy you want the backtest to run. These exist for now: NO_REBALANCE, SIMPLE_REBALANCE. You can create your and inject your own into the backtest!
STRATEGY=SIMPLE_REBALANCE
# The pool address you will be backtesting.
POOL_ADDRESS_TO_BACKTEST=your_desired_pool_address
# The details for ur specific strat which are parsed in config.
STRATEGY_DETAILS='{"token_a_amount": 10, "token_b_amount": 1470, "range": 100, "upper_tick": -18142, "lower_tick": -20142}'