Market Maker

Market Maker Position Report

post
Body
typeintegerRequired
externalOrderIdstringRequired
blacklistbooleanRequired
symbolNamestringRequired
directionintegerRequired
positionIdintegerRequired
dealIdintegerRequired
startTimeintegerRequired
endTimeintegerRequired
Responses
200Success
application/json
post
/marketPosition
POST /api/marketPosition HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 138

{
  "type": 1,
  "externalOrderId": "text",
  "blacklist": true,
  "symbolName": "text",
  "direction": 1,
  "positionId": 1,
  "dealId": 1,
  "startTime": 1,
  "endTime": 1
}
200Success
{
  "customerNo": "text",
  "accountType": 1,
  "symbolName": "text",
  "direction": 1,
  "volumeTarget": "text",
  "floatProfitLoss": "text",
  "openVolumeTarget": "text",
  "openPriceTarget": "text",
  "takeProfitTarget": "text",
  "stopLossTarget": "text",
  "openMarginTarget": "text",
  "overnightInterest": "text",
  "occupyTheMarginTarget": "text",
  "positionId": 1,
  "dealId": 1,
  "externalOrderId": "text",
  "blacklist": true,
  "createTime": 1,
  "remark": "text",
  "estimateForcePrice": "text"
}

Net Position Configuration - Query Market Maker Net Position Configuration

post

bizType=config.app.AppJcStrategyDubboService.getPageView Query Market Maker Net Position Configuration

Header parameters
versionstringRequiredExample: 0.0.1
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
companyIdstringOptional

Company ID

tracestringRequired

Tracking code

ipstringOptional

IP

langstringOptional

Language

sizestringRequired

Number of Items per Page

currentstringRequired

Current Page

symbolIdstringRequired

Product ID

statusstringRequired

Status

symbolNamesstringRequired

Product name

Responses
200Success
application/json
post
/global/config.app.AppJcStrategyDubboService.getPageView
POST /api/global/config.app.AppJcStrategyDubboService.getPageView HTTP/1.1
Host: prewppc-3.cmfbl.com
version: text
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 147

{
  "companyId": "text",
  "trace": "text",
  "ip": "text",
  "lang": "text",
  "size": "text",
  "current": "text",
  "symbolId": "text",
  "status": "text",
  "symbolNames": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "tm": "text",
  "trace": "text",
  "msgParams": "text",
  "data": {
    "records": [
      {
        "symbolId": "text",
        "symbolName": "text",
        "shortNetPosition": "text",
        "longNetPosition": "text",
        "waitingTime": "text"
      }
    ],
    "total": "text",
    "size": "text",
    "current": "text"
  },
  "ok": "text",
  "fail": "text"
}

Net position configuration - Add market maker net position configuration

post

bizType=config.app.AppJcStrategyDubboService.add Add market maker net position configuration

Header parameters
versionstringRequiredExample: 0.0.1
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
companyIdstringOptional

Company ID

tracestringRequired

Tracking code

ipstringOptional

IP

langstringOptional

Language

symbolIdstringRequired

Product ID

accountIdstringRequired

Trading account

shortNetPositionstringRequired

Short Net Position (Lots)

longNetPositionstringRequired

Long Net Position (Lots)

waitingTimestringRequired

Waiting time (s)

Responses
200Success
application/json
post
/global/config.app.AppJcStrategyDubboService.add
POST /api/global/config.app.AppJcStrategyDubboService.add HTTP/1.1
Host: prewppc-3.cmfbl.com
version: text
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 170

{
  "companyId": "text",
  "trace": "text",
  "ip": "text",
  "lang": "text",
  "symbolId": "text",
  "accountId": "text",
  "shortNetPosition": "text",
  "longNetPosition": "text",
  "waitingTime": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "tm": "text",
  "trace": "text",
  "msgParams": "text",
  "data": {
    "symbolId": "text",
    "symbolName": "text",
    "shortNetPosition": "text",
    "longNetPosition": "text",
    "waitingTime": "text"
  },
  "ok": "text",
  "fail": "text"
}

Net position configuration - enable/disable market maker net position configuration

post

bizType=config.app.AppJcStrategyDubboService.updateStatus Enable/disable market maker net position configuration

Header parameters
versionstringRequiredExample: 0.0.1
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
companyIdstringOptional

Company ID

tracestringRequired

Tracking code

ipstringOptional

IP

langstringOptional

Language

idstringRequired

Record ID

statusstringRequired

Status 1, 2, enable, disable

Responses
200Success
application/json
post
/global/config.app.AppJcStrategyDubboService.updateStatus
POST /api/global/config.app.AppJcStrategyDubboService.updateStatus HTTP/1.1
Host: prewppc-3.cmfbl.com
version: text
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 89

{
  "companyId": "text",
  "trace": "text",
  "ip": "text",
  "lang": "text",
  "id": "text",
  "status": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "tm": "text",
  "trace": "text",
  "msgParams": "text",
  "data": {
    "symbolId": "text",
    "symbolName": "text",
    "shortNetPosition": "text",
    "longNetPosition": "text",
    "waitingTime": "text"
  },
  "ok": "text",
  "fail": "text"
}

Net Position Configuration - Edit Market Maker Net Position Configuration

