forked from chainflipgod/Chainflip-Maker-Hedge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
125 lines (108 loc) · 2.58 KB
/
config.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# config.yaml
# WebSocket and API URLs
chainflip_ws_url: "ws://127.0.0.1:10589"
chainflip_api_url: "http://localhost:10589"
hyperliquid_ws_url: "wss://api.hyperliquid.xyz/ws"
# Chainflip LP address
chainflip_lp_address: "<YOUR_CHAINFLIP_LP_ADDRESS>"
# Assets
assets:
base:
chain: "Ethereum"
asset: "ETH"
btc:
chain: "Bitcoin"
asset: "BTC"
dot:
chain: "Polkadot"
asset: "DOT"
quote:
chain: "Ethereum"
asset: "USDC"
arbitrum_eth:
chain: "Arbitrum"
asset: "ETH"
# Trading amounts - Specific your order size for buys/sells for each asset
trading_amounts:
eth:
sell:
percentage: 5 # 5% of available ETH balance
buy:
percentage: 5 # 5% of available USDC balance (for buying ETH)
btc:
sell:
percentage: 5
buy:
percentage: 5
dot:
sell:
percentage: 5
buy:
percentage: 5
arbitrum_eth:
sell:
percentage: 5
buy:
percentage: 5
# Telegram settings
telegram:
bot_token: '<YOUR_TELEGRAM_BOT_TOKEN>'
chat_id: '<YOUR_TELEGRAM_CHAT_ID>'
# Order fill file
order_fill_file: 'order_fills.json'
# Trading parameters - Specify your Chainflip limit order price params based upon the Hyperliquid mid-price
trading:
eth:
buy_factor: 0.9950
sell_factor: 1.0050
btc:
buy_factor: 0.9950
sell_factor: 1.0050
dot:
buy_factor: 0.9950
sell_factor: 1.0050
arbitrum_eth:
buy_factor: 0.9950
sell_factor: 1.0050
price_change_threshold: 0.0005 #Only update order pricing if the price change exceeds this threshold in the given time setting
# Hyperliquid DEX Hedge-specific configuration
hedge:
api_wallet_address: "<YOUR_API_WALLET_ADDRESS>"
user_wallet_address: "<YOUR_USER_WALLET_ADDRESS>"
private_key: "<YOUR_PRIVATE_KEY>"
price_adjustment_bps: #Determine how many basis points from your Chainflip order execution you place your Hyperliquid limit orders
BTC:
buy: 50
sell: 50
ETH:
buy: 50
sell: 50
DOT:
buy: 50
sell: 50
last_processed_time_file: 'last_processed_time.txt'
database_file: 'trades.db'
check_intervals:
balance: 60
open_orders: 300
order_fill: 5
summary_log: 600
log_iterations: 300
# Shared settings
sz_decimals:
ETH: 18
BTC: 8
DOT: 10
# PL Tracker specific configurations
pl_tracker:
check_interval: 300 # 5 minutes in seconds
retry_interval: 60 # 1 minute in seconds
# Database configuration
database:
file: 'trades.db'
# Logging configuration
logging:
level: 'INFO'
format: '%(asctime)s - %(levelname)s - %(message)s'
# Decimal precision
decimal_precision: 50