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
Related enumerations
Trading mode(tradeType)
Trading mode (tradeType), you can fill in 1, 2, 5;
Full-position contract mode
Single-position contract mode
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):
MARKET_OPEN(1, "Market open"),
MARKET_CLOSE(2, "Market close"),
STOP_LOSS(3, "Stop loss close"),
TAKE_PROFIT(4, "Take profit close"),
STOP_OUT(5, "Forced close"),
SETTLEMENT(6, "Expiration close"),
CLEAR_ACCOUNT(7, "Account cancellation close"),
MANUAL_FORCE_CLOSE(8, "Manual forced close"),
LIMIT_OPEN(12, "Limit open")
Single-position contract (2):
MARKET_OPEN(1, "Market open"),
MARKET_CLOSE(2, "Market close"),
STOP_LOSS(3, "Stop loss close"),
TAKE_PROFIT(4, "Take profit close"),
STOP_OUT(5, "Forced close"),
SETTLEMENT(6, "Expiration close"),
CLEAR_ACCOUNT(7, "Account cancellation close"),
MANUAL_FORCE_CLOSE(8, "Manual forced close"),
LIMIT_OPEN(12, "Limit open")
Spot trading method (5):
MARKET(12, "Market price"),
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
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.
INITIAL(0), //Default initial value
PLACED(1), //Order received
FILLED(2), //Order fulfilled
PARTIAL_FILLED(3), //Order partially fulfilled
CANCELLED(4), //Order canceled
PARTIAL_CANCELLED(5), //Order partially canceled
REJECTED(6), //Order rejected
EXPIRED(7), //Order expired
PROCESSING(8), //In progress
FINISH(9), //Finished
REVOKE(10), //Revoked
INTERNAL_ERROR(11), //Third party succeeded, CATS system encountered an exception
FAILURE(12), //Failed
PARTIAL_FAILURE(13) //Partial failure
1 Margin balance
2 Margin frozen
3 Margin available
4 Liability balance
5 Liability frozen
6 Liability available
7 Recoverable frozen
8 Recoverable frozen-frozen
9 Recoverable frozen available
19 Occupied margin balance
20 Occupied margin frozen
21 Occupied margin available
22 Interest balance
23 Interest frozen
24 Interest available
25 Collateral balance
26 Collateral frozen
27 Collateral available
Interconnection process description:
1. Get token through the authentication interface;
2. Place the token in the heander and establish a websocket link with the server.
The key in the header is the token. In addition, the group field can also be specified in the header. If multiple connections are required, please do not repeat the value of the group field. When the group value is the same, they will be kicked out.
3. To ensure that data is not lost and can be retransmitted after the link is interrupted, you need to ensure that the subscribed group is unique
4. The new group will be pushed from the new time point
Example:
header={"token": "608e3f81-1e10-481e-a917-6d256571e561admin", "group": "cats"}
The address is as follows:
ws://pre-api-test.cmfbl.com/openapi-b/ws
3. Wait for the server to push data;
4. Send heartbeat data regularly, the content is a ping string, and return the pong binary message of the websocket pong protocol, and the heartbeat cycle is 10s;
Note: Event messages will be saved for 168 hours (one week), and the messages will be cleared when the deadline is exceeded. In addition, when a group subscription client you specify is temporarily offline, the event messages generated during this period will be pushed to you when it is online again.
{
"data": {// Event data object
"companyId": 1,// Company id
"country": "CN",// Country
"createTime": 1645167068853,// Creation time
"customerGroupId": 1,// Customer group id
"customerNo": "86000079",// Customer number
"ext2": "",// Three-party unique code information, original value
"ext4": "",// Three-party unique code information, decrypted value
"id": "80",// Customer id
"kycAuditRemark": "Company has not opened KYC certification, directly passed",// kyc audit result description
"kycAuditStatus": 2,// kyc audit status, 0 uncertified, 1 pending audit, 2 audit passed, 3 audit failed
"language": "zh-CN", // Language information
"optional": 0, // Optional flag 0 Not added 1 Added
"phone": "18451251563", // Phone number
"phoneArea": "+86", // Phone area code
"email": "", // Email address
"emailArea": "", // Email area code
"registerSource": 4, // Registration source, 1=Mobile web: H5, 2=pcweb: PC_Web, 3=System & backend liquidation: System, 4=Android native app: Android, 5=Apple native app: iOS, 6=Hongmeng OS: HOS, 7=pc windows client: PC_Win, 8=pc mac client: PC_Mac, 9=None of the above: Other
"registerType": 2, // Registration method, 1 Email, 2 Phone number, 3 Customer account
"status": // 1 Status: 1 Normal, 2 Disabled, 3 Deleted, 4 Cancelled, 5 Locked, 6 Cancelled
},
"eventType": "register"// Event type
}
{
"data":{
"birthday":"", //Date of birth (kyc backfill)
"companyId":362, //Company ID
"country":"CN", //Country
"createBy":"admin", //Created by
"createTime":1640077504114, //Created time
"customerGroupId":1, //Customer group
"customerNo":"86000000", //Customer account
"email":"[email protected]", //Email
"emailArea":"+86", //Email area code
"firstOpenAccountTime":1640077504157, //First account opening time
"id":"1", //ID
"kycAuditRemark":"Company has not opened KYC certification, directly passed", //KYC audit notes
"kycAuditStatus":2, //Registration KYC audit status: 1 pending audit, 2 audit passed, 3 audit failed (KYC backfill)
"language":"zh-CN", //language information
"loginIp":"210.22.23.4", //login ip
"loginTime":1640242095732, //login time
"optional":1, //optional flag 0 not added 1 added
"phone":"15920358625", //mobile phone
"phoneArea":"+86", //mobile phone area code
"revision":0, //version information
"status":1, //status: 1 normal, 2 disabled, 3 deleted, 4 account cancellation, 5 locked, 6 account cancellation in progress
"updateBy":"admin", //update person
"updateTime":1640242095735 //update time
},
"eventType":"customer_update"
}
{
"data": {
"companyId": 439, // Company ID
"unitId": 13, // Unit ID
"country": "HK", // Country code
"registerIp": "1.1.1.1", // Registered IP
"registerDevice": "XX", // Registered device model
"utmSource": "xxx", // Advertising source (Account opening link parameter: source)
"utmMedium": "xxx", // Advertising medium (Account opening link parameter: medium)
"utmCampaign": "xxx", // Advertising campaign (Account opening link parameter: campaign)
"utmContent": "xxx", // Advertising content (Account opening link parameter: content)
"utmTerm": "xxx", // Keyword (Account opening link parameter: term)
"province": "", // Province
"city": "", // City
"address": "", // Detailed address
"remark": "xx", // Remarks
"ext1": "", // Extension field 1
"ext2": "", // Extension field 2
"ext3": "", // Extension field 3
"ext4": "", // Extension field 4
"ext5": "", // Extension field 5
"createBy": "86002812", // Creator
"createTime": 1704263677778, // Creation time
"customerInfoId": 2813, // Customer information ID
"customerNo": "86002812", // Customer number
"id": "2813", // Customer information ID
"revision": 0, // Version information
"status": 1 // Status (1: Enable, 2: Disable, 3: Delete)
},
"eventType": "customer_info_insert" // Event type
}
{
"data": {
"companyId": 439, // Company ID
"unitId": 13, // Unit ID
"country": "HK", // Country code
"registerIp": "1.1.1.1", // Registered IP
"registerDevice": "XX", // Registered device model
"utmSource": "xxx", // Advertising source (account opening link parameter: source)
"utmMedium": "xxx", // Advertising medium (account opening link parameter: medium)
"utmCampaign": "xxx", // Advertising campaign (account opening link parameter: campaign)
"utmContent": "xxx", // Advertising content (account opening link parameter: content)
"utmTerm": "xxx", // Keyword (account opening link parameter: term)
"province": "", // Province
"city": "", // City
"address": "", // Detailed address
"remark": "xx", // Remarks
"ext1": "", // Extension field 1
"ext2": "", // Extension field 2
"ext3": "", // Extension field 3
"ext4": "", // Extension field 4
"ext5": "", // Extension field 5
"createBy": "86002812", // Creator
"createTime": 1704263677778, // Creation time
"updateBy": "86002812", // Updater
"updateTime": 1704263677778, // Update time
"customerInfoId": 2813, // User detailed information ID
"customerNo": "86002812", // User number
"id": "2813", // User detailed information ID
"revision": 0, // Version information
"status": 1 // Status (1: Enable, 2: Disable, 3: Delete)
},
"eventType": "customer_info_update" // Event type
}
{
"data": {
"approval": "admin",//Approver
"approvalTime": 1647310823650,//Approval timestamp
"businessCode": "1",//Business code. The specific business interface application values are, open_account, cashin, withdraw, [My] - [Identity Authentication] applications are all 1
"companyId": 2, // Company id
"createTime": 1647310815202, // Creation timestamp
"customerNo": "86000018", // Customer number
"ext1": "KYC_WEB_ADD", // Extension field 1
"ext2": "19", // Extension field 2
"id": "20", // Record id
"levelCode": "level_2", // kyc level
"pathCode": "AF", // kyc path
"pno": "K556059077701009408", // kyc proposal number
"revision": 0, // Data version
"status": 2, // Status, 1 pending review, 2 approved, 3 unapproved
"updateBy": "admin", // Updater
"updateTime": 1647310823650//Update time
},
"eventType": "kyc"
}
{
"data": {
"activateStatus": 1,//Activation status (1-unavailable, 2-available)
"companyId": 1,//Company id
"createTime": 1645167254541,//Creation time
"currency": 1,//Account opening asset id
"currencyCode": "USDT",//Account opening currency
"customerId": 81,//Customer id
"customerNo": "86000080",//Customer number
"digits": 6,//Decimal places of funds
"id": "1001394",//Account ID
"status": 2,// Account status (1-unavailable, 2-available)
"tradeType": 5, // Gameplay ID
"type": 1, // Account category (1-user, 2-merchant, 3-platform)
"updateTime": 1645167254541 // Update time
},
"eventType": "open_account"
}
{
"data": {
"activateStatus": 1, // Activation status (1-unavailable, 2-available)
"companyId": 1, // Company id
"createTime": 1645167254541, // Creation time
"currency": 1, // Account opening asset id
"currencyCode": "USDT", // Account opening currency
"customerId": 81, // Customer id
"customerNo": "86000080", // Customer number
"digits": 6, // Decimal digits of funds
"id": "1001394", // Account ID
"status": 2, // Account status (1-unavailable, 2-available)
"tradeType": 5, // Gameplay ID
"type": 1, // Account category (1-user, 2-merchant, 3-platform)
"updateTime": 1645167254541//Update time
},
"eventType": "account_update"
}
{
"data": {
"accountId": 1000083, // Account id
"amount": 0, // Amount
"createTime": 1658738398243,//Creation time
"digits": 6,//Decimal places of amount
"id": "601",//Primary key of id
"type": 7,//Account type (1-balance, 2-freeze, 3-available, 4-liability balance, 5-liability frozen, 6-liability available, 7-freeze available, 8-freeze available-free, 9-freeze available, 10-platform balance, 11-platform frozen, 12-platform available, 13-institutional fund balance, 14-institutional fund frozen, 15-institutional fund available, 16-payable withdrawal balance, 17-payable withdrawal fund frozen, 18-payable withdrawal available, 19-occupied margin balance, 20-occupied margin frozen, 21-occupied margin available, 22-interest balance, 23-interest frozen, 24-interest available, 25-collateral balance, 26-collateral frozen, 27-collateral available)
"updateTime": 1658738398244,//Update time
"version": 0// Version number
},
"eventType": "subject_insert"
}
{
"data": {
"accountId": 1000091,//Trading account id
"bizType": 2,// Opening business type. Play 1 (1-market opening; 2-market closing; 3-stop loss closing order; 4-take profit closing order; 5-forced liquidation order for liquidation; 6-expiration closing order; 7-account closing order; 8-manual forced liquidation order; 10-limit price pre-buried order; 11-stop loss pre-buried order; 12-limit opening;); Play 2 (1-market opening; 2-market closing; 3-stop loss closing order; 4-take profit closing order; 5-forced liquidation order for liquidation; 6-expiration closing order; 7-account closing order; 8-manual forced liquidation order; 10-limit price pre-buried order; 11-stop loss pre-buried order; 13-matching limit opening order; 14-matching limit closing order;);
"closeFee": 0, //Closing fee
"collatrealFrozen": 0, //Collateral amount
"companyId": 21, //Company id
"contractSize": 1, // Contract size
"costPrice": 10157, // Cost price
"createBy": 1000091, // Creator id
"createTime": 1658815815134, // Creation time
"currency": "HKD", // Asset code
"currencyDigits": 5, // Asset decimal places
"customerGroupId": 3, // Customer group id
"customerId": 21882, // Customer id
"customerNo": "86000006", // Customer number
"dealId": 423, // Transaction record id
"direction": 1, // Transaction direction
"id": "2022072600132", // Position record id
"openFee": 0, // Opening fee
"openMargin": 0, // Opening margin
"openPrice": 0, // Opening price
"openVolume": 36.0, // Opening quantity
"orderId": 322, // Trading order id
"status": 1, // Position status 1- Opening; 2- Completed; 3- Partially closed;
"symbolDigits": 2, // Product decimal places
"symbolId": 179, // Trading product id
"tradeModel": 1, // Transaction mode
"tradeType": 6, // Game type
"interest":"0", // Interest to be collected. Game 2 is useful
"openTradeAmount":"100", // Opening transaction amount
"lockNum":"0", // Locked position quantity. Game 2 is useful
"crossLevelNum":1, // Leverage multiple
"currentTradeAmount":"100", // Current transaction amount
"maintenanceMargin":"10", // Maintenance margin. Useful for Play 2
"marginSetType":"1", // Margin type. 1-Ratio; 2-Range;
"occupyTheMargin":"100", // Occupied margin. Useful for Play 2
"singleMargin":"10", // Unit margin. Useful for Play 2
"takeProfit":"0", // Take Profit unit price, integer, needs to be processed with product decimals
"stopLoss":"0", // Stop Loss unit price, integer, needs to be processed with product decimals
"warningMargin":"0", // Warning margin. Useful for gameplay 2
"updateBy": 1000091, // Updater id
"updateTime": 1658815815136 // Update time
},
"eventType": "position_insert"
}
{
"data": {
"accountId": 1000091, // Trading account id
"bizType": 2, // Opening business type. Play 1 (1-market opening; 2-market closing; 3-stop loss closing order; 4-take profit closing order; 5-forced liquidation order for liquidation; 6-expiration closing order; 7-account closing order; 8-manual forced liquidation order; 10-limit price pre-buried order; 11-stop loss pre-buried order; 12-limit opening;); Play 2 (1-market opening; 2-market closing; 3-stop loss closing order; 4-take profit closing order; 5-forced liquidation order for liquidation; 6-expiration closing order; 7-account closing order; 8-manual forced liquidation order; 10-limit price pre-buried order; 11-stop loss pre-buried order; 13-matching limit opening order; 14-matching limit closing order;);
"closeFee": 0, //Closing fee
"collatrealFrozen": 0, //Collateral amount
"companyId": 21, //Company id
"contractSize": 1, // Contract size
"costPrice": 10157, // cost price
"createBy": 1000091, // creator id
"createTime": 1658815815134, // creation time
"currency": "HKD", // asset code
"currencyDigits": 5, // asset decimal places
"customerGroupId": 3, // customer group id
"customerId": 21882, // customer id
"customerNo": "86000006", // customer number
"dealId": 423, // transaction record id
"direction": 1, // transaction direction
"id": "2022072600132", // position record id
"openFee": 0, // opening fee
"openMargin": 0, // opening margin
"openPrice": 0, // opening price
"openVolume": 36.0, // Opening volume
"orderId": 322, // Trading order id
"status": 1, // Position status 1- Opening; 2- Completed; 3- Partially closed;
"symbolDigits": 2, // Product decimal places
"symbolId": 179, // Trading product id
"tradeModel": 1, // Transaction model
"tradeType": 6, // Game type
"interest":"0", // Interest to be collected. Game 2 is useful
"openTradeAmount":"100", // Opening transaction amount
"lockNum":"0", // Locked position quantity. Game 2 is useful
"crossLevelNum":1, // Leverage multiple
"currentTradeAmount":"100", // Current transaction amount
"maintenanceMargin":"10", // Maintenance margin. Useful for Play 2
"marginSetType":"1", // Margin type. 1-Ratio; 2-Range;
"occupyTheMargin":"100", // Occupied margin. Useful for Play 2
"singleMargin":"10", // Unit margin. Useful for Play 2
"takeProfit":"0", // Take Profit unit price, integer, needs to be processed with product decimals
"stopLoss":"0", // Stop Loss unit price, integer, needs to be processed with product decimals
"warningMargin":"0", // Warning margin. Play method 2 is useful
"updateBy": 1000091, // Updater id
"updateTime": 1658815815136 // Update time
},
"eventType": "position_update"
}
{
"data": {
"id": "2022072600132", // Position record id
"companyId": 21 // Company id
"accountId": 1000091, // Trading account id
"bizType": 2, // Opening business type. Play 1 (1-market opening; 2-market closing; 3-stop loss closing order; 4-take profit closing order; 5-forced liquidation order for liquidation; 6-expiration closing order; 7-account closing order; 8-manual forced liquidation order; 10-limit price pre-buried order; 11-stop loss pre-buried order; 12-limit opening;); Play 2 (1-market opening; 2-market closing; 3-stop loss closing order; 4-take profit closing order; 5-forced liquidation order for liquidation; 6-expiration closing order; 7-account closing order; 8-manual forced liquidation order; 10-limit price pre-buried order; 11-stop loss pre-buried order; 13-matching limit opening order; 14-matching limit closing order;);
"closeFee": 0, //Closing fee
"collatrealFrozen": 0, //Collateral amount
"companyId": 21, //Company id
"contractSize": 1, // Contract size
"costPrice": 10157, // cost price
"createBy": 1000091, // creator id
"createTime": 1658815815134, // creation time
"currency": "HKD", // asset code
"currencyDigits": 5, // asset decimal places
"customerGroupId": 3, // customer group id
"customerNo": "86000006", // customer number
"dealId": 423, // transaction record id
"direction": 1, // transaction direction
"openFee": 0, // opening fee
"openMargin": 0, // opening margin
"openPrice": 0, // opening price
"openVolume": 36.0, // opening quantity
"orderId": 322, // transaction order id
"status": 1, // position status 1-holding; 2-completed; 3-partially closed;
"symbolDigits": 2, // product decimal places
"symbolId": 179, //Trading product id
"tradeModel": 1, // Transaction model
"tradeType": 6, // Game type
"interest":"0", // Interest to be collected. Useful for Game 2
"openTradeAmount":"100", // Opening transaction amount
"lockNum":"0", // Locked position quantity. Useful for Game 2
"crossLevelNum":1, // Leverage multiple
"currentTradeAmount":"100", // Current transaction amount
"maintenanceMargin":"10", // Maintenance margin. Useful for Game 2
"marginSetType":"1", // Margin type. 1-Ratio; 2-Range;
"occupyTheMargin":"100", // Occupied margin. Useful for Game 2
"singleMargin":"10", // Unit margin. Play method 2 is useful
"takeProfit":"0", // Take profit unit price, integer, needs to be processed with product decimals
"stopLoss":"0", // Stop loss unit price, integer, needs to be processed with product decimals
"warningMargin":"0", // Warning margin. Play method 2 is useful
"updateBy": 1000091, // Updater ID
"updateTime": 1658815815136 // Update time
},
"eventType": "position_delete"
}
{
"data":{
"accountDigits":4, //Account decimal places, transaction amount, decimal places
"accountId":1269478, //Deposit account ID
"bizType":1, //Business type
"companyId":362, //Company ID
"contractSize":1, //Product contract size
"convertExchangeRate":1, //Exchange rate for converting handling fee currency to USDT
"convertFee":9028, //Value after handling fee is converted to USDT
"convertFeeDigits":4, //Decimal places after handling fee is converted to USDT
"createTime":1689658686940, // creation time
"customerGroupId":1, // customer group id
"customerId":15115, // customer id
"customerNo":"86015114", // customer number
"digits":2, // average transaction price decimal places
"direction":1, // buy and sell direction, 1 buy 2 sell
"executeMargin":768339, // opening margin
"executeMarginCategoryId":3, // margin category id
"executeNum":0.001, // number of transactions
"executePrice":3009452, // transaction price
"executeTime":1689658687260, // transaction time
"fee":9028, // handling fee
"feeDigits":4, // handling fee decimal places
"id":"1822307", // transaction record id
"orderId":1822307, // Order record id
"orderStatus":2, // Order status
"pointRatio":1, // Point ratio
"positionId":2023071846555,
"spread":3251, // Spread
"symbolId":706, // Product id
"symbolName":"BINAN_BTC_USDT11", // Product name
"tradeType":1, // Trading modes 1, 2, and 5 are full-margin contracts, fixed-margin contracts, and spot contracts.
"pnl":1212, // Close profit and loss, decimal places are the same as the account decimal places, tradeTpe is 1 and 2, bizType is 2, 3, 4, 5, 6, 7, 8 when there is a value, currency is the same as the account currency, obtained by accountId association query
"source":"H5",//H5: mobile web; PC_Web: pcweb; System: system; Android: Android native app; iOS: Apple native app; HOS: Hongmeng OS; PC_Win: pcwindows client; PC_Mac: pcmac client; default is the same as the login source. (limited to 255 characters, enumeration is for reference only, only letters, numbers, and underscores can be used)
"thirdPartyOrder":"",//third-party order identification, (limited to 255 characters, only letters, numbers, and underscores can be used)
"updateTime":1689658687263
},
"eventType":"trade_deal"
}
{
"data": {
"accountId": 1000077, // Deposit account id
"actualAmount": 50.000000000, // Actual deposit amount
"blockchainName": "", // Encrypted acquisition chain name
"checkStatus": 2, // Review status
"companyId": 1, // Company id
"country": "CN", // Customer country code
"createBy": "86000000", // Creator
"createTime": 1647310213627, // Create actual
"customerNo": "86000000", // Customer number
"depositCurrency": "USDT", // Deposit currency
"depositFee": 0, // Deposit fee
"depositFrom": "H5", // Source of deposit (terminal type H5_Android, H5_IOS, PCUI_Windows, PCUI_Mac, APP_Android, APP_IOS)
"depositStatus": 2, // Deposit status
"finalAmount": 50.000000000, // Final amount
"fromPaymentAmount": 343.500000000, // Channel notification amount
"id": "89", // Proposal record id
"intendAmount": 50.000000000, // Proposal amount (amount received by the platform)
"notifyStatus": false, // Payment channel notification status
"paymentChannelClientType": "mobile", // Client type pc, mobile
"paymentCode": "mdpay", // Payment channel code
"paymentCurrency": "CNY", // Deposit currency (currency supported by the payment channel)
"paymentStatus": 1, // Payment status, pending payment: 1, payment successful: 2, payment failed: 3
"paymentType": "bank", // payment channel type
"proposalNo": "D2022031522005", // proposal number
"queryMaxCount": 20, // maximum number of queries
"revision": 3, // data version number
"toPaymentAmount": 343.500000000, // amount sent to the payment platform (amount received by the payment channel)
"toPaymentRate": 6.870000000, // deposit exchange rate used by the payment platform
"tradeType": 5, // gameplay type
"updateBy": "admin", // updater
"updateTime": 1647310473479 // actual update
},
"eventType": "deposit"
}
{
"data": {
"accountCurrency": "HKD", // Account currency (trading account currency)
"accountId": 1006333, // Trading account ID
"amount": 1000000.000000000, // Proposal amount
"businessType": 60301, // Business type code
"checkBy": "admin", // Approver
"checkStatus": 2, // Proposal status, waiting for manual approval: 1, Approval successful: 2, Approval failed: 3
"companyId": 401, // Company id
"createBy": "admin", // Creator (Applicant)
"createTime": 1670815268755, // Creation time (application time)
"customerNo": "86001385", // Customer account
"id": "212", // Primary key id
"proposalNo": "A20221212686244",// Proposal No.
"revision": 2, // Optimistic lock
"tradeType": 6, // Game type
"updateBy": "admin", // Updater
"updateTime": 1670815269000, // Update time
"withdraw": false // Can withdraw
},
"eventType": "account_adjust"
}
{
"data": {
"id": "212", // Primary key id
"companyId": 401, // Company id
"proposalNo": "A20221212686244",// Proposal No.
"customerNo": "86001385", // Customer number
"accountCurrency": "HKD", // Account currency (trading account currency)
"withdrawCurrency":"HKD",//Withdrawal currency (currency supported by payment channel)
"accountId": 1006333, // Trading account ID
"tradeType": 6, // Game type
"country": "CN", // Country
"amount": 1000000.000000000, // Proposal amount
"rate": 1, // Withdrawal exchange rate sent to platform CATS2
"withdrawFee": 0, // Withdrawal fee
"finalAmount": 1000000, // Final withdrawal amount
"bankName": "", // Bank card bank name
"bankCardNo": "", // Bank card number
"bankAccountName": "", // Bank card holder name
"checkStatus": 2, // Proposal status, waiting for manual approval: 1, Approval successful: 2, Approval failed: 3
"transferStatus": 2,// Transfer status, pending transfer: 1, successful transfer: 2, failed transfer: 3
"checkBy": "admin", // approver
"remark": "admin", // remarks
"withdrawType": 1, // withdrawal type, cash withdrawal: 1 (withdraw to bank card), coin withdrawal: 2 (withdraw digital currency to digital wallet)
"withdrawCoinStatus": 1, // coin withdrawal status, pending coin withdrawal: 1, successful coin withdrawal: 2, failed coin withdrawal: 3, failed submission: 4
"withdrawMethod": "bank", // withdrawal method, corresponding bank card: bank, corresponding digital wallet: digit_wallet, skrill electronic wallet: skrill_wallet, wire transfer: wire
"blockchainName": null, // chain name, data dictionary configuration, the payment method is a digital wallet, display the corresponding chain name (also called transfer network), such as Omin, ERC20, TRC20
"thirdMessage": "admin", // call third-party response message
"txid": null, // txid
"rawAmount":0, // Original amount
"createBy": "admin", // Creator (applicant)
"createTime": 1670815268755, // Creation time (application time)
"revision": 2, // Optimistic
"updateBy": "admin", // Updater
"updateTime": 1670815269000, // Update time
"withdraw": false // Can withdraw
},
"eventType": "withdraw"
}