post

bizType=config.app.AppJcStrategyDubboService.update Enable/Disable Market Maker Net Position Configuration

Header parameters
versionstringRequiredExample: 0.0.1
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
companyIdstringOptional

Company ID

tracestringRequired

Tracking code

ipstringOptional

IP

langstringOptional

Language

idstringRequired

Record ID

shortNetPositionstringRequired

Short Net Position (Lots)

longNetPositionstringRequired

Long Net Position (Lots)

waitingTimestringRequired

Waiting time (s)

statusstringRequired

Status

Responses
200Success
application/json
post
/global/config.app.AppJcStrategyDubboService.update
POST /api/global/config.app.AppJcStrategyDubboService.update HTTP/1.1
Host: prewppc-3.cmfbl.com
version: text
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 161

{
  "companyId": "text",
  "trace": "text",
  "ip": "text",
  "lang": "text",
  "id": "text",
  "shortNetPosition": "text",
  "longNetPosition": "text",
  "waitingTime": "text",
  "status": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "tm": "text",
  "trace": "text",
  "msgParams": "text",
  "data": {
    "symbolId": "text",
    "symbolName": "text",
    "shortNetPosition": "text",
    "longNetPosition": "text",
    "waitingTime": "text"
  },
  "ok": "text",
  "fail": "text"
}

Net position configuration-Delete market maker net position configuration

post

bizType=config.app.AppJcStrategyDubboService.removeById Remove market maker net position configuration

Header parameters
versionstringRequiredExample: 0.0.1
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
companyIdstringOptional

Company ID

tracestringRequired

Tracking code

ipstringOptional

IP

langstringOptional

Language

idstringRequired

Record ID

Responses
200Success
application/json
post
/global/config.app.AppJcStrategyDubboService.removeById
POST /api/global/config.app.AppJcStrategyDubboService.removeById HTTP/1.1
Host: prewppc-3.cmfbl.com
version: text
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 73

{
  "companyId": "text",
  "trace": "text",
  "ip": "text",
  "lang": "text",
  "id": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "tm": "text",
  "trace": "text",
  "msgParams": "text",
  "data": {
    "symbolId": "text",
    "symbolName": "text",
    "shortNetPosition": "text",
    "longNetPosition": "text",
    "waitingTime": "text"
  },
  "ok": "text",
  "fail": "text"
}

Market maker trading report

post
Body
accountTypeintegerRequired
externalOrderIdstringRequired
blacklistbooleanRequired
symbolNamestringRequired
directionstringRequired
openCloseintegerRequired
bizTypeintegerRequired
positionIdintegerRequired
dealIdintegerRequired
counterpartyDealIdstringRequired
startTimeintegerRequired
endTimeintegerRequired
Responses
200Success
application/json
post
/marketTrade
POST /api/marketTrade HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 248

{
  "accountType": 62,
  "externalOrderId": "82",
  "black": false,
  "symbolName": "Ren Xu Law to oneself",
  "direction": "dolor amet ea",
  "openClose": 8,
  "bizType": 99,
  "positionId": 1,
  "dealId": 5,
  "counterpartyDealId": "90",
  "startTime": 658704412528,
  "endTime": 1115548412230
}
200Success
{
  "customerNo": "text",
  "accountType": 1,
  "accountCurrency": "text",
  "symbolName": "text",
  "direction": 1,
  "openClose": 1,
  "bizType": 1,
  "numberStatisticMode": 1,
  "requestPrice": "text",
  "requestAmount": "text",
  "executeAmount": "text",
  "executePrice": "text",
  "profitLoss": "text",
  "commission": "text",
  "interest": "text",
  "takeProfitTarget": "text",
  "stopLossTarget": "text",
  "positionId": 1,
  "dealId": 1,
  "externalOrderId": "text",
  "counterpartyDealId": "text",
  "blacklist": true,
  "requestTime": 1,
  "executeTime": 1,
  "status": 1,
  "remark": "text",
  "estimateForcePrice": "text"
}

Market maker order report

post
Body
accountTypeintegerRequired
externalOrderIdstringRequired
blacklistbooleanRequired
startTimeintegerRequired
endTimeintegerRequired
symbolNamestringRequired
directionintegerRequired
bizTypeintegerRequired
orderIdintegerRequired
numberStatisticModeintegerRequired
Responses
200Success
application/json
post
/marketEntrust
POST /api/marketEntrust HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 167

{
  "accountType": 1,
  "externalOrderId": "text",
  "blacklist": true,
  "startTime": 1,
  "endTime": 1,
  "symbolName": "text",
  "direction": 1,
  "bizType": 1,
  "orderId": 1,
  "numberStatisticMode": 1
}
200Success
{
  "customerNo": "text",
  "accountType": 1,
  "symbolName": "text",
  "direction": 1,
  "bizType": 1,
  "numberStatisticMode": 1,
  "requestPrice": "text",
  "requestVolume": "text",
  "requestAmount": "text",
  "orderId": 1,
  "dealId": 1,
  "executePrice": "text",
  "executeVolume": "text",
  "executeAmount": "text",
  "positionId": 1,
  "lossPrice": "text",
  "profitPrice": "text",
  "lockedMargin": "text",
  "commission": "text",
  "requestTime": 1,
  "remark": "text",
  "status": 1,
  "externalOrderId": "text",
  "blacklist": true
}

