-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
50 lines (41 loc) · 1.03 KB
/
fly.toml
File metadata and controls
50 lines (41 loc) · 1.03 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
# Fly.io Configuration for ORPflow HFT Paper Trading (DEPRECATED - use Render instead)
# https://fly.io/docs/reference/configuration/
app = "orp-flow-hft"
primary_region = "gru" # Sao Paulo, Brazil - closest to Binance servers
[build]
dockerfile = "Dockerfile"
[env]
RUST_LOG = "info"
SYMBOLS = "BTCUSDT,ETHUSDT"
DATABASE_URL = "sqlite:///data/trades.db"
TIMEZONE = "America/Sao_Paulo"
IPC_SOCKET_PATH = "/tmp/orp-flow.sock"
RISK_MAX_POSITION = "1.0"
RISK_MAX_DRAWDOWN = "0.05"
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 1
processes = ["app"]
[[http_service.checks]]
grace_period = "30s"
interval = "15s"
method = "GET"
path = "/health"
timeout = "10s"
[[vm]]
memory = "256mb"
cpu_kind = "shared"
cpus = 1
[mounts]
source = "orp_flow_data"
destination = "/data"
initial_size = "1gb"
# Metrics endpoint for monitoring
[[services]]
internal_port = 9090
protocol = "tcp"
[[services.ports]]
port = 9090