fix logging issues
This commit is contained in:
46
e2e.sh
46
e2e.sh
@@ -1,44 +1,46 @@
|
||||
#!/bin/bash
|
||||
|
||||
BASE_URL="http://localhost:8080/api"
|
||||
TODAY=$(date +%Y-%m-%d)
|
||||
|
||||
echo "=== E2E Pseudo Test ==="
|
||||
echo "Using date: $TODAY"
|
||||
echo ""
|
||||
|
||||
echo "POST /api/orderupdate - Place SELL order"
|
||||
curl -s -X POST "$BASE_URL/orderupdate" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"delivery_start_time": "2024-01-15T10:00:00",
|
||||
"delivery_end_time": "2024-01-15T10:15:00",
|
||||
"order_side": "SELL",
|
||||
"quantity": 10,
|
||||
"price": 50.00
|
||||
}' | jq .
|
||||
-d "{
|
||||
\"delivery_start_time\": \"${TODAY}T10:00:00\",
|
||||
\"delivery_end_time\": \"${TODAY}T10:15:00\",
|
||||
\"order_side\": \"SELL\",
|
||||
\"quantity\": 10,
|
||||
\"price\": 50.00
|
||||
}" | jq .
|
||||
echo ""
|
||||
|
||||
echo "POST /api/orderupdate - Place matching BUY order"
|
||||
curl -s -X POST "$BASE_URL/orderupdate" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"delivery_start_time": "2024-01-15T10:00:00",
|
||||
"delivery_end_time": "2024-01-15T10:15:00",
|
||||
"order_side": "BUY",
|
||||
"quantity": 5,
|
||||
"price": 50.00
|
||||
}' | jq .
|
||||
-d "{
|
||||
\"delivery_start_time\": \"${TODAY}T10:00:00\",
|
||||
\"delivery_end_time\": \"${TODAY}T10:15:00\",
|
||||
\"order_side\": \"BUY\",
|
||||
\"quantity\": 5,
|
||||
\"price\": 50.00
|
||||
}" | jq .
|
||||
echo ""
|
||||
|
||||
echo "POST /api/orderupdate - Place another BUY order"
|
||||
echo "POST /api/orderupdate - Place another SELL order"
|
||||
curl -s -X POST "$BASE_URL/orderupdate" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"delivery_start_time": "2024-01-15T10:15:00",
|
||||
"delivery_end_time": "2024-01-15T10:30:00",
|
||||
"order_side": "BUY",
|
||||
"quantity": 20,
|
||||
"price": 45.00
|
||||
}' | jq .
|
||||
-d "{
|
||||
\"delivery_start_time\": \"${TODAY}T10:15:00\",
|
||||
\"delivery_end_time\": \"${TODAY}T10:30:00\",
|
||||
\"order_side\": \"SELL\",
|
||||
\"quantity\": 20,
|
||||
\"price\": 45.00
|
||||
}" | jq .
|
||||
echo ""
|
||||
|
||||
echo "GET /api/market/overview - Get market overview"
|
||||
|
||||
Reference in New Issue
Block a user