Market Maker Blacklist Shooting Record Report

post
Body
accountTypeintegerRequired
externalOrderIdstringRequired
symbolNamestringRequired
directionstringRequired
openCloseintegerRequired
bizTypeintegerRequired
numberStatisticModeintegerRequired
positionIdintegerRequired
dealIdintegerRequired
counterpartyDealIdstringRequired
startTimeintegerRequired
endTimeintegerRequired
lpDealIdstringRequired
Responses
200Success
application/json
post
/marketStpRecord
POST /api/marketStpRecord HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 229

{
  "accountType": 1,
  "externalOrderId": "text",
  "symbolName": "text",
  "direction": "text",
  "openClose": 1,
  "bizType": 1,
  "numberStatisticMode": 1,
  "positionId": 1,
  "dealId": 1,
  "counterpartyDealId": "text",
  "startTime": 1,
  "endTime": 1,
  "lpDealId": "text"
}
200Success
{
  "customerNo": "text",
  "accountType": 1,
  "currency": "text",
  "symbolName": "text",
  "direction": 1,
  "openClose": 1,
  "bizType": 1,
  "numberStatisticMode": 1,
  "requestPrice": "text",
  "requestVolume": "text",
  "requestAmount": "text",
  "executeAmount": "text",
  "executePrice": "text",
  "profitLoss": "text",
  "commission": "text",
  "interest": "text",
  "lossPrice": "text",
  "profitPrice": "text",
  "dealId": 1,
  "counterpartyDealId": "text",
  "positionId": 1,
  "status": 1,
  "requestTime": 1,
  "executeTime": 1,
  "externalOrderId": "text",
  "lpDealDirection": 1,
  "lpDealVolume": "text",
  "lpDealPrice": "text",
  "lpDealId": "text",
  "remark": "text"
}

Market maker net position shooting order record report

post
Body
accountTypeintegerRequired
externalOrderIdstringRequired
symbolNamestringRequired
directionstringRequired
openCloseintegerRequired
bizTypeintegerRequired
numberStatisticModeintegerRequired
positionIdintegerRequired
dealIdintegerRequired
counterpartyDealIdstringRequired
startTimeintegerRequired
endTimeintegerRequired
lpDealIdstringRequired
Responses
200Success
application/json
post
/marketNetRecord
POST /api/marketNetRecord HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 229

{
  "accountType": 1,
  "externalOrderId": "text",
  "symbolName": "text",
  "direction": "text",
  "openClose": 1,
  "bizType": 1,
  "numberStatisticMode": 1,
  "positionId": 1,
  "dealId": 1,
  "counterpartyDealId": "text",
  "startTime": 1,
  "endTime": 1,
  "lpDealId": "text"
}
200Success
{
  "customerNo": "text",
  "accountType": 1,
  "currency": "text",
  "symbolName": "text",
  "direction": 1,
  "openClose": 1,
  "bizType": 1,
  "numberStatisticMode": 1,
  "requestPrice": "text",
  "requestVolume": "text",
  "requestAmount": "text",
  "executeAmount": "text",
  "executePrice": "text",
  "profitLoss": "text",
  "commission": "text",
  "interest": "text",
  "lossPrice": "text",
  "profitPrice": "text",
  "dealId": 1,
  "counterpartyDealId": "text",
  "positionId": 1,
  "status": 1,
  "requestTime": 1,
  "executeTime": 1,
  "externalOrderId": "text",
  "lpDealDirection": 1,
  "lpDealVolume": "text",
  "lpDealPrice": "text",
  "lpDealId": "text",
  "remark": "text"
}

Market Maker Match Profit and Loss Details Report

post
Body
accountTypeintegerRequired
externalOrderIdstringRequired
symbolNamestringRequired
directionstringRequired
openCloseintegerRequired
bizTypeintegerRequired
numberStatisticModeintegerRequired
positionIdintegerRequired
dealIdintegerRequired
counterpartyDealIdstringRequired
startTimeintegerRequired
endTimeintegerRequired
Responses
200Success
application/json
post
/api/cats-gateway/global/report.app.ReportDatadDubboService.marketMatchProfitRecord
POST /api/api/cats-gateway/global/report.app.ReportDatadDubboService.marketMatchProfitRecord HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 211

{
  "accountType": 1,
  "externalOrderId": "text",
  "symbolName": "text",
  "direction": "text",
  "openClose": 1,
  "bizType": 1,
  "numberStatisticMode": 1,
  "positionId": 1,
  "dealId": 1,
  "counterpartyDealId": "text",
  "startTime": 1,
  "endTime": 1
}
200Success
{
  "executeTime": 1,
  "dealId": 1,
  "accountType": 1,
  "customerNo": "text",
  "symbolName": "text",
  "openClose": 1,
  "direction": 1,
  "bizType": 1,
  "requestPrice": "text",
  "executePrice": "text",
  "executeVolume": "text",
  "tradeVolume": "text",
  "executeAmount": "text",
  "tradeCurrency": "text",
  "takeProfitTarget": "text",
  "stopLossTarget": "text",
  "profitLoss": "text",
  "profitLossU": "text",
  "counterpartyDealId": "text",
  "requestTime": 1,
  "externalOrderId": "text",
  "remark": "text"
}

