# Trade/Spot

## Fund Flow

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

```json
{"openapi":"3.0.1","info":{"title":"Default module","version":"1.0.0"},"tags":[{"name":"Trade/Spot"}],"servers":[{"url":"https://prewppc-3.cmfbl.com/api","description":"PRE测试公司439"}],"security":[],"paths":{"/global/tradeapi.app.SpotOrderApiService.queryCapitalFlowList":{"post":{"summary":"Fund Flow","deprecated":false,"description":"Explanation: Pagination query of account fund flow Accessible after login  group=tradeApi version=0.0.1 bizType=tradeapi.app.SpotOrderApiService.queryCapitalFlowList","operationId":"queryWaterByPage","tags":["Trade/Spot"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotQueryWaterPageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResultBasePageVoSpotSubjectWaterVo"}}},"headers":{}}}}}},"components":{"schemas":{"SpotQueryWaterPageDto":{"type":"object","required":["customerGroupId","tradeType"],"properties":{"tradeType":{"type":"integer","format":"int64","minimum":1,"description":"Game type"},"customerGroupId":{"type":"integer","format":"int64","description":"Client group ID"},"size":{"type":"integer","format":"int64","description":"Number of Items per Page"},"current":{"type":"integer","format":"int64","description":"Current Page"},"sortFieldName":{"type":"string"},"sortType":{"type":"string"},"businessType":{"type":"integer","format":"int32"},"status":{"type":"integer","format":"int32"},"customerNoStr":{"type":"string"},"startTime":{"type":"integer","format":"int64"},"endTime":{"type":"integer","format":"int64"},"operate":{"type":"integer","format":"int32"}}},"BaseResultBasePageVoSpotSubjectWaterVo":{"type":"object","properties":{"bizCode":{"type":"string","description":"Module identifier code"},"code":{"type":"string","description":"Status return code"},"msg":{"type":"string","description":"Status description"},"tm":{"type":"integer","format":"int64","description":"Processing time (milliseconds)"},"trace":{"type":"string","description":"Tracking code"},"msgParams":{"type":"string","description":"Placeholder parameter string in return description, multiple parameters separated by commas"},"data":{"$ref":"#/components/schemas/BasePageVoSubjectWaterVo"},"ok":{"type":"boolean"},"fail":{"type":"boolean"}}},"BasePageVoSubjectWaterVo":{"type":"object","properties":{"records":{"type":"array","description":"Result list","items":{"$ref":"#/components/schemas/SpotSubjectWaterVo"}},"total":{"type":"integer","format":"int64","description":"Total"},"size":{"type":"integer","format":"int64","description":"Number of Items per Page"},"current":{"type":"integer","format":"int64","description":"Current Page"}}},"SpotSubjectWaterVo":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"remark":{"type":"string"},"createdBy":{"type":"integer","format":"int64"},"createTime":{"type":"integer","format":"int64"},"updateBy":{"type":"integer","format":"int64"},"updateTime":{"type":"integer","format":"int64"},"subjectId":{"type":"integer","format":"int64"},"version":{"type":"integer","format":"int64"},"bookkeepId":{"type":"integer","format":"int64"},"amountIn":{"type":"string"},"amountOut":{"type":"string"},"status":{"type":"integer","format":"int32"},"amountAfter":{"type":"string"},"businessType":{"type":"integer","format":"int32"},"businessType1":{"type":"integer","format":"int32"},"customerNo":{"type":"string"},"amount":{"type":"string"},"digits":{"type":"integer","format":"int32"},"currency":{"type":"string"},"businessTypeName":{"type":"string"},"businessType1Name":{"type":"string"},"orderId":{"type":"string","description":"Order ID"},"dealId":{"type":"string","description":"Transaction order Id"}}}}}}
```

## Cancel limit order

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

