From 46cbf7a2e1b3158f24644f330200ceac829ee23c Mon Sep 17 00:00:00 2001 From: vipg Date: Fri, 19 Dec 2025 16:52:12 +0800 Subject: [PATCH] add --- services/cn_futures_trading_records/README.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/services/cn_futures_trading_records/README.md b/services/cn_futures_trading_records/README.md index e69de29..31a4347 100644 --- a/services/cn_futures_trading_records/README.md +++ b/services/cn_futures_trading_records/README.md @@ -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 + } + }' \ No newline at end of file