做市商接口

做市商持仓报表

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"
}

做市商交易报表

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: 242

{
  "accountType": 62,
  "externalOrderId": "82",
  "black": false,
  "symbolName": "任许律对己",
  "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"
}

做市商委托报表

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
}

做市商日报表

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
}

做市商黑名单射单统计报表

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"
}

做市商黑名单射单记录报表

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"
}

做市商净仓统计报表

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
}

做市商净仓射单记录报表

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"
}

净仓手数统计

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"
}

净仓浮动盈亏统计

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"
}
Deprecated

添加流动性产品

post

bizType=makerbot.app.MMBotService.addSymbolMMBotConf 添加流动性产品

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

产品ID

lastPricestringRequired

最新成交价

lastPriceAsBidbooleanRequired

初始化盘口最新成交价是否作为bid一档

strategystringRequired

策略编码目前只支持fix_total_amount

maxLimitPricestringRequired

最高价格

minLimitPricestringRequired

最低价格

priceIntervalstringRequired

买方向最低价格

accountIdinteger · int64Optional

做市资金账户ID

amountstringRequired

做市资金金额

currencystringRequired

做市资金账户币种

digitsintegerRequired

做市资金账户资产小数位数

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

分页查询流动性产品列表

post

bizType=makerbot.app.MMBotService.querySymbolMMBotConfPageList 分页查询流动性产品列表

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

每页条数

currentinteger · int64Optional

当前页

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
}

净仓配置-查询做市商净仓配置

post

bizType=config.app.AppJcStrategyDubboService.getPageView 查询做市商净仓配置

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

公司ID

tracestringRequired

跟踪码

ipstringOptional

IP

langstringOptional

语言

sizestringRequired

每页条数

currentstringRequired

当前页

symbolIdstringRequired

产品ID

statusstringRequired

状态

symbolNamesstringRequired

产品名称

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"
}

净仓配置-新增做市商净仓配置

post

bizType=config.app.AppJcStrategyDubboService.add 新增做市商净仓配置

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

公司ID

tracestringRequired

跟踪码

ipstringOptional

IP

langstringOptional

语言

symbolIdstringRequired

产品ID

accountIdstringRequired

交易账户

shortNetPositionstringRequired

空头净仓(手)

longNetPositionstringRequired

多头净仓(手)

waitingTimestringRequired

等待时间(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"
}

净仓配置-编辑做市商净仓配置

post

bizType=config.app.AppJcStrategyDubboService.update 启用禁止做市商净仓配置

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

公司ID

tracestringRequired

跟踪码

ipstringOptional

IP

langstringOptional

语言

idstringRequired

记录ID

shortNetPositionstringRequired

空头净仓(手)

longNetPositionstringRequired

多头净仓(手)

waitingTimestringRequired

等待时间(s)

statusstringRequired

状态

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"
}

净仓配置-启用禁止做市商净仓配置

post

bizType=config.app.AppJcStrategyDubboService.updateStatus 启用禁止做市商净仓配置

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

公司ID

tracestringRequired

跟踪码

ipstringOptional

IP

langstringOptional

语言

idstringRequired

记录ID

statusstringRequired

状态 1、2、启用、禁用

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"
}

净仓配置-查询未配置产品清单

post

查询未配置产品清单

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

玩法ID

namestringOptional

产品名称或者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
}

净仓配置-删除做市商净仓配置

post

bizType=config.app.AppJcStrategyDubboService.removeById 删除做市商净仓配置

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

公司ID

tracestringRequired

跟踪码

ipstringOptional

IP

langstringOptional

语言

idstringRequired

记录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"
}

净仓配置-查询AMM被动做市商账号余额

post

查询未配置产品清单

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
}

自动化做市商给产品首次提供流动性(首次配置)

post

bizType=makerbot.app.MMBotService.addAmmSymbol 自动化做市商给产品首次提供流动性(首次配置)

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

产品id

lastPricestringRequired

最新成交价(起始价格),必须在最高最低价格范围内

lastPriceAsBidbooleanRequired

初始化盘口最新成交价是否作为bid一档

strategyconst: fix_total_amountRequired

策略编码,目前固定值fix_total_amount

maxLimitPricestringRequired

最高价格

minLimitPricestringRequired

最低价格

priceIntervalstringRequired

每档价格间隔

amountstringRequired

做市资金

accountIdintegerRequired

聚合账户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
    }
  }
}

自动化做市商给产品二次提供流动性(添加新的maker账号)

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

产品id

strategyconst: fix_total_amountRequired

策略编码,目前固定值fix_total_amount

maxLimitPricestringRequired

最高价格

minLimitPricestringRequired

最低价格

priceIntervalstringRequired

每档价格间隔

amountstringRequired

做市资金

accountIdinteger · int64Required

账户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
    }
  }
}

自动化做市商给产品增加流动资金(已存在的maker账号添加资金)

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

产品id

amountstringRequired

做市资金

accountIdinteger · int64Required

账户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
    }
  }
}

自动化做市商根据产品ID获取流动性的产品配置信息

post

bizType=makerbot.app.MMBotService.queryAmmSymbolInfo 返回结果: data空,表示maker可首次配置; data不为空且marketMaker属性为空,表示新maker可二次配置; data不为空且marketMaker属性不为空,表示maker可添加流动资金;

Body
symbolIdinteger · uint64Required

产品id

accountIdstringRequired

账户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
    }
  }
}

自动化做市商根据产品ID获取流动性资金

post

bizType=makerbot.app.MMBotService.getAmmSymbolAmount 返回金额为产品的盈亏币种金额,需要转换成账户币种金额

Body
symbolIdinteger · uint64Required

产品id

accountIdstringRequired

账户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"
      }
    ]
  }
}

自动化做市商查询已提供流动性的产品分页数据

post

bizType=makerbot.app.MMBotService.queryAmmSymbolPage 返回金额为产品的盈亏币种金额,需要转换成账户币种金额

Body
sizeinteger · uint32Required

每页条数

currentinteger · uint32Required

当前页

accountIdinteger · int64Required

账户id

symbolCodestringOptional

产品source编码模糊查询

symbolNamestringRequired

产品名称

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
}

分润-查询未领取的做市收入

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"
}

分润-提取做市收入

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
{}

分润-查询做市等级

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"
}

分润-做市收入报表查询

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"
}

分润-流量统计日报表查询

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"
}

做市商撮合盈亏明细报表

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"
}

做市商射单盈亏明细报表

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"
}

做市商结算盈亏日报表

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
}

Last updated