```json
{"openapi":"3.0.1","info":{"title":"Default module","version":"1.0.0"},"tags":[{"name":"Trade/Spot"}],"servers":[{"url":"https://prewppc-3.cmfbl.com/api","description":"PRE测试公司439"}],"security":[],"paths":{"/global/tradeapi.app.SpotOrderApiService.closeTradePboOrder":{"post":{"summary":"Cancel limit order","deprecated":false,"description":"Explanation: Cancel limit order for spot trading. Access after login   group=tradeApi version=0.0.1 bizType=tradeapi.app.SpotOrderApiService.closeTradePboOrder","operationId":"cancelPendingOrder","tags":["Trade/Spot"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotOrderUpdateDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResultSpotQueryOrderVo"}}},"headers":{}}}}}},"components":{"schemas":{"SpotOrderUpdateDto":{"type":"object","required":["customerGroupId","orderId","tradeType"],"properties":{"tradeType":{"type":"integer","format":"int64","minimum":1},"customerGroupId":{"type":"integer","format":"int64","description":"Client group ID"},"orderId":{"type":"integer","format":"int64"},"remark":{"type":"string"}}},"BaseResultSpotQueryOrderVo":{"type":"object","properties":{"bizCode":{"type":"string","description":"Module identifier code"},"code":{"type":"string","description":"Status return code"},"msg":{"type":"string","description":"Status description"},"tm":{"type":"integer","format":"int64","description":"Processing time (milliseconds)"},"trace":{"type":"string","description":"Tracking code"},"msgParams":{"type":"string","description":"Placeholder parameter string in return description, multiple parameters separated by commas"},"data":{"$ref":"#/components/schemas/SpotQueryOrderVo"},"ok":{"type":"boolean"},"fail":{"type":"boolean"}}},"SpotQueryOrderVo":{"type":"object","properties":{"busiiType":{"type":"integer","format":"int32"},"direction":{"type":"integer","format":"int32"},"status":{"type":"integer","format":"int32"},"userGroupId":{"type":"integer","format":"int64"},"symbolId":{"type":"integer","format":"int64"},"digits":{"type":"integer","format":"int64"},"contractSize":{"type":"integer","format":"int32"},"requestPrice":{"type":"number"},"requestNum":{"type":"number"},"requestTime":{"type":"integer","format":"int64"},"executeMarginRate":{"type":"integer","format":"int32"},"executeMarginRateDigits":{"type":"integer","format":"int32"},"spread":{"type":"integer","format":"int32"},"pointRatio":{"type":"integer","format":"int32"},"executePrice":{"type":"number"},"executeRate":{"type":"integer","format":"int64"},"rateDigits":{"type":"integer","format":"int64"},"fee":{"type":"number"},"feeDigits":{"type":"integer","format":"int64"},"executeTime":{"type":"integer","format":"int64"},"createTime":{"type":"integer","format":"int64"},"updateTime":{"type":"integer","format":"int64"},"positionId":{"type":"integer","format":"int64"},"stopLoss":{"type":"number"},"takeProfit":{"type":"number"},"remark":{"type":"string"},"source":{"type":"string","description":"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)"},"thirdPartyOrder":{"type":"string"}}}}}}
```

## View Order List

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

```json
{"openapi":"3.0.1","info":{"title":"Default module","version":"1.0.0"},"tags":[{"name":"Trade/Spot"}],"servers":[{"url":"https://prewppc-3.cmfbl.com/api","description":"PRE测试公司439"}],"security":[],"paths":{"/global/tradeapi.app.SpotOrderApiService.queryOrderPage":{"post":{"summary":"View Order List","deprecated":false,"description":"Explanation: View Order List   group=tradeApi version=0.0.1 bizType=tradeapi.app.SpotOrderApiService.queryOrderPage","operationId":"queryOrderPage","tags":["Trade/Spot"],"parameters":[{"name":"companyId","in":"header","description":"","required":false,"schema":{"type":"string"}},{"name":"token","in":"header","description":"","required":false,"schema":{"type":"string"}},{"name":"lang","in":"header","description":"","required":false,"schema":{"type":"string"}},{"name":"group","in":"header","description":"","required":false,"schema":{"type":"string"}},{"name":"trace","in":"header","description":"","required":false,"schema":{"type":"string"}},{"name":"version","in":"header","description":"","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotQueryOrderPageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResultSpotQueryOrderPageVo"}}},"headers":{}}}}}},"components":{"schemas":{"SpotQueryOrderPageDto":{"type":"object","required":["customerGroupId","tradeType"],"properties":{"tradeType":{"type":"integer","format":"int64","minimum":1},"customerGroupId":{"type":"integer","format":"int64","description":"Client group ID"},"size":{"type":"integer","format":"int64","description":"Number of Items per Page"},"current":{"type":"integer","format":"int64","description":"Current Page"},"sortFieldName":{"type":"string"},"sortType":{"type":"string"},"orderIds":{"type":"string"},"symbolId":{"type":"integer","format":"int64"},"bizType":{"type":"integer","format":"int64"},"direction":{"type":"integer","format":"int64"},"status":{"type":"integer","format":"int64"},"positionId":{"type":"integer","format":"int64"},"querySource":{"type":"string","description":"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)"},"thirdPartyOrder":{"type":"string"}}},"BaseResultSpotQueryOrderPageVo":{"type":"object","properties":{"bizCode":{"type":"string","description":"Module identifier code"},"code":{"type":"string","description":"Status return code"},"msg":{"type":"string","description":"Status description"},"tm":{"type":"integer","format":"int64","description":"Processing time (milliseconds)"},"trace":{"type":"string","description":"Tracking code"},"msgParams":{"type":"string","description":"Placeholder parameter string in return description, multiple parameters separated by commas"},"data":{"description":"Data Body","$ref":"#/components/schemas/BasePageVoSpotQueryOrderVo"},"ok":{"type":"boolean"},"fail":{"type":"boolean"}}},"BasePageVoSpotQueryOrderVo":{"type":"object","properties":{"records":{"type":"array","description":"Result list","items":{"$ref":"#/components/schemas/SpotQueryOrderVo"}},"total":{"type":"integer","format":"int64","description":"Total"},"size":{"type":"integer","format":"int64","description":"Number of Items per Page"},"current":{"type":"integer","format":"int64","description":"Current Page"}}},"SpotQueryOrderVo":{"type":"object","properties":{"busiiType":{"type":"integer","format":"int32"},"direction":{"type":"integer","format":"int32"},"status":{"type":"integer","format":"int32"},"userGroupId":{"type":"integer","format":"int64"},"symbolId":{"type":"integer","format":"int64"},"digits":{"type":"integer","format":"int64"},"contractSize":{"type":"integer","format":"int32"},"requestPrice":{"type":"number"},"requestNum":{"type":"number"},"requestTime":{"type":"integer","format":"int64"},"executeMarginRate":{"type":"integer","format":"int32"},"executeMarginRateDigits":{"type":"integer","format":"int32"},"spread":{"type":"integer","format":"int32"},"pointRatio":{"type":"integer","format":"int32"},"executePrice":{"type":"number"},"executeRate":{"type":"integer","format":"int64"},"rateDigits":{"type":"integer","format":"int64"},"fee":{"type":"number"},"feeDigits":{"type":"integer","format":"int64"},"executeTime":{"type":"integer","format":"int64"},"createTime":{"type":"integer","format":"int64"},"updateTime":{"type":"integer","format":"int64"},"positionId":{"type":"integer","format":"int64"},"stopLoss":{"type":"number"},"takeProfit":{"type":"number"},"remark":{"type":"string"},"source":{"type":"string","description":"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)"},"thirdPartyOrder":{"type":"string"}}}}}}
```

