For the complete documentation index, see llms.txt. This page is also available as Markdown.

Data Push

Through the WS protocol, you can subscribe to the full amount of user transaction data

Url Address

wss://pre-api-test.cmfbl.com/openapi-b/ws

Trading mode(tradeType)

Trading mode (tradeType), you can fill in 1, 2, 5;

  1. Full-position contract mode

  2. Single-position contract mode

  3. Spot mode

Note: Currently, only Full-position contract mode, Single-position contract mode, and Spot trading modes are supported. Other modes are not supported yet.

Order type (bizType)

Full-position contract (1):

  1. MARKET_OPEN(1, "Market open"),

  2. MARKET_CLOSE(2, "Market close"),

  3. STOP_LOSS(3, "Stop loss close"),

  4. TAKE_PROFIT(4, "Take profit close"),

  5. STOP_OUT(5, "Forced close"),

  6. SETTLEMENT(6, "Expiration close"),

  7. CLEAR_ACCOUNT(7, "Account cancellation close"),

  8. MANUAL_FORCE_CLOSE(8, "Manual forced close"),

  9. LIMIT_OPEN(12, "Limit open")

Single-position contract (2):

  1. MARKET_OPEN(1, "Market open"),

  2. MARKET_CLOSE(2, "Market close"),

  3. STOP_LOSS(3, "Stop loss close"),

  4. TAKE_PROFIT(4, "Take profit close"),

  5. STOP_OUT(5, "Forced close"),

  6. SETTLEMENT(6, "Expiration close"),

  7. CLEAR_ACCOUNT(7, "Account cancellation close"),

  8. MANUAL_FORCE_CLOSE(8, "Manual forced close"),

  9. LIMIT_OPEN(12, "Limit open")

Spot trading method (5):

  1. MARKET(12, "Market price"),

  2. LIMIT(13, "Limit price");

Order status (orderStatus)

Subject Type(subjectType):

Business data push

Customer account registration (register)

Customer information update (customer_update)

Add customer details (customer_info_insert)

Customer details update (customer_info_update)

kyc level certification passed (kyc)

Open a trading account (open_account)

Account information update (account_update)

Account subject update (subject_insert)

Subscription type is 1, which is to obtain account balance

Account subject update (subject_update)

Subscription type is 1, which is to obtain account balance

Added account change details (subject_water_insert)

Account change details update (subject_water_update)

Add position information (position_insert)

Description: symbolDigits is used for costPrice, openPrice and other price-related information. currencyDigits is used for closeFee, openFee and other procedures. openVolume=contractSize*number of lots.

Position information update (position_update)

Delete position information (position_delete)

Transaction (trade_deal)

Deposit successful (deposit)

Adjustment of quota (account_adjust)

Add and update withdrawal proposals (withdraw)

Last updated