Trade/Spot

Fund Flow

post

Explanation: Pagination query of account fund flow Accessible after login group=tradeApi version=0.0.1 bizType=tradeapi.app.SpotOrderApiService.queryCapitalFlowList

Body
tradeTypeinteger · int64 · min: 1Required

Game type

customerGroupIdinteger · int64Required

Client group ID

sizeinteger · int64Optional

Number of Items per Page

currentinteger · int64Optional

Current Page

sortFieldNamestringOptional
sortTypestringOptional
businessTypeinteger · int32Optional
statusinteger · int32Optional
customerNoStrstringOptional
startTimeinteger · int64Optional
endTimeinteger · int64Optional
operateinteger · int32Optional
Responses
200Success
application/json
post
/global/tradeapi.app.SpotOrderApiService.queryCapitalFlowList
POST /api/global/tradeapi.app.SpotOrderApiService.queryCapitalFlowList HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 186

{
  "tradeType": 1,
  "customerGroupId": 1,
  "size": 1,
  "current": 1,
  "sortFieldName": "text",
  "sortType": "text",
  "businessType": 1,
  "status": 1,
  "customerNoStr": "text",
  "startTime": 1,
  "endTime": 1,
  "operate": 1
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "records": [
      {
        "id": 1,
        "remark": "text",
        "createdBy": 1,
        "createTime": 1,
        "updateBy": 1,
        "updateTime": 1,
        "subjectId": 1,
        "version": 1,
        "bookkeepId": 1,
        "amountIn": "text",
        "amountOut": "text",
        "status": 1,
        "amountAfter": "text",
        "businessType": 1,
        "businessType1": 1,
        "customerNo": "text",
        "amount": "text",
        "digits": 1,
        "currency": "text",
        "businessTypeName": "text",
        "businessType1Name": "text",
        "orderId": "text",
        "dealId": "text"
      }
    ],
    "total": 1,
    "size": 1,
    "current": 1
  },
  "ok": true,
  "fail": true
}

Cancel limit order

post

Explanation: Cancel limit order for spot trading. Access after login group=tradeApi version=0.0.1 bizType=tradeapi.app.SpotOrderApiService.closeTradePboOrder

Body
tradeTypeinteger · int64 · min: 1Required
customerGroupIdinteger · int64Required

Client group ID

orderIdinteger · int64Required
remarkstringOptional
Responses
200Success
application/json
post
/global/tradeapi.app.SpotOrderApiService.closeTradePboOrder
POST /api/global/tradeapi.app.SpotOrderApiService.closeTradePboOrder HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 63

{
  "tradeType": 1,
  "customerGroupId": 1,
  "orderId": 1,
  "remark": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "busiiType": 1,
    "direction": 1,
    "status": 1,
    "userGroupId": 1,
    "symbolId": 1,
    "digits": 1,
    "contractSize": 1,
    "requestPrice": 1,
    "requestNum": 1,
    "requestTime": 1,
    "executeMarginRate": 1,
    "executeMarginRateDigits": 1,
    "spread": 1,
    "pointRatio": 1,
    "executePrice": 1,
    "executeRate": 1,
    "rateDigits": 1,
    "fee": 1,
    "feeDigits": 1,
    "executeTime": 1,
    "createTime": 1,
    "updateTime": 1,
    "positionId": 1,
    "stopLoss": 1,
    "takeProfit": 1,
    "remark": "text",
    "source": "text",
    "thirdPartyOrder": "text"
  },
  "ok": true,
  "fail": true
}

View Order List

post

Explanation: View Order List group=tradeApi version=0.0.1 bizType=tradeapi.app.SpotOrderApiService.queryOrderPage

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
groupstringOptionalExample: tradeApi
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
tradeTypeinteger · int64 · min: 1Required
customerGroupIdinteger · int64Required

Client group ID

sizeinteger · int64Optional

Number of Items per Page

currentinteger · int64Optional

Current Page

sortFieldNamestringOptional
sortTypestringOptional
orderIdsstringOptional
symbolIdinteger · int64Optional
bizTypeinteger · int64Optional
directioninteger · int64Optional
statusinteger · int64Optional
positionIdinteger · int64Optional
querySourcestringOptional

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)

thirdPartyOrderstringOptional
Responses
200Success
application/json
post
/global/tradeapi.app.SpotOrderApiService.queryOrderPage
POST /api/global/tradeapi.app.SpotOrderApiService.queryOrderPage HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 226