## View Order Details

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

```json
{"openapi":"3.0.1","info":{"title":"Default module","version":"1.0.0"},"tags":[{"name":"Trade/Spot"}],"servers":[{"url":"https://prewppc-3.cmfbl.com/api","description":"PRE测试公司439"}],"security":[],"paths":{"/global/tradeapi.app.SpotOrderApiService.queryOrderDetail":{"post":{"summary":"View Order Details","deprecated":false,"description":"Explanation: View order details for spot game, accessible after login   group=tradeApi version=0.0.1 bizType=tradeapi.app.SpotOrderApiService.queryOrderDetail","operationId":"queryOrder","tags":["Trade/Spot"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotQueryOrderDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResultSpotQueryOrderVo"}}},"headers":{}}}}}},"components":{"schemas":{"SpotQueryOrderDto":{"type":"object","properties":{"orderId":{"type":"integer","format":"int64"}}},"BaseResultSpotQueryOrderVo":{"type":"object","properties":{"bizCode":{"type":"string","description":"Module identifier code"},"code":{"type":"string","description":"Status return code"},"msg":{"type":"string","description":"Status description"},"tm":{"type":"integer","format":"int64","description":"Processing time (milliseconds)"},"trace":{"type":"string","description":"Tracking code"},"msgParams":{"type":"string","description":"Placeholder parameter string in return description, multiple parameters separated by commas"},"data":{"$ref":"#/components/schemas/SpotQueryOrderVo"},"ok":{"type":"boolean"},"fail":{"type":"boolean"}}},"SpotQueryOrderVo":{"type":"object","properties":{"busiiType":{"type":"integer","format":"int32"},"direction":{"type":"integer","format":"int32"},"status":{"type":"integer","format":"int32"},"userGroupId":{"type":"integer","format":"int64"},"symbolId":{"type":"integer","format":"int64"},"digits":{"type":"integer","format":"int64"},"contractSize":{"type":"integer","format":"int32"},"requestPrice":{"type":"number"},"requestNum":{"type":"number"},"requestTime":{"type":"integer","format":"int64"},"executeMarginRate":{"type":"integer","format":"int32"},"executeMarginRateDigits":{"type":"integer","format":"int32"},"spread":{"type":"integer","format":"int32"},"pointRatio":{"type":"integer","format":"int32"},"executePrice":{"type":"number"},"executeRate":{"type":"integer","format":"int64"},"rateDigits":{"type":"integer","format":"int64"},"fee":{"type":"number"},"feeDigits":{"type":"integer","format":"int64"},"executeTime":{"type":"integer","format":"int64"},"createTime":{"type":"integer","format":"int64"},"updateTime":{"type":"integer","format":"int64"},"positionId":{"type":"integer","format":"int64"},"stopLoss":{"type":"number"},"takeProfit":{"type":"number"},"remark":{"type":"string"},"source":{"type":"string","description":"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)"},"thirdPartyOrder":{"type":"string"}}}}}}
```

