MultiMarkets API Docs
HomeGitHubReferenceLanguage
  • 概览
  • 快速开始
    • 服务状态
  • CLIENT API
    • 概述
    • 接入说明
      • 签名
      • 请求
      • 限速
      • 错误码
      • API地址
      • API代码
    • 授权访问
      • 人机校验
    • 客户管理
      • 客户注册
      • 更换令牌
      • API管理
        • 申请API
        • 设置权限
        • 删除API
    • 报价接口
      • 接入说明
      • 限制说明
      • 错误码说明
      • 订阅接口
        • 实时报价订阅
        • 盘口成交订阅
        • 取消报价订阅
      • 查询接口
        • 心跳
        • K线获取
    • Open API
      • 说明
        • 签名
        • 请求
        • 错误码
        • API地址
      • 下单流程
      • 基础数据
        • 产品简要数据
      • 客户资料
        • 客户基础信息
      • 交易接口
        • 合约下单
      • 消息接口
        • 获取消息Token
        • 消息订阅说明
      • 更多接口
    • Auth2 API
      • 说明
      • 获取授权码
      • 获取访问令牌
      • 获取用户信息
      • 刷新访问令牌
    • 更多...
  • Manager API
    • 概述
    • 接入说明
      • 签名
      • 请求
      • 限速
      • 错误码
      • API地址
      • API代码
    • 授权访问
    • 基础数据
      • 获取通用字典列表
      • 获取公司币种权限
    • 产品列表
      • 产品信息列表
    • 客户管理
      • 客户列表
      • 客户注册
      • 客户详情
      • 客户组列表
      • 账户信息
    • 资金管理
      • 额度调整
      • 余额查询
    • 数据推送
    • 更多...
  • BRIDGE API
    • 概述
    • 接入说明
      • 说明
      • 签名
      • 请求
      • 限速
      • 错误码
      • 产品清单
    • 基础数据
      • 获取通用字典列表
      • 获取公司币种权限
    • 产品数据
      • 产品信息列表
      • 产品规则列表
    • 客户管理
      • 客户注册
      • 客户列表
      • 客户详情
      • 客户销户
    • 账户管理
      • 添加账户
      • 更新账户
      • 查询账户
      • 删除账户
    • 交易接口
      • 查询余额
      • 查询入金记录
      • 查询出金记录
      • 查询划转记录
      • 下单
      • 查询订单
      • 订单列表
      • 成交记录
      • 当前挂单
      • 撤单
    • 消息订阅
      • 通知消息说明
      • Webhook订阅
      • 信息回调通知
  • Webhook API
    • 概述
    • 查询用户账户余额
    • 执行外部系统调额
    • 取消外部系统调额
  • Message API
    • 概述
    • 自定义消息API
  • WEB IFRAME
    • 介绍
    • 流程说明
  • FAQ
    • 接口如何申请apikey?
    • 公钥的用途是什么?
    • 接口请求超时时间是多少?
    • 支持的开发语言?
    • API调用限制有哪一些?
    • 如何更安全使用API?
  • API Reference
    • Manager API
    • Client API
  • CHANGELOGS
    • API
Powered by GitBook
On this page
  1. Webhook API

执行外部系统调额

Previous查询用户账户余额Next取消外部系统调额

Last updated 1 year ago

External System Credit Limit Adjustment

post

1: When a user places an order within the TradeBoss platform, the platform sends this request to an external system. The external system must respond within 3 seconds, otherwise the TradeBoss platform will consider it as a timeout and cancel the operation. At the same time, it will also send a "Cancel external system credit limit adjustment" request to maintain data consistency with the external system.

2: It is important to note that when calling the "Cancel external system credit limit adjustment" interface, if any exceptions occur or if a correct response is not received, there will be specified retries before aborting subsequent operations.

Header parameters
tracestringRequired

Global Link Identifier.

Example: {{mockTrace}}
companyIdintegerRequired

Company Id,User's company ID

Example: {{companyId}}
timestampnumberRequired

Request initiation timestamp, accurate to the millisecond, 13 digits.

Body
thirdServerCodestringRequired

Third-party system customer unique identifier

userNamestring · max: 48Required

TradeBoss user identity unique identifier

currencystring · max: 16Required

Account currency code, standard ISO 3-character currency unit.

bizTypeintegerRequired

Business types: 1 - Market order open; 2 - Market order close; 10 - Limit price stop order; 11 - Stop loss stop order; 12 - Limit price open

operationTypestringRequired

The operation types are OPEN_POSITION for opening a position, NORMAL_CLOSE for normal closing, and ABNORMAL_OVERTRADING for abnormal overtrading. When the operation type is NORMAL_CLOSE or OPEN_POSITION, the amount can only be a positive number. When it is ABNORMAL_OVERTRADING, the amount should be negative. The third-party system can decide whether to continue deducting quotas to complete this transaction or ignore this request.

amountstringRequired

Amount, used in conjunction with operationType.

amountDigitsintegerRequired

Amount decimal places.

orderIdinteger · longRequired

Order ID.

requestUniqueNostring · max: 48Required

Request for a unique identifier, multiple requests need to maintain business idempotence.

requestTimeinteger · longRequired

Request initiation timestamp, accurate to the millisecond, 13 digits

ipstringRequired

User IP

metadatastring · max: 200Optional

Remarks information, in JSON format.

Responses
200
成功
application/json
post
POST /api/cats-gateway/external-system-credit-limit-adjustment HTTP/1.1
Host: prewppc-3.cmfbl.com
trace: text
companyId: 1
timestamp: 1
Content-Type: application/json
Accept: */*
Content-Length: 102

{
  "tradeType": 81,
  "accountId": 15,
  "sortType": "desc",
  "sortFieldName": "orderTime",
  "accountCurrency": "USDT"
}
200

成功

{
  "msgParams": "veniam sit",
  "msg": "anim nisi consectetur sit sed",
  "trace": "laboris",
  "tm": 62,
  "bizCode": "10",
  "data": {},
  "code": "100",
  "fail": false,
  "ok": true
}