Customer/Products

Add Optional Products

post

version=0.0.1 bizType=customer.app.CustomerOptionalWebApiService.add Accessible after login

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
symbolListinteger · int64[] · min: 1 · max: 2147483647Required

Product ID Collection

tradeTypeinteger · int64 · min: 1Required

Game ID, 1-CFD Full Position 2-CFD Isolated Position 3-Leveraged Full Position 5-Spot Game

Responses
200Success
application/json
post
/global/customer.app.CustomerOptionalWebApiService.add
POST /api/global/customer.app.CustomerOptionalWebApiService.add HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 40

{
  "symbolList": [
    2717,
    2718
  ],
  "tradeType": 1
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-w67a-m983h6dw-30535g-x321-1677575540",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 46426649,
  "msgParams": null,
  "ok": true
}

Delete selected products

post

version=0.0.1 bizType=customer.app.CustomerOptionalWebApiService.delete Access after login

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
symbolListinteger · int64[] · min: 1 · max: 2147483647Optional

Product Ids

tradeTypeinteger · int64 · min: 1Required

1-CFD Full Position 2-CFD Cross Position 3-Leveraged Full Position 5-Spot Play

Responses
200Success
application/json
post
/global/customer.app.CustomerOptionalWebApiService.delete
POST /api/global/customer.app.CustomerOptionalWebApiService.delete HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 32

{
  "symbolList": [
    1
  ],
  "tradeType": 1
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-5um9rt4-0pba-3uwtcp-117u3s1-1677576234",
  "code": "0",
  "data": null,
  "bizCode": "",
  "tm": 8347683,
  "msgParams": null,
  "ok": true
}

Customized List

post

version=0.0.1 bizType=customer.app.CustomerOptionalWebApiService.optionalList Accessible after login

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
tradeTypeListinteger · int64[] · min: 1 · max: 2147483647Required

Game ID collection, 1-CFD full position 2-CFD margin position 3-Leveraged full position 5-Spot game

Responses
200Success
application/json
post
/global/customer.app.CustomerOptionalWebApiService.optionalList
POST /api/global/customer.app.CustomerOptionalWebApiService.optionalList HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "tradeTypeList": [
    1
  ]
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-20325-5twm-458w4eap-p5x1x8l-1677576194",
  "code": "0",
  "data": {
    "1": [
      {
        "symbolCode": "USDJPY",
        "symbolId": 1348,
        "pointRatio": 1,
        "symbolName": "USDJPY",
        "symbolDigits": 3,
        "askSpread": 0.009,
        "bidSpread": 0.007
      },
      {
        "symbolCode": "BINAN_BTC_USDT",
        "symbolId": 706,
        "pointRatio": 1,
        "symbolName": "BTC/USDT",
        "symbolDigits": 2,
        "askSpread": 32.51,
        "bidSpread": 32.51
      },
      {
        "symbolCode": "AUDCHF",
        "symbolId": 2717,
        "pointRatio": 1,
        "symbolName": "AUDCHF",
        "symbolDigits": 5,
        "askSpread": 0.00009,
        "bidSpread": 0.00007
      },
      {
        "symbolCode": "BTC/USDT_PRD",
        "symbolId": 969,
        "pointRatio": 10,
        "symbolName": "BTC/USDT_PRD",
        "symbolDigits": 2,
        "askSpread": 0.9,
        "bidSpread": 0.7
      },
      {
        "symbolCode": "BINAN_ATOM_USDT",
        "symbolId": 695,
        "pointRatio": 3,
        "symbolName": "BINAN_ATOM_USDT",
        "symbolDigits": 3,
        "askSpread": 0.027,
        "bidSpread": 0.021
      }
    ]
  },
  "bizCode": "",
  "tm": 39231170,
  "msgParams": null,
  "ok": true
}

Last updated