Market maker single profit and loss detailed report

post
Body
accountTypeintegerRequired
externalOrderIdstringRequired
symbolNamestringRequired
directionstringRequired
openCloseintegerRequired
bizTypeintegerRequired
numberStatisticModeintegerRequired
positionIdintegerRequired
dealIdintegerRequired
counterpartyDealIdstringRequired
startTimeintegerRequired
endTimeintegerRequired
Responses
200Success
application/json
post
/api/cats-gateway/global/report.app.ReportDatadDubboService.marketStpProfitRecord
POST /api/api/cats-gateway/global/report.app.ReportDatadDubboService.marketStpProfitRecord HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 211

{
  "accountType": 1,
  "externalOrderId": "text",
  "symbolName": "text",
  "direction": "text",
  "openClose": 1,
  "bizType": 1,
  "numberStatisticMode": 1,
  "positionId": 1,
  "dealId": 1,
  "counterpartyDealId": "text",
  "startTime": 1,
  "endTime": 1
}
200Success
{
  "executeTime": 1,
  "dealId": 1,
  "accountType": 1,
  "customerNo": "text",
  "symbolName": "text",
  "openClose": 1,
  "direction": 1,
  "bizType": 1,
  "executeAmount": "text",
  "tradeCurrency": "text",
  "executeVolume": "text",
  "requestPrice": "text",
  "executePrice": "text",
  "profitLoss": "text",
  "commission": "text",
  "interest": "text",
  "requestTime": 1,
  "remark": "text"
}

Market maker settlement profit and loss daily report

post
Body
startTimeintegerRequired
endTimeintegerRequired
regenerationbooleanRequired
Responses
200Success
application/json
post
/api/cats-gateway/global/benefit.app.ReportDatadDubboService.settlementProfitLossDayReport
POST /api/api/cats-gateway/global/benefit.app.ReportDatadDubboService.settlementProfitLossDayReport HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "startTime": 1,
  "endTime": 1,
  "regeneration": true
}
200Success
{
  "date": "text",
  "matchProfit": 1,
  "matchLoss": 1,
  "matchNetProfitLoss": "text",
  "stpProfit": "text",
  "stpLoss": "text",
  "stpNetProfitLoss": "text",
  "totalNetProfitLoss": "text",
  "executeTime": 1
}

Market maker net position statistics report

post
Body
symbolNamestringRequired
Responses
200Success
application/json
post
/marketNetStatistics
POST /api/marketNetStatistics HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "symbolName": "text"
}
200Success
{
  "symbolName": "text",
  "longPositionVolume": "text",
  "shortPositionVolume": "text",
  "netPositionVolume": "text",
  "lpDealDirection": "text",
  "stpLongThreshold": "text",
  "stpShortThreshold": "text",
  "status": 1
}

Net position configuration-query list of products not configured

post

Query list of products not configured

Header parameters
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
tradeTypeinteger · int64Required

Game ID

namestringOptional

Product Name or Code

Responses
200Success
application/json
post
/global/config.app.AppJcStrategyDubboService.getSymbolList
POST /api/global/config.app.AppJcStrategyDubboService.getSymbolList HTTP/1.1
Host: prewppc-3.cmfbl.com
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 29

{
  "tradeType": 1,
  "name": "text"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-6320jq-ngjyr-99cmjy51-y7q16p-1677564664",
  "code": "0",
  "data": [
    {
      "sourceId": "UNISWAP_V3_USDC_WETH",
      "code": "USDC_WETH",
      "tradeTypes": null,
      "etf": false,
      "name": "USDC_WETH",
      "profitCurrency": "ETH",
      "id": 6327,
      "baseCurrency": "USDC",
      "status": 1
    }
  ],
  "bizCode": "",
  "tm": 4,
  "msgParams": null,
  "ok": true
}

Net position configuration - Query AMM passive market maker account balance

post

Query list of products not configured

Header parameters
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
objectOptional
Responses
200Success
application/json
post
/global/config.app.AppJcStrategyDubboService.queryJcAllAccount
POST /api/global/config.app.AppJcStrategyDubboService.queryJcAllAccount HTTP/1.1
Host: prewppc-3.cmfbl.com
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-6320jq-ngjyr-99cmjy51-y7q16p-1677564664",
  "code": "0",
  "data": [
    {
      "sourceId": "UNISWAP_V3_USDC_WETH",
      "code": "USDC_WETH",
      "tradeTypes": null,
      "etf": false,
      "name": "USDC_WETH",
      "profitCurrency": "ETH",
      "id": 6327,
      "baseCurrency": "USDC",
      "status": 1
    }
  ],
  "bizCode": "",
  "tm": 4,
  "msgParams": null,
  "ok": true
}

Market Maker Blacklist Order Statistics Report

post
Body
startTimeintegerRequired
endTimeintegerRequired
symbolNamestringRequired
directionintegerRequired
positionIdintegerRequired
dealIdintegerRequired
externalOrderIdstringRequired
lpDealIdstringRequired
Responses
200Success
application/json
post
/marketStpStatistics
POST /api/marketStpStatistics HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 130

