Activities

Send internal message to customers

post

bizType=message.admin.PlatFormMessageThirdSendAdminService.add

Header parameters
tokenstringRequiredExample: {{auto_token}}
versionstringRequiredExample: 0.0.1
tracestringRequiredExample: {{mock_trace}}
Body
customerNostringRequired

Customer Number

tradeTypeintegerRequired

Trading gameplay

languagestringRequired

Language (zh-HK, en-US, zh-CN), fill in as needed

contentstringRequired

Content, no length limit

titlestringRequired

Title, length of 100 characters

showTypeintegerRequired

Popup type EnumShowType: 0 no action, 1 popup

refreshTypeintegerOptional

Refresh type EnumRefreshType: 0 no action, 1 position, 2 pending order, 3 funds, 4 kick out, 5 pending order position, 6 pending order funds

customerIdintegerRequired

Customer ID

companyIdintegerRequired

Company ID

Responses
200Success
application/json
post
/message.admin.PlatFormMessageThirdSendAdminService.add
POST /openapi-b/message.admin.PlatFormMessageThirdSendAdminService.add HTTP/1.1
Host: pre-api-test.cmfbl.com
token: text
version: text
trace: text
Content-Type: application/json
Accept: */*
Content-Length: 291

"{\n    \"customerNo\": \"{{customerNo}}\",\n    \"tradeType\": 1,\n    \"language\": \"en-US\",\n    \"content\": \"HHAHHAHHAHHAHHAHHAHHA\",\n    \"title\": \"CESHTEST\",\n    \"showType\": 0,\n    \"refreshType\": 1,\n    \"customerId\": {{customerId}},\n    \"companyId\": {{company}}\n}"
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "t-f7l5w542-o2c8p9-l8810-l1gpm-1660189534",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 2,
  "msgParams": null,
  "ok": true,
  "class": "com.cats.common.core.base.vo.BaseResult"
}

Bonus distribution / rebate

post

version=0.0.1 bizType=fund.admin.CustomerAdjustProposalAdminDubboService.addCustomerAdjustProposal

Header parameters
tokenstringRequiredExample: {{auto_token}}
versionstringRequiredExample: 0.0.1
tracestringRequiredExample: {{mock_trace}}
Body
customerNostringRequired

Customer Number

accountIdintegerOptional

Account ID

accountCurrencystringRequired

Currency for sending bonuses

tradeTypeintegerRequired

Game type: 1 is contract full position

businessTypeintegerRequired

Fixed value 4

amountnumberRequired

Number of bonuses issued, positive for bonus issuance, negative for rebate bonuses

withdrawbooleanRequired

Fixed true

remarkstringOptional

Optional

Responses
200Success
application/json
post
/fund.admin.CustomerAdjustProposalAdminDubboService.addCustomerAdjustProposal
POST /openapi-b/fund.admin.CustomerAdjustProposalAdminDubboService.addCustomerAdjustProposal HTTP/1.1
Host: pre-api-test.cmfbl.com
token: text
version: text
trace: text
Content-Type: application/json
Accept: */*
Content-Length: 144

{
  "customerNo": "86000020",
  "accountId": 1000450,
  "accountCurrency": "USDT",
  "tradeType": 1,
  "businessType": 4,
  "amount": 5,
  "withdraw": true,
  "remark": "test"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "t-7vgm5-bu0337-blbkp-024w3k84-1660120108",
  "code": "0",
  "data": true,
  "bizCode": "",
  "tm": 189,
  "msgParams": null,
  "ok": true,
  "class": "com.cats.common.core.base.vo.BaseResult"
}

Check customer balance

post

bizType=customer.admin.CustomerAdminApiService.queryAccountList

Header parameters
tracestringRequiredExample: {{mock_trace}}
companyIdstringRequiredExample: {{company}}
tokenstringRequiredExample: {{auto_token}}
versionstringRequiredExample: 0.0.1
Body
customerNostringRequired

Customer Number

tradeTypeintegerRequired

Trading gameplay

Responses
200Success
application/json
post
/customer.admin.CustomerAdminApiService.queryAccountList
POST /openapi-b/customer.admin.CustomerAdminApiService.queryAccountList HTTP/1.1
Host: pre-api-test.cmfbl.com
trace: text
companyId: text
token: text
version: text
Content-Type: application/json
Accept: */*
Content-Length: 39

{
  "customerNo": "86000020",
  "tradeType": 1
}
200Success
Balance is used in the balance field
{
    "msg": "Success",
    "fail": false,
    "trace": "t-23uee2-go44-se70u4w7-jyx6bvb-1660187117",
    "code": "0",
    "data": [
        {
            "netAssets": "47.319290",
            "available": "47.319290",
            "remark": null,
            "type": 1,
            "equity": "47.319290",
            "firstDepositTime": 1646123635909,
            "lockMargin": "0.000000",
            "balance": "47.319290",
            "interest": "0.000000",
            "customerId": 189,
            "liabilities": "0.000000",
            "currency": "USDT",
            "activateStatus": 2,
            "withdrawAmount": "0.000000",
            "profit": "0",
            "tradeType": 1,
            "wholeWarehouseBalance": null,
            "freeMargin": "0",
            "margin": "0",
            "firstWithdrawTime": null,
            "activateTime": 1646123635934,
            "frozen": "0.000000",
            "wholeWarehouseRate": null,
            "accountId": 1003496,
            "openAccountStatus": true,
            "companyId": 1,
            "liabilitiesPrincipal": "0.000000",
            "interestProportion": null,
            "createTime": 1646123590664,
            "lockAmount": "0.000000",
            "marginRadio": null,
            "notWithdrawAmount": "10000000.000000",
            "availableLoan": null,
            "digits": 6,
            "customerNo": "86000188",
            "status": 2,
            "assetsId": 1
        }
    ],
    "bizCode": "C",
    "tm": 18737968,
    "msgParams": null,
    "ok": true
}

Last updated