Trade
bizType=tradeapi.admin.OrderAdminApiService.cancelPboOrder
{{auto_token}}0.0.1tradeApi{{mock_trace}}Trading method: contract full position is 1
Customer Number
Customer Id
Customer group Id
POST /openapi-b/tradeapi.admin.OrderAdminApiService.cancelPboOrder HTTP/1.1
Host: pre-api-test.cmfbl.com
token: text
version: text
group: text
trace: text
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"tradeType": 1,
"customerNo": "86000188",
"customerId": 189,
"customerGroupId": 1
}{
"msg": "Success",
"fail": false,
"trace": "t-jgl2h-s5ndh-338f8-5bdi0al-1660127057",
"code": "0",
"data": [
"CATS:PROORDER:1_1557311743581831168"
],
"bizCode": "",
"tm": 349,
"msgParams": null,
"ok": true
}bizType=tradeapi.admin.OrderAdminApiService.forcedOrder
{{auto_token}}0.0.1tradeApi{{mock_trace}}Trading gameplay
Customer Number
Customer ID
Customer group number
POST /openapi-b/tradeapi.admin.OrderAdminApiService.forcedOrder HTTP/1.1
Host: pre-api-test.cmfbl.com
token: text
version: text
group: text
trace: text
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"tradeType": 1,
"customerNo": "86000188",
"customerId": 189,
"customerGroupId": 1
}{
"msg": "Success",
"fail": false,
"trace": "t-s5h66nh-c4727g1-hbkt0rxn-189w-1660127124",
"code": "0",
"data": {
"tradeVolume": "1.0",
"symbolId": 2,
"orderId": 116130,
"fee": "-16.980600",
"openOrClose": 2,
"openPrice": "1697.01",
"takeProfit": null,
"positionId": 2022081000376,
"interest": "0.000000",
"openDirection": 1,
"stopLoss": null,
"executePrice": "1698.06",
"digits": 2,
"symbolName": "ETH/USDT",
"profit": "-1.050000",
"direction": 1
},
"bizCode": "",
"tm": 295,
"msgParams": null,
"ok": true
}group=tradeApi version=0.0.1 bizType=tradeapi.admin.OrderAdminApiService.queryCapitalFlowList
Global link unique identifier
{{mock_trace}}Company ID
{{company}}Token after B-end authentication
{{auto_token}}Interface version number
0.0.1Interface grouping
tradeApiGame ID
Account ID
Account currency
Number of items per page
Current page
Business type. 0-unrestricted; CFD-full position: 1-deposit; 2-withdrawal; 3-system reset; 4-limit adjustment; 5-freeze; 6-trade; 36-transfer; 42-reward; CFD-margin: 7-deposit; 8-withdrawal; 9-system reset; 10-limit adjustment; 11-freeze; 12-trade; 13-margin adjustment; 37-transfer; 43-reward; Leverage: 14-deposit; 15-withdrawal; 16-limit adjustment; 17-freeze; 18-trade; 19-auto loan; 20-manual loan; 21-auto repayment; 22-manual repayment; 23-loan interest; 35-back-end repayment; 38-transfer; 40-force liquidation repayment; 44-reward; ABCC: 24-deposit; 25-withdrawal; 26-limit adjustment; 27-freeze; 28-trade; 29-auto loan; 30-manual loan; 31-auto repayment; 32-manual repayment; 33-loan interest; 34-back-end repayment; 39-transfer; 41-force liquidation repayment; 45-reward; Spot leverage matching: 50-deposit; 51-withdrawal; 52-limit adjustment; 53-freeze; 54-trade; 55-transfer; 59-reward; Stocks: 601-deposit; 602-withdrawal; 603-limit adjustment; 604-freeze; 605-collateral; 606-trade; 607-loan; 608-repayment; 609-transfer; 610-interest calculation; 611-interest settlement; 612-reward; 613-system reset; 614-company action
Status. 0-Unrestricted; 1-Initialized; 2-Processed successfully; 3-Processing failed;
Start time. 13-digit timestamp; 7 days before today
End time. 13-digit timestamp; usually today
Flow direction. 0-Unrestricted; 1. Increase, 2. Decrease;
Asset Id;
Language (zh_CN-Chinese; en_US-English. Default to Chinese if not filled or filled incorrectly);
POST /openapi-b/tradeapi.admin.OrderAdminApiService.queryCapitalFlowList HTTP/1.1
Host: pre-api-test.cmfbl.com
trace: text
companyId: text
token: text
version: text
group: text
Content-Type: application/json
Accept: */*
Content-Length: 151
{
"tradeType": 5,
"customerNo": "86000020",
"customerGroupId": "1",
"customerId": "21",
"current": 1,
"size": 20,
"startTime": 1668528000000,
"endTime": 1669219199999
}{
"bizCode": "text",
"code": "text",
"msg": "text",
"tm": 1,
"trace": "text",
"msgParams": "text",
"ok": true,
"fail": true,
"data": {
"total": 1,
"size": 1,
"current": 1,
"records": [
{
"remark": "text",
"createTime": 1,
"updateTime": 1,
"subjectId": 1,
"bookkeepId": 1,
"amountIn": "text",
"amountOut": "text",
"status": 1,
"amountAfter": "text",
"businessType": 1,
"businessType1": 1,
"customerNo": "text",
"digits": "text",
"currency": "text",
"businessTypeName": "text",
"businessType1Name": "text",
"accountId": 1,
"orderId": 1,
"dealId": 1
}
]
}
}group=tradeApi version=0.0.1 bizType=tradeapi.admin.OrderAdminApiService.queryPositionPage
Global link unique identifier
{{mock_trace}}Company ID
{{company}}Token after B-end authentication
{{auto_token}}Interface version number
0.0.1Interface grouping
tradeApiGame ID; Only game 1, 2, 6 have positions
Customer group Id
Customer ID
Customer Number
Account ID
Product ID
Sorting field name. orderId-Order Id; openTime-Execution time; symbolId-Product Id; pnl-Profit and loss;
Sorting method. asc-Ascending; desc-Descending; (default desc)
Number of data per page. Default 20
Current page. Default 1
H5: mobile web; PC_Web: pcweb; System: system; Android: Android native app; iOS: Apple native app; HOS: Hongmeng OS; PC_Win: pcwindows client; PC_Mac: pcmac client; default is the same as login source. (The enumeration is for reference only)
POST /openapi-b/tradeapi.admin.OrderAdminApiService.queryPositionPage HTTP/1.1
Host: pre-api-test.cmfbl.com
trace: text
companyId: text
token: text
version: text
group: text
Content-Type: application/json
Accept: */*
Content-Length: 147
{
"tradeType": 1,
"customerId": "22441",
"customerGroupId": "1",
"customerNo": "86022441",
"accountId": 1291816,
"sortType": "desc",
"sortFieldName": "openTime"
}{
"msg": "Success",
"fail": false,
"trace": "x-00d1c642-3c96-4b00-abcc-ad16569658d4-1669277642254",
"code": "0",
"data": [
{
"symbolId": 810,
"orderId": 21650935,
"dealId": 11971285,
"canReduceMargin": "0.2493",
"openPrice": "5.540",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 0,
"closeFee": "0.0000",
"takeProfit": "0",
"occupyTheMargin": "1.6620",
"interest": "0.0000",
"maintenanceMargin": "0.8310",
"closeVolume": 0,
"openVolume": 1,
"closeTime": 0,
"symbolName": "UNI/USDT_PRD",
"closeAccountDigits": 4,
"openTime": 1669267968638,
"profit": null,
"tradeType": 2,
"direction": 1,
"singleMargin": "16620. 0000000000000000",
"margin": null,
"openContractSize": 1,
"resp": null,
"openMargin": "1.6620",
"openNum": 1,
"closeSymbolDigits": 3,
"openFee": "0.2770",
"warningMargin": "1.3296",
"stopLossDecimal": "0.000",
"adjustCrossLevel": "0-0",
"volume": 1,
"openSymbolDigits": 3,
"accountId": 1031768,
"companyId": 360,
"positionId": 2022112423089,
"closeFreeDigits": null,
"stopLoss": "0",
"minVolume": null,
"marginSetType": "1",
"crossLevelNum": 3,
"openAccountDigits": 4,
"closePrice": "0.0000",
"status": "1"
}
],
"bizCode": "C",
"tm": 16,
"msgParams": null,
"ok": true
}group=tradeApi version=0.0.1 bizType=tradeapi.admin.PositionAdminApiService.queryAllPositionPage
{{mock_trace}}{{company}}{{auto_token}}0.0.1tradeApiGameplay ID. 1-Whole contract; 2-Isolated contract;
Customer group Id
Customer ID
Customer Number
Account ID
Product ID
Order ID
Buy/sell direction. 1-Buy; 2-Sell; When not passed, all will be queried, passing other values will result in no data
Opening time - start. (13-digit timestamp, including itself)
Opening time - end. (13-digit timestamp, including itself)
Sorting field name. id-Position number; orderId-Order ID; openTime-Execution time; symbolId-Product ID; (default id)
Sorting method. asc-Ascending; desc-Descending; (default desc)
Number of data per page. Default 20
Current page. Default 1
H5: mobile web; PC_Web: pcweb; System: system; Android: Android native app; iOS: Apple native app; HOS: Hongmeng OS; PC_Win: pcwindows client; PC_Mac: pcmac client; default is the same as login source. (The enumeration is for reference only)
POST /openapi-b/tradeapi.admin.PositionAdminApiService.queryAllPositionPage HTTP/1.1
Host: pre-api-test.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 257
{
"tradeType": 1,
"customerGroupId": 1,
"customerId": 1,
"customerNo": "text",
"accountId": 1,
"symbolId": 1,
"orderId": 1,
"direction": 1,
"startTime": 1,
"endTime": 1,
"sortFieldName": "text",
"sortType": "text",
"size": 1,
"current": 1,
"querySource": "text",
"thirdPartyOrder": "text"
}{
"msg": "Success",
"fail": false,
"trace": "ryder_test",
"code": "0",
"data": {
"total": 11,
"current": 1,
"size": 20,
"records": [
{
"symbolId": 1352,
"bizType": 12,
"orderId": 22270983,
"dealId": 97686693,
"openPrice": "1939.880",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 0,
"closeFee": "0.0000",
"takeProfit": "0",
"closeVolume": 0,
"customerId": 286835,
"closeTime": 0,
"openVolume": 0.01,
"symbolName": "GOLD-MM",
"closeAccountDigits": 4,
"openTime": 1693832472898,
"tradeType": 1,
"direction": 2,
"openContractSize": 100,
"openMargin": "0.0000",
"openNum": 1,
"closeSymbolDigits": 3,
"openFee": "0.0000",
"stopLossDecimal": "0.000",
"volume": 0.01,
"openSymbolDigits": 3,
"accountId": 5953422,
"companyId": 360,
"positionId": 20230904498875,
"closeFreeDigits": null,
"stopLoss": "0",
"marginSetType": "1",
"openAccountDigits": 4,
"closePrice": "0.0000",
"customerNo": "86286820",
"status": "1"
},
{
"symbolId": 1352,
"bizType": 12,
"orderId": 22270982,
"dealId": 97686692,
"openPrice": "1939.910",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 0,
"closeFee": "0.0000",
"takeProfit": "0",
"closeVolume": 0,
"customerId": 286835,
"closeTime": 0,
"openVolume": 0.02,
"symbolName": "GOLD-MM",
"closeAccountDigits": 4,
"openTime": 1693832415377,
"tradeType": 1,
"direction": 1,
"openContractSize": 100,
"openMargin": "0.1000",
"openNum": 2,
"closeSymbolDigits": 3,
"openFee": "0.0000",
"stopLossDecimal": "0.000",
"volume": 0.02,
"openSymbolDigits": 3,
"accountId": 5953422,
"companyId": 360,
"positionId": 20230904498780,
"closeFreeDigits": null,
"stopLoss": "0",
"marginSetType": "1",
"openAccountDigits": 4,
"closePrice": "0.0000",
"customerNo": "86286820",
"status": "1"
},
{
"symbolId": 1352,
"bizType": 12,
"orderId": 22270981,
"dealId": 97686691,
"openPrice": "1940.050",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 0,
"closeFee": "0.0000",
"takeProfit": "0",
"closeVolume": 0,
"customerId": 286835,
"closeTime": 0,
"openVolume": 0.01,
"symbolName": "GOLD-MM",
"closeAccountDigits": 4,
"openTime": 1693832340769,
"tradeType": 1,
"direction": 1,
"openContractSize": 100,
"openMargin": "0.0500",
"openNum": 1,
"closeSymbolDigits": 3,
"openFee": "0.0000",
"stopLossDecimal": "0.000",
"volume": 0.01,
"openSymbolDigits": 3,
"accountId": 5953422,
"companyId": 360,
"positionId": 20230904498635,
"closeFreeDigits": null,
"stopLoss": "0",
"marginSetType": "1",
"openAccountDigits": 4,
"closePrice": "0.0000",
"customerNo": "86286820",
"status": "1"
},
{
"symbolId": 1352,
"bizType": 12,
"orderId": 30465551,
"dealId": 103790191,
"openPrice": "2027.790",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 0,
"closeFee": "0.00000",
"takeProfit": "0",
"closeVolume": 0,
"customerId": 381534,
"closeTime": 0,
"openVolume": 0.01,
"symbolName": "GOLD-MM",
"closeAccountDigits": 5,
"openTime": 1704865586698,
"tradeType": 1,
"direction": 1,
"openContractSize": 100,
"openMargin": "0.05000",
"openNum": 1,
"closeSymbolDigits": 3,
"openFee": "0.00000",
"stopLossDecimal": "0.000",
"volume": 0.01,
"openSymbolDigits": 3,
"accountId": 6428695,
"companyId": 360,
"positionId": 2024011001083,
"closeFreeDigits": null,
"stopLoss": "0",
"marginSetType": "1",
"openAccountDigits": 5,
"closePrice": "0.00000",
"customerNo": "86381519",
"status": "1"
},
{
"symbolId": 1352,
"bizType": 12,
"orderId": 28110800,
"dealId": 101434970,
"openPrice": "2027.780",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 0,
"closeFee": "0.00000",
"takeProfit": "0",
"closeVolume": 0,
"customerId": 381534,
"closeTime": 0,
"openVolume": 0.01,
"symbolName": "GOLD-MM",
"closeAccountDigits": 5,
"openTime": 1704865478795,
"tradeType": 1,
"direction": 1,
"openContractSize": 100,
"openMargin": "0.05000",
"openNum": 1,
"closeSymbolDigits": 3,
"openFee": "0.00000",
"stopLossDecimal": "0.000",
"volume": 0.01,
"openSymbolDigits": 3,
"accountId": 6428695,
"companyId": 360,
"positionId": 2024011001082,
"closeFreeDigits": null,
"stopLoss": "0",
"marginSetType": "1",
"openAccountDigits": 5,
"closePrice": "0.00000",
"customerNo": "86381519",
"status": "1"
},
{
"symbolId": 1352,
"bizType": 12,
"orderId": 28110799,
"dealId": 101434969,
"openPrice": "2027.790",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 0,
"closeFee": "0.00000",
"takeProfit": "0",
"closeVolume": 0,
"customerId": 381534,
"closeTime": 0,
"openVolume": 0.01,
"symbolName": "GOLD-MM",
"closeAccountDigits": 5,
"openTime": 1704865451692,
"tradeType": 1,
"direction": 1,
"openContractSize": 100,
"openMargin": "0.05000",
"openNum": 1,
"closeSymbolDigits": 3,
"openFee": "0.00000",
"stopLossDecimal": "0.000",
"volume": 0.01,
"openSymbolDigits": 3,
"accountId": 6428695,
"companyId": 360,
"positionId": 2024011001081,
"closeFreeDigits": null,
"stopLoss": "0",
"marginSetType": "1",
"openAccountDigits": 5,
"closePrice": "0.00000",
"customerNo": "86381519",
"status": "1"
},
{
"symbolId": 1352,
"bizType": 12,
"orderId": 28110798,
"dealId": 101434968,
"openPrice": "2033.390",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 0,
"closeFee": "0.00000",
"takeProfit": "0",
"closeVolume": 0,
"customerId": 381534,
"closeTime": 0,
"openVolume": 0.01,
"symbolName": "GOLD-MM",
"closeAccountDigits": 5,
"openTime": 1704787818311,
"tradeType": 1,
"direction": 1,
"openContractSize": 100,
"openMargin": "0.05000",
"openNum": 1,
"closeSymbolDigits": 3,
"openFee": "0.00000",
"stopLossDecimal": "0.000",
"volume": 0.01,
"openSymbolDigits": 3,
"accountId": 6428695,
"companyId": 360,
"positionId": 2024010901984,
"closeFreeDigits": null,
"stopLoss": "0",
"marginSetType": "1",
"openAccountDigits": 5,
"closePrice": "0.00000",
"customerNo": "86381519",
"status": "1"
},
{
"symbolId": 1352,
"bizType": 12,
"orderId": 28110797,
"dealId": 101434967,
"openPrice": "2033.890",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 0,
"closeFee": "0.00000",
"takeProfit": "0",
"closeVolume": 0,
"customerId": 381534,
"closeTime": 0,
"openVolume": 0.01,
"symbolName": "GOLD-MM",
"closeAccountDigits": 5,
"openTime": 1704784473702,
"tradeType": 1,
"direction": 1,
"openContractSize": 100,
"openMargin": "0.05000",
"openNum": 1,
"closeSymbolDigits": 3,
"openFee": "0.00000",
"stopLossDecimal": "0.000",
"volume": 0.01,
"openSymbolDigits": 3,
"accountId": 6428695,
"companyId": 360,
"positionId": 2024010901781,
"closeFreeDigits": null,
"stopLoss": "0",
"marginSetType": "1",
"openAccountDigits": 5,
"closePrice": "0.00000",
"customerNo": "86381519",
"status": "1"
},
{
"symbolId": 1352,
"bizType": 12,
"orderId": 28110796,
"dealId": 101434966,
"openPrice": "2034.299",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 0,
"closeFee": "0.00000",
"takeProfit": "0",
"closeVolume": 0,
"customerId": 381534,
"closeTime": 0,
"openVolume": 0.01,
"symbolName": "GOLD-MM",
"closeAccountDigits": 5,
"openTime": 1704784417830,
"tradeType": 1,
"direction": 1,
"openContractSize": 100,
"openMargin": "0.05000",
"openNum": 1,
"closeSymbolDigits": 3,
"openFee": "0.00000",
"stopLossDecimal": "0.000",
"volume": 0.01,
"openSymbolDigits": 3,
"accountId": 6428695,
"companyId": 360,
"positionId": 2024010901764,
"closeFreeDigits": null,
"stopLoss": "0",
"marginSetType": "1",
"openAccountDigits": 5,
"closePrice": "0.00000",
"customerNo": "86381519",
"status": "1"
},
{
"symbolId": 1352,
"bizType": 12,
"orderId": 28110795,
"dealId": 101434965,
"openPrice": "2033.200",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 0,
"closeFee": "0.00000",
"takeProfit": "0",
"closeVolume": 0,
"customerId": 381534,
"closeTime": 0,
"openVolume": 0.01,
"symbolName": "GOLD-MM",
"closeAccountDigits": 5,
"openTime": 1704783605219,
"tradeType": 1,
"direction": 1,
"openContractSize": 100,
"openMargin": "0.05000",
"openNum": 1,
"closeSymbolDigits": 3,
"openFee": "0.00000",
"stopLossDecimal": "0.000",
"volume": 0.01,
"openSymbolDigits": 3,
"accountId": 6428695,
"companyId": 360,
"positionId": 2024010901668,
"closeFreeDigits": null,
"stopLoss": "0",
"marginSetType": "1",
"openAccountDigits": 5,
"closePrice": "0.00000",
"customerNo": "86381519",
"status": "1"
},
{
"symbolId": 1352,
"bizType": 1,
"orderId": 22270984,
"dealId": 97686694,
"openPrice": "1911.980",
"remark": null,
"takeProfitDecimal": "0.000",
"closeNum": 50,
"closeFee": "0.0000",
"takeProfit": "0",
"closeVolume": 0.5,
"customerId": 1159,
"closeTime": 0,
"openVolume": 1,
"symbolName": "GOLD-MM",
"closeAccountDigits": 4,
"openTime": 1694592867404,
"tradeType": 1,
"direction": 1,
"openContractSize": 100,
"openMargin": "5.0000",
"openNum": 100,
"closeSymbolDigits": 3,
"openFee": "0.0000",
"stopLossDecimal": "0.000",
"volume": 0.5,
"openSymbolDigits": 3,
"accountId": 1031236,
"companyId": 360,
"positionId": 2023091377112,
"closeFreeDigits": null,
"stopLoss": "0",
"marginSetType": "1",
"openAccountDigits": 4,
"closePrice": "0.0000",
"customerNo": "86001158",
"status": "1"
}
]
},
"bizCode": "C",
"tm": 414,
"msgParams": null,
"ok": true
}Last updated