{
  "startTime": 1,
  "endTime": 1,
  "symbolName": "text",
  "direction": 1,
  "positionId": 1,
  "dealId": 1,
  "externalOrderId": "text",
  "lpDealId": "text"
}
200Success
{
  "accountType": 1,
  "symbolName": "text",
  "direction": 1,
  "volumeTarget": 1,
  "floatProfitLoss": "text",
  "openVolumeTarget": "text",
  "openPriceTarget": "text",
  "profitPrice": "text",
  "lossPrice": "text",
  "overnightInterest": "text",
  "openMarginTarget": "text",
  "occupyTheMarginTarget": "text",
  "estimateForcePrice": "text",
  "positionId": 1,
  "dealId": 1,
  "externalOrderId": "text",
  "lpDealDirection": 1,
  "lpDealVolume": "text",
  "lpDealPrice": "text",
  "lpDealId": "text",
  "createTime": 1,
  "remark": "text"
}

Market maker daily report

post
Body
accountTypeintegerRequired
datestringRequired
Responses
200Success
application/json
post
/marketDay
POST /api/marketDay HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 31

{
  "accountType": 1,
  "date": "text"
}
200Success
{
  "date": "text",
  "customerNo": "text",
  "accountType": "text",
  "currency": "text",
  "totalBalance": "text",
  "yesterdayTotalBalance": "text",
  "occupyTheMargin": "text",
  "notYetInterest": "text",
  "contractCommission": "text",
  "yetProfitLoss": "text",
  "floatProfitLoss": "text",
  "executeTime": 1
}
Deprecated

Add liquidity product

post

bizType=makerbot.app.MMBotService.addSymbolMMBotConf Add liquidity product

Header parameters
companystringOptionalExample: {{company}}
tracestringOptionalExample: {{mock_trace}}
TokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: zh-CN
VersionstringOptionalExample: 0.0.1
Body
symbolIdinteger · int64Required

Product ID

lastPricestringRequired

Latest transaction price

lastPriceAsBidbooleanRequired

Whether to use the latest transaction price in the bid as the first level

strategystringRequired

Strategy code currently only supports fix_total_amount

maxLimitPricestringRequired

Highest price

minLimitPricestringRequired

Lowest price

priceIntervalstringRequired

Lowest price for buying direction

accountIdinteger · int64Optional

Market-making fund account ID

amountstringRequired

Market-making fund amount

currencystringRequired

Market-making fund account currency

digitsintegerRequired

Market-making fund account asset decimal places

Responses
200Success
application/json
post
/global/makerbot.app.MMBotService.addSymbolMMBotConf
POST /api/global/makerbot.app.MMBotService.addSymbolMMBotConf HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 228

{
  "symbolId": 86,
  "lastPrice": "35",
  "lastPriceAsBid": true,
  "strategy": "fix_total_amount",
  "maxLimitPrice": "45",
  "minLimitPrice": "25",
  "priceInterval": "1",
  "customerGroupId": 19,
  "amount": "500000",
  "currency": "USD",
  "digits": 5,
  "accountId": 33
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "symbolId": 1,
    "symbolSourceCode": "text",
    "strategy": "text",
    "baseCurrency": "text",
    "profitCurrency": "text",
    "lastPriceAsBid": true,
    "lastPrice": 1,
    "maxLimitPrice": 1,
    "minLimitPrice": 1,
    "priceInterval": 1,
    "minVolume": 1,
    "contractSize": 1,
    "symbolDigits": "text",
    "supplyHeight": "text",
    "cancelHeight": "text",
    "marketMaker": {
      "companyId": 1,
      "customerNo": "text",
      "customerId": 1,
      "customerGroupId": 1,
      "accountId": 1,
      "amount": 1,
      "currency": "text",
      "digits": 1,
      "createTime": 1,
      "paused": true
    }
  },
  "ok": true,
  "fail": true
}
Deprecated

Pagination query liquidity product list

post

bizType=makerbot.app.MMBotService.querySymbolMMBotConfPageList Pagination query liquidity product list

Header parameters
companystringOptionalExample: {{company}}
tracestringOptionalExample: {{mock_trace}}
TokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: zh-CN
VersionstringOptionalExample: 0.0.1
Body
sizeinteger · int64Optional

Number of Items per Page

currentinteger · int64Optional

Current Page

Responses
200Success
application/json
post
/global/makerbot.app.MMBotService.querySymbolMMBotConfPageList
POST /api/global/makerbot.app.MMBotService.querySymbolMMBotConfPageList HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "current": 1,
  "size": 20
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "records": [
      {
        "symbolId": 1,
        "symbolSourceCode": "text",
        "baseCurrency": "text",
        "profitCurrency": "text",
        "symbolDigits": 1,
        "marketMaker": {
          "companyId": 1,
          "customerNo": "text",
          "customerId": 1,
          "customerGroupId": 1,
          "accountId": 1,
          "lastPriceAsBid": true,
          "lastPrice": "text",
          "maxLimitPrice": "text",
          "minLimitPrice": "text",
          "priceInterval": "text",
          "minVolume": "text",
          "contractSize": 1,
          "overHeightSize": 1,
          "amount": "text",
          "currency": "text",
          "digits": 1,
          "perHeightAmount": "text",
          "createTime": 1,
          "updateTime": 1,
          "status": 1
        },
        "bidTotalAmount": "text",
        "askTotalAmount": "text",
        "bids": [
          {
            "price": "text",
            "amount": "text",
            "quantity": "text"
          }
        ],
        "asks": [
          {
            "price": "text",
            "amount": "text",
            "quantity": "text"
          }
        ]
      }
    ],
    "total": 1,
    "size": 1,
    "current": 1
  },
  "ok": true,
  "fail": true
}

