Skip to main content

API code library

Java connector

A lightweight Java codebase that provides methods that allow users to directly call the API。

Sdks for each language:

java : https://github.com/jucoin-dev/ju-java-demo

response format

All interface returns are in JSON format.

Response
{
"code": 200,
"data": {},
"msg": "SUCCESS",
"msgInfo": []
}

response code

Http status

httpStatusdescription
200The request is successful, please check the rc and mc sections further
404interface does not exist
429The request is too frequent, please control the request rate according to the speed limit requirement
500Service exception
502Gateway exception
503Service unavailable, please try again later

Return code

rcreturn code
0business success
1business failure

Message code

mcmessage code
SUCCESSsuccess
FAILUREfail
AUTH_001missing request header validate-appkey
AUTH_002missing request header validate-timestamp
AUTH_003missing request header validate-recvwindow
AUTH_004bad request header validate-recvwindow
AUTH_005missing request header validate-algorithms
AUTH_006bad request header validate-algorithms
AUTH_007missing request header validate-signature
AUTH_101ApiKey does not exist
AUTH_102ApiKey is not activated
AUTH_103Signature error
AUTH_104Unbound IP request
AUTH_105outdated message
AUTH_106Exceeded apikey permission
SYMBOL_001Symbol not exist
SYMBOL_002Symbol offline
SYMBOL_003Symbol suspend trading
SYMBOL_004Symbol country disallow trading
SYMBOL_005The symbol does not support trading via API
SYMBOL_007The trading pair does not support order modification
SYMBOL_010This market does not support your trading
ORDER_001Platform rejection
ORDER_002insufficient funds
ORDER_003Trading Pair Suspended
ORDER_004no transaction
ORDER_005Order not exist
ORDER_006Too many open orders
ORDER_007The sub-account has no transaction authority
ORDER_008The order price or quantity precision is abnormal
ORDER_F0101Trigger Price Filter - Min
ORDER_F0102Trigger Price Filter - Max
ORDER_F0103Trigger Price Filter - Step Value
ORDER_F0201Trigger Quantity Filter - Min
ORDER_F0202Trigger Quantity Filter - Max
ORDER_F0203Trigger Quantity Filter - Step Value
ORDER_F0301Trigger QUOTE_QTY Filter - Min Value
ORDER_F0401Trigger PROTECTION_ONLINE Filter or PROTECTION_LIMIT Filter
ORDER_F0501Trigger PROTECTION_LIMIT Filter - Buy Max Deviation
ORDER_F0502Trigger PROTECTION_LIMIT Filter - Sell Max Deviation
ORDER_F0503Trigger PROTECTION_LIMIT Filter - Buy Limit Coefficient
ORDER_F0504Trigger PROTECTION_LIMIT Filter - Sell Limit Coefficient
ORDER_F0601Trigger PROTECTION_MARKET Filter
ORDER_F0704Liquidation price limit for leveraged limit orders
COMMON_001The user does not exist
COMMON_002System busy, please try it later
COMMON_003Operation failed, please try it later
CURRENCY_001Information of currency is abnormal
DEPOSIT_001Deposit is not open
DEPOSIT_002The current account security level is low, please bind any two security verifications in mobile phone/email/Google Authenticator before deposit
DEPOSIT_003The format of address is incorrect, please enter again
DEPOSIT_004The address is already exists, please enter again
DEPOSIT_005Can not find the address of offline wallet
DEPOSIT_006No deposit address, please try it later
DEPOSIT_007Address is being generated, please try it later
DEPOSIT_008Deposit is not available
WITHDRAW_001Withdraw is not open
WITHDRAW_002The withdrawal address is invalid
WITHDRAW_003The current account security level is low, please bind any two security verifications in mobile phone/email/Google Authenticator before withdraw
WITHDRAW_004The withdrawal address is not added
WITHDRAW_005The withdrawal address cannot be empty
WITHDRAW_006Memo cannot be empty
WITHDRAW_008Risk control is triggered, withdraw of this currency is not currently supported
WITHDRAW_009Withdraw failed, some assets in this withdraw are restricted by T+1 withdraw
WITHDRAW_010The precision of withdrawal is invalid
WITHDRAW_011free balance is not enough
WITHDRAW_012Withdraw failed, your remaining withdrawal limit today is not enough
WITHDRAW_013Withdraw failed, your remaining withdrawal limit today is not enough, the withdrawal amount can be increased by completing a higher level of real-name authentication
WITHDRAW_014This withdrawal address cannot be used in the internal transfer function, please cancel the internal transfer function before submitting
WITHDRAW_015The withdrawal amount is not enough to deduct the handling fee
WITHDRAW_016This withdrawal address is already exists
WITHDRAW_017This withdrawal has been processed and cannot be canceled
WITHDRAW_018Memo must be a number
WITHDRAW_019Memo is incorrect, please enter again
WITHDRAW_020Your withdrawal amount has reached the upper limit for today, please try it tomorrow
WITHDRAW_021Your withdrawal amount has reached the upper limit for today, you can only withdraw up to 0 this time
WITHDRAW_022Withdrawal amount must be greater than 0
WITHDRAW_023Withdrawal amount must be less than 0
WITHDRAW_024Withdraw is not supported
WITHDRAW_025Please create a FIO address in the deposit page
FUND_001Duplicate request (a bizId can only be requested once)
FUND_002Insufficient account balance
FUND_003Transfer operations are not supported (for example, sub-accounts do not support financial transfers)
FUND_004Unfreeze failed
FUND_005Transfer prohibited
FUND_014The transfer-in account id and transfer-out account ID cannot be the same
FUND_015From and to business types cannot be the same
FUND_016Leverage transfer, symbol cannot be empty
FUND_017Parameter error
FUND_018Invalid freeze record
FUND_019Freeze users not equal
FUND_020Freeze currency are not equal
FUND_021Operation not supported
FUND_022Freeze record does not exist
FUND_044The maximum length of the amount is 113 and cannot exceed the limit
SYMBOL_001Symbol does not exist
TRANSFER_001Duplicate request (a bizId can only be requested once)
TRANSFER_002Insufficient account balance
TRANSFER_003User not registered
TRANSFER_004The currency is not allowed to be transferred
TRANSFER_005The user's currency is not allowed to be transferred
TRANSFER_006Transfer prohibited
TRANSFER_007Request timed out
TRANSFER_008Transferring to a leveraged account is abnormal
TRANSFER_009Departing from a leveraged account is abnormal
TRANSFER_010Leverage cleared, transfer prohibited
TRANSFER_011Leverage with borrowing, transfer prohibited
TRANSFER_012Currency transfer prohibited
GATEWAY_0001Trigger risk control
GATEWAY_0002Trigger risk control
GATEWAY_0003Trigger risk control
GATEWAY_0004Trigger risk control