{
  "tradeType": 1,
  "customerGroupId": 1,
  "size": 1,
  "current": 1,
  "sortFieldName": "text",
  "sortType": "text",
  "orderIds": "text",
  "symbolId": 1,
  "bizType": 1,
  "direction": 1,
  "status": 1,
  "positionId": 1,
  "querySource": "text",
  "thirdPartyOrder": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "records": [
      {
        "busiiType": 1,
        "direction": 1,
        "status": 1,
        "userGroupId": 1,
        "symbolId": 1,
        "digits": 1,
        "contractSize": 1,
        "requestPrice": 1,
        "requestNum": 1,
        "requestTime": 1,
        "executeMarginRate": 1,
        "executeMarginRateDigits": 1,
        "spread": 1,
        "pointRatio": 1,
        "executePrice": 1,
        "executeRate": 1,
        "rateDigits": 1,
        "fee": 1,
        "feeDigits": 1,
        "executeTime": 1,
        "createTime": 1,
        "updateTime": 1,
        "positionId": 1,
        "stopLoss": 1,
        "takeProfit": 1,
        "remark": "text",
        "source": "text",
        "thirdPartyOrder": "text"
      }
    ],
    "total": 1,
    "size": 1,
    "current": 1
  },
  "ok": true,
  "fail": true
}

View Order Details

post

Explanation: View order details for spot game, accessible after login group=tradeApi version=0.0.1 bizType=tradeapi.app.SpotOrderApiService.queryOrderDetail

Body
orderIdinteger · int64Optional
Responses
200Success
application/json
post
/global/tradeapi.app.SpotOrderApiService.queryOrderDetail
POST /api/global/tradeapi.app.SpotOrderApiService.queryOrderDetail HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 13

{
  "orderId": 1
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "busiiType": 1,
    "direction": 1,
    "status": 1,
    "userGroupId": 1,
    "symbolId": 1,
    "digits": 1,
    "contractSize": 1,
    "requestPrice": 1,
    "requestNum": 1,
    "requestTime": 1,
    "executeMarginRate": 1,
    "executeMarginRateDigits": 1,
    "spread": 1,
    "pointRatio": 1,
    "executePrice": 1,
    "executeRate": 1,
    "rateDigits": 1,
    "fee": 1,
    "feeDigits": 1,
    "executeTime": 1,
    "createTime": 1,
    "updateTime": 1,
    "positionId": 1,
    "stopLoss": 1,
    "takeProfit": 1,
    "remark": "text",
    "source": "text",
    "thirdPartyOrder": "text"
  },
  "ok": true,
  "fail": true
}

Query transaction record list

post

Explanation: Query transaction record list group=tradeApi version=0.0.1 bizType=tradeapi.app.SpotOrderApiService.queryTradeRecordPage

Body
usernamestringOptional
sizeinteger · int64Optional

Number of Items per Page

currentinteger · int64Optional

Current Page

downloadTypeinteger · int32Optional

Download type 1: direct download, 2: asynchronous download

sortFieldNamestringOptional
sortTypestringOptional
tradeTypestringOptional
orderTypestringOptional
symbolIdinteger · int64Optional
executeStartTimeinteger · int64Optional
executeEndTimeinteger · int64Optional
directionstringOptional
accountIdsstringOptional
querySourcestringOptional

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)

thirdPartyOrderstringOptional
Responses
200Success
application/json
post
/global/tradeapi.app.SpotOrderApiService.queryTradeRecordPage
POST /api/global/tradeapi.app.SpotOrderApiService.queryTradeRecordPage HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 274

{
  "username": "text",
  "size": 1,
  "current": 1,
  "downloadType": 1,
  "sortFieldName": "text",
  "sortType": "text",
  "tradeType": "text",
  "orderType": "text",
  "symbolId": 1,
  "executeStartTime": 1,
  "executeEndTime": 1,
  "direction": "text",
  "accountIds": "text",
  "querySource": "text",
  "thirdPartyOrder": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "companyId": 1,
    "customerId": 1,
    "customerNo": "text",
    "accountId": 1,
    "trace": "text",
    "ip": "text",
    "lang": "text",
    "size": 1,
    "current": 1,
    "totalPage": 1,
    "list": [
      {
        "symbolId": 1,
        "orderId": 1,
        "dealId": 1,
        "bizType": 1,
        "symbolName": "text",
        "direction": 1,
        "requestPrice": "text",
        "executePrice": "text",
        "requestNum": "text",
        "executeNum": "text",
        "loanAmount": "text",
        "executeTime": 1,
        "outCurrency": "text",
        "inCurrency": "text",
        "stopLoss": "text",
        "takeProfit": "text",
        "commission": "text",
        "profitLoss": "text",
        "overnightInterest": "text",
        "numberStatisticMode": 1,
        "accountCurrency": "text",
        "moneyAmountCurrency": "text",
        "symbolCode": "text",
        "tradeAmount": "text",
        "source": "text",
        "thirdPartyOrder": "text"
      }
    ],
    "bizTypeText": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    }
  },
  "ok": true,
  "fail": true
}

Last updated