Automated market makers provide liquidity for products for the first time (initial configuration)

post

bizType=makerbot.app.MMBotService.addAmmSymbol Automated market makers provide liquidity for products for the first time (initial configuration)

Header parameters
companystringOptionalExample: {{company}}
tracestringOptionalExample: {{mock_trace}}
TokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: zh-CN
VersionstringOptionalExample: 0.0.1
Body
symbolIdinteger · uint64Required

Product ID

lastPricestringRequired

Latest transaction price (starting price), must be within the highest and lowest price range

lastPriceAsBidbooleanRequired

Whether to use the latest transaction price in the bid as the first level

strategyconst: fix_total_amountRequired

Strategy code, currently fixed value fix_total_amount

maxLimitPricestringRequired

Highest price

minLimitPricestringRequired

Lowest price

priceIntervalstringRequired

Price interval per tier

amountstringRequired

Market making funds

accountIdintegerRequired

Aggregated account ID

Responses
200Success
application/json
post
/global/makerbot.app.MMBotService.addAmmSymbol
POST /api/global/makerbot.app.MMBotService.addAmmSymbol HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 172

{
  "symbolId": 1,
  "lastPrice": "text",
  "lastPriceAsBid": true,
  "strategy": "text",
  "maxLimitPrice": "text",
  "minLimitPrice": "text",
  "priceInterval": "text",
  "amount": "text",
  "accountId": 1
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "ok": true,
  "fail": true,
  "data": {
    "symbolId": 1,
    "symbolSourceCode": "text",
    "baseCurrency": "text",
    "profitCurrency": "text",
    "symbolDigits": 1,
    "marketMaker": {
      "companyId": 1,
      "customerNo": "text",
      "customerId": 1,
      "customerGroupId": 1,
      "accountId": 1,
      "lastPriceAsBid": true,
      "lastPrice": "text",
      "maxLimitPrice": "text",
      "minLimitPrice": "text",
      "priceInterval": "text",
      "minVolume": "text",
      "contractSize": 1,
      "overHeightSize": 1,
      "amount": "text",
      "currency": "text",
      "digits": 1,
      "perHeightAmount": "text",
      "createTime": 1,
      "updateTime": 1,
      "status": 1
    }
  }
}

Automated market makers provide liquidity for products (add new maker account)

post

bizType=makerbot.app.MMBotService.addAmmMaker

Header parameters
companystringRequiredExample: {{company}}
tracestringOptionalExample: {{mock_trace}}
TokenstringRequiredExample: {{LoginResult.data.token}}
VersionstringOptionalExample: 0.0.1
langstringOptionalExample: zh-CN
Body
symbolIdinteger · uint64Required

Product ID

strategyconst: fix_total_amountRequired

Strategy code, currently fixed value fix_total_amount

maxLimitPricestringRequired

Highest price

minLimitPricestringRequired

Lowest price

priceIntervalstringRequired

Price interval per tier

amountstringRequired

Market making funds

accountIdinteger · int64Required

Account ID

