-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplace_order_series.sh
33 lines (30 loc) · 1.01 KB
/
place_order_series.sh
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
#!/usr/bin/env bash
# XSN_LTC place 10 SELL orders with fixed quantity (funding of 0.1 XSN) with a price increase of 1 sat
# single means -> only one order placed, no follow up logic
curl -X POST \
http://localhost:9999/orders \
-H 'content-type: application/json' \
-d '[{
"side": "sell",
"tradingPair": "XSN_LTC",
"priceRangeStart": 101230,
"priceRangeEnd": 101250,
"priceRangeStepSize": 1,
"fixedFunding": 10000000,
"type": "single"
}]'
# XSN_LTC place 10 BUY orders with fixed quantity (funding of 0.0002 LTC) with a price increase of 1 sat
# IMPORTANT: buy orders need to have the funds converted to their base currency -> in this case its LTC
# single means -> only one order placed, no follow up logic
curl -X POST \
http://localhost:9999/orders \
-H 'content-type: application/json' \
-d '[{
"side": "buy",
"tradingPair": "XSN_LTC",
"priceRangeStart": 1012215,
"priceRangeEnd": 1012229,
"priceRangeStepSize": 1,
"fixedFunding": 20000,
"type": "single"
}]'