forked from aeyakovenko/percolator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent-pyth.toml
More file actions
57 lines (47 loc) · 1.06 KB
/
agent-pyth.toml
File metadata and controls
57 lines (47 loc) · 1.06 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
50
51
52
53
54
55
56
57
# Liquidation Bot with Live Pyth Oracle Feed
#
# Streams real-time SOL/USD prices from Pyth on mainnet
# and runs a liquidation bot against them.
#
# Requires: cargo install percli --features pyth
# Usage: percli agent run --config examples/agent-pyth.toml
# percli agent run --config examples/agent-pyth.toml --dry-run
[meta]
name = "Pyth Live Liquidation Bot"
[agent]
command = ["python3", "examples/liquidation_bot.py"]
timeout_ms = 10000
[params]
maintenance_margin_bps = 500
initial_margin_bps = 1000
min_initial_deposit = 2
[market]
initial_oracle_price = 1000
initial_slot = 0
[feed]
type = "pyth"
rpc_url = "https://api.mainnet-beta.solana.com"
feed_id = "H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG" # SOL/USD
poll_ms = 2000
max_ticks = 500
[budget]
max_ticks = 500
accounts = ["alice", "bob"]
[[setup]]
action = "deposit"
account = "alice"
amount = 100000
[[setup]]
action = "deposit"
account = "bob"
amount = 100000
[[setup]]
action = "crank"
oracle_price = 1000
slot = 1
[[setup]]
action = "trade"
long = "alice"
short = "bob"
size = 90
price = 1000