Responses
200Success
application/json
post
/global/makerbot.app.MMBotService.addAmmMaker
POST /api/global/makerbot.app.MMBotService.addAmmMaker HTTP/1.1
Host: prewppc-3.cmfbl.com
company: text
Token: text
Content-Type: application/json
Accept: */*
Content-Length: 131

{
  "symbolId": 1,
  "strategy": "text",
  "maxLimitPrice": "text",
  "minLimitPrice": "text",
  "priceInterval": "text",
  "amount": "text",
  "accountId": 1
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "ok": true,
  "fail": true,
  "data": {
    "symbolId": 1,
    "symbolSourceCode": "text",
    "baseCurrency": "text",
    "profitCurrency": "text",
    "symbolDigits": 1,
    "marketMaker": {
      "companyId": 1,
      "customerNo": "text",
      "customerId": 1,
      "customerGroupId": 1,
      "accountId": 1,
      "lastPriceAsBid": true,
      "lastPrice": "text",
      "maxLimitPrice": "text",
      "minLimitPrice": "text",
      "priceInterval": "text",
      "minVolume": "text",
      "contractSize": 1,
      "overHeightSize": 1,
      "amount": "text",
      "currency": "text",
      "digits": 1,
      "perHeightAmount": "text",
      "createTime": 1,
      "updateTime": 1,
      "status": 1
    }
  }
}

Automated market makers add liquidity to products (add funds to existing maker account)

post

bizType=makerbot.app.MMBotService.addAmmAmount

Header parameters
companystringOptionalExample: {{company}}
tracestringOptionalExample: {{mock_trace}}
TokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: zh-CN
VersionstringOptionalExample: 0.0.1
Body
symbolIdinteger · uint64Required

Product ID

amountstringRequired

Market making funds

accountIdinteger · int64Required

Account ID

Responses
200Success
application/json
post
/global/makerbot.app.MMBotService.addAmmAmount
POST /api/global/makerbot.app.MMBotService.addAmmAmount HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 44

{
  "symbolId": 1,
  "amount": "text",
  "accountId": 1
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "ok": true,
  "fail": true,
  "data": {
    "symbolId": 1,
    "symbolSourceCode": "text",
    "baseCurrency": "text",
    "profitCurrency": "text",
    "symbolDigits": 1,
    "marketMaker": {
      "companyId": 1,
      "customerNo": "text",
      "customerId": 1,
      "customerGroupId": 1,
      "accountId": 1,
      "lastPriceAsBid": true,
      "lastPrice": "text",
      "maxLimitPrice": "text",
      "minLimitPrice": "text",
      "priceInterval": "text",
      "minVolume": "text",
      "contractSize": 1,
      "overHeightSize": 1,
      "amount": "text",
      "currency": "text",
      "digits": 1,
      "perHeightAmount": "text",
      "createTime": 1,
      "updateTime": 1,
      "status": 1
    }
  }
}

Automated market makers obtain liquidity product configuration information based on product ID

post

bizType=makerbot.app.MMBotService.queryAmmSymbolInfo Return result: data empty, indicating maker can be configured for the first time; data not empty and marketMaker attribute empty, indicating new maker can be configured for the second time; data not empty and marketMaker attribute not empty, indicating maker can add liquidity funds;

Body
symbolIdinteger · uint64Required

Product ID

accountIdstringRequired

Account ID

Responses
200Success
application/json
post
/global/makerbot.app.MMBotService.queryAmmSymbolInfo
POST /api/global/makerbot.app.MMBotService.queryAmmSymbolInfo HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 33

{
  "symbolId": 1,
  "accountId": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "ok": true,
  "fail": true,
  "data": {
    "symbolId": 1,
    "symbolSourceCode": "text",
    "baseCurrency": "text",
    "profitCurrency": "text",
    "symbolDigits": 1,
    "marketMaker": {
      "companyId": 1,
      "customerNo": "text",
      "customerId": 1,
      "customerGroupId": 1,
      "accountId": 1,
      "lastPriceAsBid": true,
      "lastPrice": "text",
      "maxLimitPrice": "text",
      "minLimitPrice": "text",
      "priceInterval": "text",
      "minVolume": "text",
      "contractSize": 1,
      "overHeightSize": 1,
      "amount": "text",
      "currency": "text",
      "digits": 1,
      "perHeightAmount": "text",
      "createTime": 1,
      "updateTime": 1,
      "status": 1
    }
  }
}

Automated market makers obtain liquidity funds based on product ID

post

bizType=makerbot.app.MMBotService.getAmmSymbolAmount The returned amount is the profit and loss currency amount of the product, which needs to be converted into the account currency amount

Body
symbolIdinteger · uint64Required

Product ID

accountIdstringRequired

Account ID

Responses
200Success
application/json
post
/global/makerbot.app.MMBotService.getAmmSymbolAmount
POST /api/global/makerbot.app.MMBotService.getAmmSymbolAmount HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 33

{
  "symbolId": 1,
  "accountId": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "ok": true,
  "fail": true,
  "data": {
    "symbolId": 1,
    "symbolSourceCode": "text",
    "baseCurrency": "text",
    "profitCurrency": "text",
    "symbolDigits": 1,
    "marketMaker": {
      "companyId": 1,
      "customerNo": "text",
      "customerId": 1,
      "customerGroupId": 1,
      "accountId": 1,
      "lastPriceAsBid": true,
      "lastPrice": "text",
      "maxLimitPrice": "text",
      "minLimitPrice": "text",
      "priceInterval": "text",
      "minVolume": "text",
      "contractSize": 1,
      "overHeightSize": 1,
      "amount": "text",
      "currency": "text",
      "digits": 1,
      "perHeightAmount": "text",
      "createTime": 1,
      "updateTime": 1,
      "status": 1
    },
    "bidTotalAmount": "text",
    "askTotalAmount": "text",
    "bids": [
      {
        "price": "text",
        "amount": "text",
        "quantity": "text"
      }
    ],
    "asks": [
      {
        "price": "text",
        "amount": "text",
        "quantity": "text"
      }
    ]
  }
}

Automated market maker query for products with provided liquidity pagination data

post

bizType=makerbot.app.MMBotService.queryAmmSymbolPage Returns the profit and loss currency amount of the product, needs to be converted to the account currency amount

Body
sizeinteger · uint32Required

Number of Items per Page

currentinteger · uint32Required

Current Page

accountIdinteger · int64Required

Account ID

symbolCodestringOptional

Product source code fuzzy query

symbolNamestringRequired

Product name

Responses
200Success
application/json
post
/global/makerbot.app.MMBotService.queryAmmSymbolPage
POST /api/global/makerbot.app.MMBotService.queryAmmSymbolPage HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 76

{
  "size": 1,
  "current": 1,
  "accountId": 1,
  "symbolCode": "text",
  "symbolName": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {
    "records": [
      {
        "symbolId": 1,
        "symbolSourceCode": "text",
        "baseCurrency": "text",
        "profitCurrency": "text",
        "symbolDigits": 1,
        "marketMaker": {
          "companyId": 1,
          "customerNo": "text",
          "customerId": 1,
          "customerGroupId": 1,
          "accountId": 1,
          "lastPriceAsBid": true,
          "lastPrice": "text",
          "maxLimitPrice": "text",
          "minLimitPrice": "text",
          "priceInterval": "text",
          "minVolume": "text",
          "contractSize": 1,
          "overHeightSize": 1,
          "amount": "text",
          "currency": "text",
          "digits": 1,
          "perHeightAmount": "text",
          "createTime": 1,
          "updateTime": 1,
          "status": 1
        },
        "bidTotalAmount": "text",
        "askTotalAmount": "text",
        "bids": [
          {
            "price": "text",
            "amount": "text",
            "quantity": "text"
          }
        ],
        "asks": [
          {
            "price": "text",
            "amount": "text",
            "quantity": "text"
          }
        ]
      }
    ],
    "total": 1,
    "size": 1,
    "current": 1
  },
  "ok": true,
  "fail": true
}

Profit-sharing - Query unclaimed market-making income

post
Body
objectOptional
Responses
200Success
application/json
post
/api/cats-gateway/global/benefit.app.ReportDatadDubboService.getUnclaimedMarketAmount
POST /api/api/cats-gateway/global/benefit.app.ReportDatadDubboService.getUnclaimedMarketAmount HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "longIncome": "text",
  "longIncomePercent": "text",
  "shortIncome": "text",
  "shortIncomePercent": "text",
  "accountCurrency": "text"
}

Profit-sharing - Withdraw market-making income

post
Body
objectOptional
Responses
200Success
application/json
Responseobject
post
/api/cats-gateway/global/benefit.app.ReportDatadDubboService.extractUnclaimedMarketAmount
POST /api/api/cats-gateway/global/benefit.app.ReportDatadDubboService.extractUnclaimedMarketAmount HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{}

Profit-sharing - Query market-making level

post
Body
objectOptional
Responses
200Success
application/json
post
/api/cats-gateway/global/benefit.app.ReportDatadDubboService.getLevel
POST /api/api/cats-gateway/global/benefit.app.ReportDatadDubboService.getLevel HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "makerLevel": "text",
  "takerLevel": "text"
}

Net position lot statistics

post
Body
symbolNamestringRequired
Responses
200Success
application/json
post
/getNetPositionStatistics
POST /api/getNetPositionStatistics HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "symbolName": "text"
}
200Success
{
  "longVolume": "text",
  "shortVolume": "text",
  "totalVolume": "text"
}

Net position floating profit and loss statistics

post
Body
symbolNamestringRequired
Responses
200Success
application/json
post
/getNetFloatProfitStatistics
POST /api/getNetFloatProfitStatistics HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "symbolName": "text"
}
200Success
{
  "longFloatProfit": "text",
  "shortFloatProfit": "text",
  "totalFloatProfit": "text"
}

Profit-sharing-Market-making income statement query

post
Body
startTimestringRequired
endTimestringRequired
directionstringRequired
symbolNamestringRequired
dealIdstringRequired
openClosestringRequired
bizTypestringRequired
Responses
200Success
application/json
post
/api/cats-gateway/global/benefit.app.ReportDatadDubboService.marketIncomeReport
POST /api/api/cats-gateway/global/benefit.app.ReportDatadDubboService.marketIncomeReport HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 128

{
  "startTime": "text",
  "endTime": "text",
  "direction": "text",
  "symbolName": "text",
  "dealId": "text",
  "openClose": "text",
  "bizType": "text"
}
200Success
{
  "customerNo": "text",
  "customerId": "text",
  "companyId": "text",
  "dealId": "text",
  "symbolName": "text",
  "openClose": "text",
  "direction": "text",
  "bizType": "text",
  "executePrice": "text",
  "executeVolume": "text",
  "executeAmount": "text",
  "executeAmountU": "text",
  "executeTime": "text",
  "level": "text",
  "percent": "text",
  "amount": "text"
}

Profit Sharing - Daily Flow Statistics Report Query

post
Body
startTimestringRequired
endTimestringRequired
regenerationbooleanRequired
Responses
200Success
application/json
post
/api/cats-gateway/global/benefit.app.ReportDatadDubboService.trafficStatisticsDayReport
POST /api/api/cats-gateway/global/benefit.app.ReportDatadDubboService.trafficStatisticsDayReport HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "startTime": "text",
  "endTime": "text",
  "regeneration": true
}
200Success
{
  "takerLongTraffic": "text",
  "takerShortTraffic": "text",
  "takerLongTrafficFee": "text",
  "takerShortTrafficFee": "text",
  "makerLongTraffic": "text",
  "makerShortTraffic": "text",
  "makerLongMarketAmount": "text",
  "makerShortMarketAmount": "text",
  "date": "text",
  "executeTime": "text"
}

Last updated