This commit is contained in:
vipg
2025-12-19 16:52:12 +08:00
parent 7866342529
commit 46cbf7a2e1

View File

@@ -0,0 +1,27 @@
curl -X POST http://127.0.0.1:20001/cn_futures_trading_record/open \
-H "Content-Type: application/json" \
-H "X-TradingRecordsRequest-ID: $(uuidgen)" \
-d '{
"event_type": "futures_trade",
"payload": {
"open_year": 2025,
"open_month": 6,
"open_day": 19,
"symbol": "RB",
"contract": "2510",
"direction": "long",
"open_price": 3800,
"open_fee": 12.5,
"close_year": 2025,
"close_month": 6,
"close_day": 20,
"close_price": 3850,
"close_fee": 12.5,
"price_diff": 50,
"min_tick": 1,
"tick_price": 10,
"diff_pnl": 500,
"total_fee": 25,
"close_pnl": 475
}
}'