-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
88 lines (62 loc) · 3.19 KB
/
Makefile
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
all : start stop
.PHONY : all
DEFAULT_STRATEGY := strategy_a
build:
docker build -t ghcr.io/geniusyield/strategy-executor .
start:
docker compose up -d --build $(DEFAULT_STRATEGY)
docker compose logs -f $(DEFAULT_STRATEGY)
start-server:
docker compose up -d server
docker compose logs -f server
start-a:
docker compose up -d --build strategy_a
docker compose logs -f strategy_a
start-b:
docker compose up -d --build strategy_b
docker compose logs -f strategy_b
start-c:
docker compose up -d --build strategy_c
docker compose logs -f strategy_c
start-fgis:
docker compose up -d --build fear_and_greed_index_strategy
docker compose logs -f fear_and_greed_index_strategy
start-bb:
docker compose up -d --build bollinger_bands_strategy
docker compose logs -f bollinger_bands_strategy
start-fng:
docker compose up -d --build fear_and_greed_index_strategy
docker compose logs -f fear_and_greed_index_strategy
start-crbs:
docker compose up -d --build combined_rsi_bollinger_strategy
docker compose logs -f combined_rsi_bollinger_strategy
start-srbs:
docker compose up -d --build simple_rsi_bollinger_strategy
docker compose logs -f simple_rsi_bollinger_strategy
start-open-ai:
docker compose up -d --build open_ai_strategy
docker compose logs -f open_ai_strategy
server-logs:
docker compose logs -f server
stop:
docker compose down
get-settings:
curl -H "api-key: ${SERVER_API_KEY}" localhost:8082/v0/settings/ && echo
get-assets:
curl -H "api-key: $(SERVER_API_KEY)" localhost:8082/v0/assets/c6e65ba7878b2f8ea0ad39287d3e2fd256dc5c4160fc19bdf4c4d87e.7447454e53 && echo
get-fees:
curl -H "api-key: $(SERVER_API_KEY)" localhost:8082/v0/trading-fees && echo
get-markets:
curl -H "api-key: $(SERVER_API_KEY)" localhost:8082/v0/markets && echo
get-balances:
curl -H "api-key: $(SERVER_API_KEY)" localhost:8082/v0/balances && echo
get-order-book:
curl -H "api-key: $(SERVER_API_KEY)" localhost:8082/v0/order-books/lovelace_c6e65ba7878b2f8ea0ad39287d3e2fd256dc5c4160fc19bdf4c4d87e.7447454e53 && echo
place-order:
curl -X POST localhost:8082/v0/orders -H "Content-Type: application/json" -H "api-key: ${SERVER_API_KEY}" -d '{"offer_amount": "1", "offer_token": "lovelace", "price_amount": "1", "price_token": "66a524d7f34d954a3ad30b4e2d08023c950dfcd53bbe3c2314995da6.744d454c44", "address":"addr_test1qz9zh342r6ynfhk974tmjxxxznrmmh0tre09tdh6gc3r6r2rq3uxt0yu4c0mg2ck6h8f0h3ykh7n4w68f7dr3mfch58q6rhtxg"}'
cancel-order:
curl -X DELETE "localhost:8082/v0/orders" -H "Content-Type: application/json" -H "api-key: ${SERVER_API_KEY}" -d '{"address": "addr_test1qz9zh342r6ynfhk974tmjxxxznrmmh0tre09tdh6gc3r6r2rq3uxt0yu4c0mg2ck6h8f0h3ykh7n4w68f7dr3mfch58q6rhtxg","order_references": [ "50edb8d98a503c83e04b4d3a828150797f6fc2c6e096f40e67f803b13032bb85#0"] }'
get-historical-prices:
curl -X GET "localhost:8082/v0/historical-prices/maestro/lovelace_c6e65ba7878b2f8ea0ad39287d3e2fd256dc5c4160fc19bdf4c4d87e.7447454e53/genius-yield?resolution=1h" -H "api-key: ${SERVER_API_KEY}"
get-historical-prices-minswap:
curl -X GET "localhost:8082/v0/historical-prices/maestro/lovelace_c6e65ba7878b2f8ea0ad39287d3e2fd256dc5c4160fc19bdf4c4d87e.7447454e53/genius-yield?resolution=1d&from=2024-01-01&to=2024-02-14" -H "api-key: ${SERVER_API_KEY}"