## Query transaction record list

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

```json
{"openapi":"3.0.1","info":{"title":"Default module","version":"1.0.0"},"tags":[{"name":"Trade/Spot"}],"servers":[{"url":"https://prewppc-3.cmfbl.com/api","description":"PRE测试公司439"}],"security":[],"paths":{"/global/tradeapi.app.SpotOrderApiService.queryTradeRecordPage":{"post":{"summary":"Query transaction record list","deprecated":false,"description":"Explanation: Query transaction record list   group=tradeApi version=0.0.1 bizType=tradeapi.app.SpotOrderApiService.queryTradeRecordPage","operationId":"queryTradeRecordPage","tags":["Trade/Spot"],"parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpotQueryOrderRecordPageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BaseResultSpotTradeRecordVo"}}},"headers":{}}}}}},"components":{"schemas":{"SpotQueryOrderRecordPageDto":{"type":"object","properties":{"username":{"type":"string"},"size":{"type":"integer","format":"int64","description":"Number of Items per Page"},"current":{"type":"integer","format":"int64","description":"Current Page"},"downloadType":{"type":"integer","format":"int32","description":"Download type 1: direct download, 2: asynchronous download"},"sortFieldName":{"type":"string"},"sortType":{"type":"string"},"tradeType":{"type":"string"},"orderType":{"type":"string"},"symbolId":{"type":"integer","format":"int64"},"executeStartTime":{"type":"integer","format":"int64"},"executeEndTime":{"type":"integer","format":"int64"},"direction":{"type":"string"},"accountIds":{"type":"string"},"querySource":{"type":"string","description":"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)"},"thirdPartyOrder":{"type":"string"}}},"BaseResultSpotTradeRecordVo":{"type":"object","properties":{"bizCode":{"type":"string","description":"Module identifier code"},"code":{"type":"string","description":"Status return code"},"msg":{"type":"string","description":"Status description"},"tm":{"type":"integer","format":"int64","description":"Processing time (milliseconds)"},"trace":{"type":"string","description":"Tracking code"},"msgParams":{"type":"string","description":"Placeholder parameter string in return description, multiple parameters separated by commas"},"data":{"$ref":"#/components/schemas/SpotTradeRecordVo"},"ok":{"type":"boolean"},"fail":{"type":"boolean"}}},"SpotTradeRecordVo":{"type":"object","properties":{"companyId":{"type":"integer","format":"int64","description":"Company ID"},"customerId":{"type":"integer","format":"int64","description":"Client ID"},"customerNo":{"type":"string","description":"Client number"},"accountId":{"type":"integer","format":"int64","description":"Account ID"},"trace":{"type":"string","description":"Tracking code"},"ip":{"type":"string","description":"Operation IP"},"lang":{"type":"string","description":"Request Language"},"size":{"type":"integer","format":"int64"},"current":{"type":"integer","format":"int64"},"totalPage":{"type":"integer","format":"int64"},"list":{"type":"array","items":{"$ref":"#/components/schemas/SpotTradeRecordList"}},"bizTypeText":{"type":"object","additionalProperties":{"type":"string"},"properties":{}}}},"SpotTradeRecordList":{"type":"object","properties":{"symbolId":{"type":"integer","format":"int64"},"orderId":{"type":"integer","format":"int64"},"dealId":{"type":"integer","format":"int64"},"bizType":{"type":"integer","format":"int32"},"symbolName":{"type":"string"},"direction":{"type":"integer","format":"int32"},"requestPrice":{"type":"string"},"executePrice":{"type":"string"},"requestNum":{"type":"string"},"executeNum":{"type":"string"},"loanAmount":{"type":"string"},"executeTime":{"type":"integer","format":"int64"},"outCurrency":{"type":"string"},"inCurrency":{"type":"string"},"stopLoss":{"type":"string"},"takeProfit":{"type":"string"},"commission":{"type":"string"},"profitLoss":{"type":"string"},"overnightInterest":{"type":"string"},"numberStatisticMode":{"type":"integer","format":"int32"},"accountCurrency":{"type":"string"},"moneyAmountCurrency":{"type":"string"},"symbolCode":{"type":"string"},"tradeAmount":{"type":"string"},"source":{"type":"string","description":"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)"},"thirdPartyOrder":{"type":"string"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.multimarkets.org/client-api/more.../trade-spot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
