Latest commit

History

History
109 lines (102 loc) · 13.6 KB

File metadata and controls

109 lines (102 loc) · 13.6 KB

Contract Trading ERROR CODE

CODENAMEDESCRIPTION
NO_SUCH_ACCOUNT1000no such account.
DUPLICATE_ACCOUNT1001user account duplicate.
ACCOUNT_SETTLED_CURRENCY_NOT_MATCH1002account settled currency do not match.
ACCOUNT_IN_LIQUIDATION1003account in liquidation, not permitted.
MIN_LEVERAGE_RATIO1004leverage is too small
MAX_LEVERAGE_RATIO1005leverage is too large.
NEW_LEVERAGE_EQUAL_OLD1006leverage is equal old leverage.
MARGIN_NOT_ENOUGH1007margin not enough.
BALANCE_INSUFFICIENT1008balance insufficient.
RECHARGE_AMOUNT_ILLEGAL1009the amount of recharge is illegal.
BALANCE_CHANGE_AMOUNT_ILLEGAL1010the amount of balance change is illegal.
INVALID_MARGIN_CHANGE_AMOUNT1011invalid margin change amount.
ISOLATED_LEVERAGE_REJECT_WITH_POSITION1012leverage reduction is not supported in Isolated Margin Mode with open positions.
BALANCE_VERSION_NOT_EQUAL1013balance version not equal.
ACCOUNT_CAN_NOT_WITHDRAW1014account can not withdraw.
ACCOUNT_CAN_NOT_TRADE1015account can not trade.
ACCOUNT_CAN_ONLY_REDUCE1016account can only place reduce only order.
INVALID_FEE_RATE1017invalid fee rate.
INVALID_MAKER_FEE_RATE1018invalid maker fee rate.
INVALID_TAKER_FEE_RATE1019invalid taker fee rate.
UNABLE_UPDATE_POSITION_MODE1020unable to update account position mode with open order or positions
INVALID_SYMBOL_ID2000invalid symbol id.
DUPLICATE_SYMBOL_ID2001duplicate symbol id.
DUPLICATE_SYMBOL_NAME2002duplicate symbol name.
INVALID_NOTIONAL_LIMIT_COEF2003invalid notional limit coef
DUPLICATED_ASSET_NAME2004duplicated asset name
DUPLICATED_ASSET_ID2005duplicated asset id
INVALID_ASSET_ID2006invalid asset id.
ASSET_NOT_FOUND2007asset is not found
NO_SUCH_ORDER4000no such order.
PRICE_MISSING4001price is missing.
QTY_MISSING4002qty is missing.
INVALID_QTY4003qty is invalid.
INVALID_CURRENCY_ID4004invalid currency id.
UNABLE_TO_FILL4005unable to fill.
ORDER_WOULD_IMMEDIATELY_TRIGGER4006order would immediately trigger.
REDUCE_ONLY_REJECT4007reduce only reject.
POSITION_NOT_SUFFICIENT4008position is not sufficient.
REDUCE_ONLY_BUY_ERROR4009reduce only rejected, position more than 0 while buy.
REDUCE_ONLY_SELL_ERROR4010reduce only rejected, position less than 0 while sell.
MAX_OPEN_ORDER_LIMIT4011max open order limit.
MAX_CONDITIONAL_ORDER_LIMIT4012max conditional order limit.
INVALID_CONDITIONAL_ORDER4013conditional order is invalid.
CLI_ORD_ID_DUPLICATE4014clientOrderId is existed.
REDUCE_ONLY_ILLEGAL4015reduce only reject, order type not supported.
CANCEL_REJECTED4020unknown order sent.
UNKNOWN_UPDATE_TYPE4021unknown update type.
REDUCE_ONLY_MARGIN_CHECK_FAILED4030reduceOnly order Failed. please check your existing position and open orders.
UNABLE_TO_PARSE_ORDER4040unable to parse order.
MARKET_ORDER_REJECT4050the counter party's best price does not meet the PERCENT_PRICE filter limit.
ORDER_PRICE_RANGE_REJECT4051order price not in the proper range.
TRIGGER_PRICE_MISSING4060trigger price is missing.
NO_OPEN_ORDER4070no open orders.
ORDER_ID_DUPLICATE4071order id is existed.
ACCOUNT_TEMP_LOCKED4072account temporary locked.
INVALID_POSITION_SIDE5000positionSide is not valid.
POSITION_SIDE_NOT_MATCH5001positionSide does not match with userSetting.
ADD_ISOLATED_MARGIN_NO_POSITION_REJECT5002isolated position quantity should more than 0 when add margin.
NO_BALANCE_FOR_ADD_MARGIN5003No balance for add position margin.
POSITION_MARGIN_CAN_NOT_DECREASE5004Position margin can not decrease.
INVALID_POSITION_MARGIN_MODE5008invalid position margin mode
SNAPSHOT_REJECT5005Snapshot will not be executed on master instance.
SNAPSHOT_TRIGGER_TIME_REJECT5006Snapshot will not be executed on this trigger time.

Data parse and processing ERROR

CODENAMEDESCRIPTION
100TIMEOUTRequest time out.
200PRICE_LESS_THAN_ZEROPrice less than 0.
201PRICE_LESS_THAN_MIN_PRICEPrice less than min price.
202PRICE_GREATER_THAN_MAX_PRICEPrice greater than max price.
203PRICE_NOT_INCREASED_BY_TICK_SIZEPrice not increased by tick size.
204QTY_LESS_THAN_ZEROQuantity less than zero.
205QTY_GREATER_THAN_MAX_QTYQuantity greater than max quantity.
206QTY_LESS_THAN_MIN_QTYQuantity less than min quantity.
207QTY_NOT_INCREASED_BY_STEP_SIZEQty not increased by step size.
208TRIGGER_PRICE_LESS_THAN_ZEROTrigger price less than zero.
209TRIGGER_PRICE_GREATER_THAN_MAX_PRICETrigger price greater than max price.
210PRICE_TRIGGER_TYPE_IS_NULL_OR_ILLEGALPrice trigger type is null or illegal.
211NOT_SUPPORT_ORDER_TYPEnot support order type.
212INVALID_CL_ORD_ID_LENclient order length is not valid.
213INVALID_CL_ORD_IDclient order id is not valid.
214CL_ORD_ID_ILLEGAL_CHARSIllegal characters found in a parameter.
216MANDATORY_PARAM_EMPTY_OR_MALFORMEDMandatory parameter {%s} was not sent, was empty/null, or malformed.
217PARAM_NOT_REQUIREDParameter '%s' not required.
218INVALID_SIDEInvalid side.
219OPTIONAL_PARAMS_BAD_COMBOCombination of optional parameters '%s' invalid.
220INVALID_PRICE_RANGEprice range not valid
221QTY_TOO_LARGEQty too large.
250INVALID_CURRENCYinvalid currency.
300INVALID_SYMBOLinvalid symbol.
301SYMBOL_CAN_NOT_TRADINGsymbol can not trading now.
302SYMBOL_ORDER_CAN_NOT_CANCELsymbol order can not cancel now.
400INVALID_ACCOUNTinvalid account.
401ACCOUNT_CAN_NOT_TRADEaccount could not trade.
402INVALID_LEVERAGEinvalid leverage.
403INVALID_USER_IDinvalid user id.
405INVALID_WITHDRAW_BALANCEinvalid withdraw balance.
408ACCOUNT_MARGIN_NOT_ENOUGHaccount margin not enough.
501WALLET_INSUFFICIENT_BALANCEwallet insufficient balance
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all \u003cpre\u003e\u003ccode\u003e blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks"); } } catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); } })(); (function(){ try { var __m = "github.com"; var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Latest commit

History

History
109 lines (102 loc) · 13.6 KB

File metadata and controls

109 lines (102 loc) · 13.6 KB

Contract Trading ERROR CODE

CODENAMEDESCRIPTION
NO_SUCH_ACCOUNT1000no such account.
DUPLICATE_ACCOUNT1001user account duplicate.
ACCOUNT_SETTLED_CURRENCY_NOT_MATCH1002account settled currency do not match.
ACCOUNT_IN_LIQUIDATION1003account in liquidation, not permitted.
MIN_LEVERAGE_RATIO1004leverage is too small
MAX_LEVERAGE_RATIO1005leverage is too large.
NEW_LEVERAGE_EQUAL_OLD1006leverage is equal old leverage.
MARGIN_NOT_ENOUGH1007margin not enough.
BALANCE_INSUFFICIENT1008balance insufficient.
RECHARGE_AMOUNT_ILLEGAL1009the amount of recharge is illegal.
BALANCE_CHANGE_AMOUNT_ILLEGAL1010the amount of balance change is illegal.
INVALID_MARGIN_CHANGE_AMOUNT1011invalid margin change amount.
ISOLATED_LEVERAGE_REJECT_WITH_POSITION1012leverage reduction is not supported in Isolated Margin Mode with open positions.
BALANCE_VERSION_NOT_EQUAL1013balance version not equal.
ACCOUNT_CAN_NOT_WITHDRAW1014account can not withdraw.
ACCOUNT_CAN_NOT_TRADE1015account can not trade.
ACCOUNT_CAN_ONLY_REDUCE1016account can only place reduce only order.
INVALID_FEE_RATE1017invalid fee rate.
INVALID_MAKER_FEE_RATE1018invalid maker fee rate.
INVALID_TAKER_FEE_RATE1019invalid taker fee rate.
UNABLE_UPDATE_POSITION_MODE1020unable to update account position mode with open order or positions
INVALID_SYMBOL_ID2000invalid symbol id.
DUPLICATE_SYMBOL_ID2001duplicate symbol id.
DUPLICATE_SYMBOL_NAME2002duplicate symbol name.
INVALID_NOTIONAL_LIMIT_COEF2003invalid notional limit coef
DUPLICATED_ASSET_NAME2004duplicated asset name
DUPLICATED_ASSET_ID2005duplicated asset id
INVALID_ASSET_ID2006invalid asset id.
ASSET_NOT_FOUND2007asset is not found
NO_SUCH_ORDER4000no such order.
PRICE_MISSING4001price is missing.
QTY_MISSING4002qty is missing.
INVALID_QTY4003qty is invalid.
INVALID_CURRENCY_ID4004invalid currency id.
UNABLE_TO_FILL4005unable to fill.
ORDER_WOULD_IMMEDIATELY_TRIGGER4006order would immediately trigger.
REDUCE_ONLY_REJECT4007reduce only reject.
POSITION_NOT_SUFFICIENT4008position is not sufficient.
REDUCE_ONLY_BUY_ERROR4009reduce only rejected, position more than 0 while buy.
REDUCE_ONLY_SELL_ERROR4010reduce only rejected, position less than 0 while sell.
MAX_OPEN_ORDER_LIMIT4011max open order limit.
MAX_CONDITIONAL_ORDER_LIMIT4012max conditional order limit.
INVALID_CONDITIONAL_ORDER4013conditional order is invalid.
CLI_ORD_ID_DUPLICATE4014clientOrderId is existed.
REDUCE_ONLY_ILLEGAL4015reduce only reject, order type not supported.
CANCEL_REJECTED4020unknown order sent.
UNKNOWN_UPDATE_TYPE4021unknown update type.
REDUCE_ONLY_MARGIN_CHECK_FAILED4030reduceOnly order Failed. please check your existing position and open orders.
UNABLE_TO_PARSE_ORDER4040unable to parse order.
MARKET_ORDER_REJECT4050the counter party's best price does not meet the PERCENT_PRICE filter limit.
ORDER_PRICE_RANGE_REJECT4051order price not in the proper range.
TRIGGER_PRICE_MISSING4060trigger price is missing.
NO_OPEN_ORDER4070no open orders.
ORDER_ID_DUPLICATE4071order id is existed.
ACCOUNT_TEMP_LOCKED4072account temporary locked.
INVALID_POSITION_SIDE5000positionSide is not valid.
POSITION_SIDE_NOT_MATCH5001positionSide does not match with userSetting.
ADD_ISOLATED_MARGIN_NO_POSITION_REJECT5002isolated position quantity should more than 0 when add margin.
NO_BALANCE_FOR_ADD_MARGIN5003No balance for add position margin.
POSITION_MARGIN_CAN_NOT_DECREASE5004Position margin can not decrease.
INVALID_POSITION_MARGIN_MODE5008invalid position margin mode
SNAPSHOT_REJECT5005Snapshot will not be executed on master instance.
SNAPSHOT_TRIGGER_TIME_REJECT5006Snapshot will not be executed on this trigger time.

Data parse and processing ERROR

CODENAMEDESCRIPTION
100TIMEOUTRequest time out.
200PRICE_LESS_THAN_ZEROPrice less than 0.
201PRICE_LESS_THAN_MIN_PRICEPrice less than min price.
202PRICE_GREATER_THAN_MAX_PRICEPrice greater than max price.
203PRICE_NOT_INCREASED_BY_TICK_SIZEPrice not increased by tick size.
204QTY_LESS_THAN_ZEROQuantity less than zero.
205QTY_GREATER_THAN_MAX_QTYQuantity greater than max quantity.
206QTY_LESS_THAN_MIN_QTYQuantity less than min quantity.
207QTY_NOT_INCREASED_BY_STEP_SIZEQty not increased by step size.
208TRIGGER_PRICE_LESS_THAN_ZEROTrigger price less than zero.
209TRIGGER_PRICE_GREATER_THAN_MAX_PRICETrigger price greater than max price.
210PRICE_TRIGGER_TYPE_IS_NULL_OR_ILLEGALPrice trigger type is null or illegal.
211NOT_SUPPORT_ORDER_TYPEnot support order type.
212INVALID_CL_ORD_ID_LENclient order length is not valid.
213INVALID_CL_ORD_IDclient order id is not valid.
214CL_ORD_ID_ILLEGAL_CHARSIllegal characters found in a parameter.
216MANDATORY_PARAM_EMPTY_OR_MALFORMEDMandatory parameter {%s} was not sent, was empty/null, or malformed.
217PARAM_NOT_REQUIREDParameter '%s' not required.
218INVALID_SIDEInvalid side.
219OPTIONAL_PARAMS_BAD_COMBOCombination of optional parameters '%s' invalid.
220INVALID_PRICE_RANGEprice range not valid
221QTY_TOO_LARGEQty too large.
250INVALID_CURRENCYinvalid currency.
300INVALID_SYMBOLinvalid symbol.
301SYMBOL_CAN_NOT_TRADINGsymbol can not trading now.
302SYMBOL_ORDER_CAN_NOT_CANCELsymbol order can not cancel now.
400INVALID_ACCOUNTinvalid account.
401ACCOUNT_CAN_NOT_TRADEaccount could not trade.
402INVALID_LEVERAGEinvalid leverage.
403INVALID_USER_IDinvalid user id.
405INVALID_WITHDRAW_BALANCEinvalid withdraw balance.
408ACCOUNT_MARGIN_NOT_ENOUGHaccount margin not enough.
501WALLET_INSUFFICIENT_BALANCEwallet insufficient balance
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

History
109 lines (102 loc) · 13.6 KB

File metadata and controls

109 lines (102 loc) · 13.6 KB

Contract Trading ERROR CODE

CODENAMEDESCRIPTION
NO_SUCH_ACCOUNT1000no such account.
DUPLICATE_ACCOUNT1001user account duplicate.
ACCOUNT_SETTLED_CURRENCY_NOT_MATCH1002account settled currency do not match.
ACCOUNT_IN_LIQUIDATION1003account in liquidation, not permitted.
MIN_LEVERAGE_RATIO1004leverage is too small
MAX_LEVERAGE_RATIO1005leverage is too large.
NEW_LEVERAGE_EQUAL_OLD1006leverage is equal old leverage.
MARGIN_NOT_ENOUGH1007margin not enough.
BALANCE_INSUFFICIENT1008balance insufficient.
RECHARGE_AMOUNT_ILLEGAL1009the amount of recharge is illegal.
BALANCE_CHANGE_AMOUNT_ILLEGAL1010the amount of balance change is illegal.
INVALID_MARGIN_CHANGE_AMOUNT1011invalid margin change amount.
ISOLATED_LEVERAGE_REJECT_WITH_POSITION1012leverage reduction is not supported in Isolated Margin Mode with open positions.
BALANCE_VERSION_NOT_EQUAL1013balance version not equal.
ACCOUNT_CAN_NOT_WITHDRAW1014account can not withdraw.
ACCOUNT_CAN_NOT_TRADE1015account can not trade.
ACCOUNT_CAN_ONLY_REDUCE1016account can only place reduce only order.
INVALID_FEE_RATE1017invalid fee rate.
INVALID_MAKER_FEE_RATE1018invalid maker fee rate.
INVALID_TAKER_FEE_RATE1019invalid taker fee rate.
UNABLE_UPDATE_POSITION_MODE1020unable to update account position mode with open order or positions
INVALID_SYMBOL_ID2000invalid symbol id.
DUPLICATE_SYMBOL_ID2001duplicate symbol id.
DUPLICATE_SYMBOL_NAME2002duplicate symbol name.
INVALID_NOTIONAL_LIMIT_COEF2003invalid notional limit coef
DUPLICATED_ASSET_NAME2004duplicated asset name
DUPLICATED_ASSET_ID2005duplicated asset id
INVALID_ASSET_ID2006invalid asset id.
ASSET_NOT_FOUND2007asset is not found
NO_SUCH_ORDER4000no such order.
PRICE_MISSING4001price is missing.
QTY_MISSING4002qty is missing.
INVALID_QTY4003qty is invalid.
INVALID_CURRENCY_ID4004invalid currency id.
UNABLE_TO_FILL4005unable to fill.
ORDER_WOULD_IMMEDIATELY_TRIGGER4006order would immediately trigger.
REDUCE_ONLY_REJECT4007reduce only reject.
POSITION_NOT_SUFFICIENT4008position is not sufficient.
REDUCE_ONLY_BUY_ERROR4009reduce only rejected, position more than 0 while buy.
REDUCE_ONLY_SELL_ERROR4010reduce only rejected, position less than 0 while sell.
MAX_OPEN_ORDER_LIMIT4011max open order limit.
MAX_CONDITIONAL_ORDER_LIMIT4012max conditional order limit.
INVALID_CONDITIONAL_ORDER4013conditional order is invalid.
CLI_ORD_ID_DUPLICATE4014clientOrderId is existed.
REDUCE_ONLY_ILLEGAL4015reduce only reject, order type not supported.
CANCEL_REJECTED4020unknown order sent.
UNKNOWN_UPDATE_TYPE4021unknown update type.
REDUCE_ONLY_MARGIN_CHECK_FAILED4030reduceOnly order Failed. please check your existing position and open orders.
UNABLE_TO_PARSE_ORDER4040unable to parse order.
MARKET_ORDER_REJECT4050the counter party's best price does not meet the PERCENT_PRICE filter limit.
ORDER_PRICE_RANGE_REJECT4051order price not in the proper range.
TRIGGER_PRICE_MISSING4060trigger price is missing.
NO_OPEN_ORDER4070no open orders.
ORDER_ID_DUPLICATE4071order id is existed.
ACCOUNT_TEMP_LOCKED4072account temporary locked.
INVALID_POSITION_SIDE5000positionSide is not valid.
POSITION_SIDE_NOT_MATCH5001positionSide does not match with userSetting.
ADD_ISOLATED_MARGIN_NO_POSITION_REJECT5002isolated position quantity should more than 0 when add margin.
NO_BALANCE_FOR_ADD_MARGIN5003No balance for add position margin.
POSITION_MARGIN_CAN_NOT_DECREASE5004Position margin can not decrease.
INVALID_POSITION_MARGIN_MODE5008invalid position margin mode
SNAPSHOT_REJECT5005Snapshot will not be executed on master instance.
SNAPSHOT_TRIGGER_TIME_REJECT5006Snapshot will not be executed on this trigger time.

Data parse and processing ERROR

CODENAMEDESCRIPTION
100TIMEOUTRequest time out.
200PRICE_LESS_THAN_ZEROPrice less than 0.
201PRICE_LESS_THAN_MIN_PRICEPrice less than min price.
202PRICE_GREATER_THAN_MAX_PRICEPrice greater than max price.
203PRICE_NOT_INCREASED_BY_TICK_SIZEPrice not increased by tick size.
204QTY_LESS_THAN_ZEROQuantity less than zero.
205QTY_GREATER_THAN_MAX_QTYQuantity greater than max quantity.
206QTY_LESS_THAN_MIN_QTYQuantity less than min quantity.
207QTY_NOT_INCREASED_BY_STEP_SIZEQty not increased by step size.
208TRIGGER_PRICE_LESS_THAN_ZEROTrigger price less than zero.
209TRIGGER_PRICE_GREATER_THAN_MAX_PRICETrigger price greater than max price.
210PRICE_TRIGGER_TYPE_IS_NULL_OR_ILLEGALPrice trigger type is null or illegal.
211NOT_SUPPORT_ORDER_TYPEnot support order type.
212INVALID_CL_ORD_ID_LENclient order length is not valid.
213INVALID_CL_ORD_IDclient order id is not valid.
214CL_ORD_ID_ILLEGAL_CHARSIllegal characters found in a parameter.
216MANDATORY_PARAM_EMPTY_OR_MALFORMEDMandatory parameter {%s} was not sent, was empty/null, or malformed.
217PARAM_NOT_REQUIREDParameter '%s' not required.
218INVALID_SIDEInvalid side.
219OPTIONAL_PARAMS_BAD_COMBOCombination of optional parameters '%s' invalid.
220INVALID_PRICE_RANGEprice range not valid
221QTY_TOO_LARGEQty too large.
250INVALID_CURRENCYinvalid currency.
300INVALID_SYMBOLinvalid symbol.
301SYMBOL_CAN_NOT_TRADINGsymbol can not trading now.
302SYMBOL_ORDER_CAN_NOT_CANCELsymbol order can not cancel now.
400INVALID_ACCOUNTinvalid account.
401ACCOUNT_CAN_NOT_TRADEaccount could not trade.
402INVALID_LEVERAGEinvalid leverage.
403INVALID_USER_IDinvalid user id.
405INVALID_WITHDRAW_BALANCEinvalid withdraw balance.
408ACCOUNT_MARGIN_NOT_ENOUGHaccount margin not enough.
501WALLET_INSUFFICIENT_BALANCEwallet insufficient balance
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length \u003e 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

History
109 lines (102 loc) · 13.6 KB

File metadata and controls

109 lines (102 loc) · 13.6 KB

Contract Trading ERROR CODE

CODENAMEDESCRIPTION
NO_SUCH_ACCOUNT1000no such account.
DUPLICATE_ACCOUNT1001user account duplicate.
ACCOUNT_SETTLED_CURRENCY_NOT_MATCH1002account settled currency do not match.
ACCOUNT_IN_LIQUIDATION1003account in liquidation, not permitted.
MIN_LEVERAGE_RATIO1004leverage is too small
MAX_LEVERAGE_RATIO1005leverage is too large.
NEW_LEVERAGE_EQUAL_OLD1006leverage is equal old leverage.
MARGIN_NOT_ENOUGH1007margin not enough.
BALANCE_INSUFFICIENT1008balance insufficient.
RECHARGE_AMOUNT_ILLEGAL1009the amount of recharge is illegal.
BALANCE_CHANGE_AMOUNT_ILLEGAL1010the amount of balance change is illegal.
INVALID_MARGIN_CHANGE_AMOUNT1011invalid margin change amount.
ISOLATED_LEVERAGE_REJECT_WITH_POSITION1012leverage reduction is not supported in Isolated Margin Mode with open positions.
BALANCE_VERSION_NOT_EQUAL1013balance version not equal.
ACCOUNT_CAN_NOT_WITHDRAW1014account can not withdraw.
ACCOUNT_CAN_NOT_TRADE1015account can not trade.
ACCOUNT_CAN_ONLY_REDUCE1016account can only place reduce only order.
INVALID_FEE_RATE1017invalid fee rate.
INVALID_MAKER_FEE_RATE1018invalid maker fee rate.
INVALID_TAKER_FEE_RATE1019invalid taker fee rate.
UNABLE_UPDATE_POSITION_MODE1020unable to update account position mode with open order or positions
INVALID_SYMBOL_ID2000invalid symbol id.
DUPLICATE_SYMBOL_ID2001duplicate symbol id.
DUPLICATE_SYMBOL_NAME2002duplicate symbol name.
INVALID_NOTIONAL_LIMIT_COEF2003invalid notional limit coef
DUPLICATED_ASSET_NAME2004duplicated asset name
DUPLICATED_ASSET_ID2005duplicated asset id
INVALID_ASSET_ID2006invalid asset id.
ASSET_NOT_FOUND2007asset is not found
NO_SUCH_ORDER4000no such order.
PRICE_MISSING4001price is missing.
QTY_MISSING4002qty is missing.
INVALID_QTY4003qty is invalid.
INVALID_CURRENCY_ID4004invalid currency id.
UNABLE_TO_FILL4005unable to fill.
ORDER_WOULD_IMMEDIATELY_TRIGGER4006order would immediately trigger.
REDUCE_ONLY_REJECT4007reduce only reject.
POSITION_NOT_SUFFICIENT4008position is not sufficient.
REDUCE_ONLY_BUY_ERROR4009reduce only rejected, position more than 0 while buy.
REDUCE_ONLY_SELL_ERROR4010reduce only rejected, position less than 0 while sell.
MAX_OPEN_ORDER_LIMIT4011max open order limit.
MAX_CONDITIONAL_ORDER_LIMIT4012max conditional order limit.
INVALID_CONDITIONAL_ORDER4013conditional order is invalid.
CLI_ORD_ID_DUPLICATE4014clientOrderId is existed.
REDUCE_ONLY_ILLEGAL4015reduce only reject, order type not supported.
CANCEL_REJECTED4020unknown order sent.
UNKNOWN_UPDATE_TYPE4021unknown update type.
REDUCE_ONLY_MARGIN_CHECK_FAILED4030reduceOnly order Failed. please check your existing position and open orders.
UNABLE_TO_PARSE_ORDER4040unable to parse order.
MARKET_ORDER_REJECT4050the counter party's best price does not meet the PERCENT_PRICE filter limit.
ORDER_PRICE_RANGE_REJECT4051order price not in the proper range.
TRIGGER_PRICE_MISSING4060trigger price is missing.
NO_OPEN_ORDER4070no open orders.
ORDER_ID_DUPLICATE4071order id is existed.
ACCOUNT_TEMP_LOCKED4072account temporary locked.
INVALID_POSITION_SIDE5000positionSide is not valid.
POSITION_SIDE_NOT_MATCH5001positionSide does not match with userSetting.
ADD_ISOLATED_MARGIN_NO_POSITION_REJECT5002isolated position quantity should more than 0 when add margin.
NO_BALANCE_FOR_ADD_MARGIN5003No balance for add position margin.
POSITION_MARGIN_CAN_NOT_DECREASE5004Position margin can not decrease.
INVALID_POSITION_MARGIN_MODE5008invalid position margin mode
SNAPSHOT_REJECT5005Snapshot will not be executed on master instance.
SNAPSHOT_TRIGGER_TIME_REJECT5006Snapshot will not be executed on this trigger time.

Data parse and processing ERROR

CODENAMEDESCRIPTION
100TIMEOUTRequest time out.
200PRICE_LESS_THAN_ZEROPrice less than 0.
201PRICE_LESS_THAN_MIN_PRICEPrice less than min price.
202PRICE_GREATER_THAN_MAX_PRICEPrice greater than max price.
203PRICE_NOT_INCREASED_BY_TICK_SIZEPrice not increased by tick size.
204QTY_LESS_THAN_ZEROQuantity less than zero.
205QTY_GREATER_THAN_MAX_QTYQuantity greater than max quantity.
206QTY_LESS_THAN_MIN_QTYQuantity less than min quantity.
207QTY_NOT_INCREASED_BY_STEP_SIZEQty not increased by step size.
208TRIGGER_PRICE_LESS_THAN_ZEROTrigger price less than zero.
209TRIGGER_PRICE_GREATER_THAN_MAX_PRICETrigger price greater than max price.
210PRICE_TRIGGER_TYPE_IS_NULL_OR_ILLEGALPrice trigger type is null or illegal.
211NOT_SUPPORT_ORDER_TYPEnot support order type.
212INVALID_CL_ORD_ID_LENclient order length is not valid.
213INVALID_CL_ORD_IDclient order id is not valid.
214CL_ORD_ID_ILLEGAL_CHARSIllegal characters found in a parameter.
216MANDATORY_PARAM_EMPTY_OR_MALFORMEDMandatory parameter {%s} was not sent, was empty/null, or malformed.
217PARAM_NOT_REQUIREDParameter '%s' not required.
218INVALID_SIDEInvalid side.
219OPTIONAL_PARAMS_BAD_COMBOCombination of optional parameters '%s' invalid.
220INVALID_PRICE_RANGEprice range not valid
221QTY_TOO_LARGEQty too large.
250INVALID_CURRENCYinvalid currency.
300INVALID_SYMBOLinvalid symbol.
301SYMBOL_CAN_NOT_TRADINGsymbol can not trading now.
302SYMBOL_ORDER_CAN_NOT_CANCELsymbol order can not cancel now.
400INVALID_ACCOUNTinvalid account.
401ACCOUNT_CAN_NOT_TRADEaccount could not trade.
402INVALID_LEVERAGEinvalid leverage.
403INVALID_USER_IDinvalid user id.
405INVALID_WITHDRAW_BALANCEinvalid withdraw balance.
408ACCOUNT_MARGIN_NOT_ENOUGHaccount margin not enough.
501WALLET_INSUFFICIENT_BALANCEwallet insufficient balance
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Latest commit

History

History
109 lines (102 loc) · 13.6 KB

File metadata and controls

109 lines (102 loc) · 13.6 KB

Contract Trading ERROR CODE

CODENAMEDESCRIPTION
NO_SUCH_ACCOUNT1000no such account.
DUPLICATE_ACCOUNT1001user account duplicate.
ACCOUNT_SETTLED_CURRENCY_NOT_MATCH1002account settled currency do not match.
ACCOUNT_IN_LIQUIDATION1003account in liquidation, not permitted.
MIN_LEVERAGE_RATIO1004leverage is too small
MAX_LEVERAGE_RATIO1005leverage is too large.
NEW_LEVERAGE_EQUAL_OLD1006leverage is equal old leverage.
MARGIN_NOT_ENOUGH1007margin not enough.
BALANCE_INSUFFICIENT1008balance insufficient.
RECHARGE_AMOUNT_ILLEGAL1009the amount of recharge is illegal.
BALANCE_CHANGE_AMOUNT_ILLEGAL1010the amount of balance change is illegal.
INVALID_MARGIN_CHANGE_AMOUNT1011invalid margin change amount.
ISOLATED_LEVERAGE_REJECT_WITH_POSITION1012leverage reduction is not supported in Isolated Margin Mode with open positions.
BALANCE_VERSION_NOT_EQUAL1013balance version not equal.
ACCOUNT_CAN_NOT_WITHDRAW1014account can not withdraw.
ACCOUNT_CAN_NOT_TRADE1015account can not trade.
ACCOUNT_CAN_ONLY_REDUCE1016account can only place reduce only order.
INVALID_FEE_RATE1017invalid fee rate.
INVALID_MAKER_FEE_RATE1018invalid maker fee rate.
INVALID_TAKER_FEE_RATE1019invalid taker fee rate.
UNABLE_UPDATE_POSITION_MODE1020unable to update account position mode with open order or positions
INVALID_SYMBOL_ID2000invalid symbol id.
DUPLICATE_SYMBOL_ID2001duplicate symbol id.
DUPLICATE_SYMBOL_NAME2002duplicate symbol name.
INVALID_NOTIONAL_LIMIT_COEF2003invalid notional limit coef
DUPLICATED_ASSET_NAME2004duplicated asset name
DUPLICATED_ASSET_ID2005duplicated asset id
INVALID_ASSET_ID2006invalid asset id.
ASSET_NOT_FOUND2007asset is not found
NO_SUCH_ORDER4000no such order.
PRICE_MISSING4001price is missing.
QTY_MISSING4002qty is missing.
INVALID_QTY4003qty is invalid.
INVALID_CURRENCY_ID4004invalid currency id.
UNABLE_TO_FILL4005unable to fill.
ORDER_WOULD_IMMEDIATELY_TRIGGER4006order would immediately trigger.
REDUCE_ONLY_REJECT4007reduce only reject.
POSITION_NOT_SUFFICIENT4008position is not sufficient.
REDUCE_ONLY_BUY_ERROR4009reduce only rejected, position more than 0 while buy.
REDUCE_ONLY_SELL_ERROR4010reduce only rejected, position less than 0 while sell.
MAX_OPEN_ORDER_LIMIT4011max open order limit.
MAX_CONDITIONAL_ORDER_LIMIT4012max conditional order limit.
INVALID_CONDITIONAL_ORDER4013conditional order is invalid.
CLI_ORD_ID_DUPLICATE4014clientOrderId is existed.
REDUCE_ONLY_ILLEGAL4015reduce only reject, order type not supported.
CANCEL_REJECTED4020unknown order sent.
UNKNOWN_UPDATE_TYPE4021unknown update type.
REDUCE_ONLY_MARGIN_CHECK_FAILED4030reduceOnly order Failed. please check your existing position and open orders.
UNABLE_TO_PARSE_ORDER4040unable to parse order.
MARKET_ORDER_REJECT4050the counter party's best price does not meet the PERCENT_PRICE filter limit.
ORDER_PRICE_RANGE_REJECT4051order price not in the proper range.
TRIGGER_PRICE_MISSING4060trigger price is missing.
NO_OPEN_ORDER4070no open orders.
ORDER_ID_DUPLICATE4071order id is existed.
ACCOUNT_TEMP_LOCKED4072account temporary locked.
INVALID_POSITION_SIDE5000positionSide is not valid.
POSITION_SIDE_NOT_MATCH5001positionSide does not match with userSetting.
ADD_ISOLATED_MARGIN_NO_POSITION_REJECT5002isolated position quantity should more than 0 when add margin.
NO_BALANCE_FOR_ADD_MARGIN5003No balance for add position margin.
POSITION_MARGIN_CAN_NOT_DECREASE5004Position margin can not decrease.
INVALID_POSITION_MARGIN_MODE5008invalid position margin mode
SNAPSHOT_REJECT5005Snapshot will not be executed on master instance.
SNAPSHOT_TRIGGER_TIME_REJECT5006Snapshot will not be executed on this trigger time.

Data parse and processing ERROR

CODENAMEDESCRIPTION
100TIMEOUTRequest time out.
200PRICE_LESS_THAN_ZEROPrice less than 0.
201PRICE_LESS_THAN_MIN_PRICEPrice less than min price.
202PRICE_GREATER_THAN_MAX_PRICEPrice greater than max price.
203PRICE_NOT_INCREASED_BY_TICK_SIZEPrice not increased by tick size.
204QTY_LESS_THAN_ZEROQuantity less than zero.
205QTY_GREATER_THAN_MAX_QTYQuantity greater than max quantity.
206QTY_LESS_THAN_MIN_QTYQuantity less than min quantity.
207QTY_NOT_INCREASED_BY_STEP_SIZEQty not increased by step size.
208TRIGGER_PRICE_LESS_THAN_ZEROTrigger price less than zero.
209TRIGGER_PRICE_GREATER_THAN_MAX_PRICETrigger price greater than max price.
210PRICE_TRIGGER_TYPE_IS_NULL_OR_ILLEGALPrice trigger type is null or illegal.
211NOT_SUPPORT_ORDER_TYPEnot support order type.
212INVALID_CL_ORD_ID_LENclient order length is not valid.
213INVALID_CL_ORD_IDclient order id is not valid.
214CL_ORD_ID_ILLEGAL_CHARSIllegal characters found in a parameter.
216MANDATORY_PARAM_EMPTY_OR_MALFORMEDMandatory parameter {%s} was not sent, was empty/null, or malformed.
217PARAM_NOT_REQUIREDParameter '%s' not required.
218INVALID_SIDEInvalid side.
219OPTIONAL_PARAMS_BAD_COMBOCombination of optional parameters '%s' invalid.
220INVALID_PRICE_RANGEprice range not valid
221QTY_TOO_LARGEQty too large.
250INVALID_CURRENCYinvalid currency.
300INVALID_SYMBOLinvalid symbol.
301SYMBOL_CAN_NOT_TRADINGsymbol can not trading now.
302SYMBOL_ORDER_CAN_NOT_CANCELsymbol order can not cancel now.
400INVALID_ACCOUNTinvalid account.
401ACCOUNT_CAN_NOT_TRADEaccount could not trade.
402INVALID_LEVERAGEinvalid leverage.
403INVALID_USER_IDinvalid user id.
405INVALID_WITHDRAW_BALANCEinvalid withdraw balance.
408ACCOUNT_MARGIN_NOT_ENOUGHaccount margin not enough.
501WALLET_INSUFFICIENT_BALANCEwallet insufficient balance
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

History
109 lines (102 loc) · 13.6 KB

File metadata and controls

109 lines (102 loc) · 13.6 KB

Contract Trading ERROR CODE

CODENAMEDESCRIPTION
NO_SUCH_ACCOUNT1000no such account.
DUPLICATE_ACCOUNT1001user account duplicate.
ACCOUNT_SETTLED_CURRENCY_NOT_MATCH1002account settled currency do not match.
ACCOUNT_IN_LIQUIDATION1003account in liquidation, not permitted.
MIN_LEVERAGE_RATIO1004leverage is too small
MAX_LEVERAGE_RATIO1005leverage is too large.
NEW_LEVERAGE_EQUAL_OLD1006leverage is equal old leverage.
MARGIN_NOT_ENOUGH1007margin not enough.
BALANCE_INSUFFICIENT1008balance insufficient.
RECHARGE_AMOUNT_ILLEGAL1009the amount of recharge is illegal.
BALANCE_CHANGE_AMOUNT_ILLEGAL1010the amount of balance change is illegal.
INVALID_MARGIN_CHANGE_AMOUNT1011invalid margin change amount.
ISOLATED_LEVERAGE_REJECT_WITH_POSITION1012leverage reduction is not supported in Isolated Margin Mode with open positions.
BALANCE_VERSION_NOT_EQUAL1013balance version not equal.
ACCOUNT_CAN_NOT_WITHDRAW1014account can not withdraw.
ACCOUNT_CAN_NOT_TRADE1015account can not trade.
ACCOUNT_CAN_ONLY_REDUCE1016account can only place reduce only order.
INVALID_FEE_RATE1017invalid fee rate.
INVALID_MAKER_FEE_RATE1018invalid maker fee rate.
INVALID_TAKER_FEE_RATE1019invalid taker fee rate.
UNABLE_UPDATE_POSITION_MODE1020unable to update account position mode with open order or positions
INVALID_SYMBOL_ID2000invalid symbol id.
DUPLICATE_SYMBOL_ID2001duplicate symbol id.
DUPLICATE_SYMBOL_NAME2002duplicate symbol name.
INVALID_NOTIONAL_LIMIT_COEF2003invalid notional limit coef
DUPLICATED_ASSET_NAME2004duplicated asset name
DUPLICATED_ASSET_ID2005duplicated asset id
INVALID_ASSET_ID2006invalid asset id.
ASSET_NOT_FOUND2007asset is not found
NO_SUCH_ORDER4000no such order.
PRICE_MISSING4001price is missing.
QTY_MISSING4002qty is missing.
INVALID_QTY4003qty is invalid.
INVALID_CURRENCY_ID4004invalid currency id.
UNABLE_TO_FILL4005unable to fill.
ORDER_WOULD_IMMEDIATELY_TRIGGER4006order would immediately trigger.
REDUCE_ONLY_REJECT4007reduce only reject.
POSITION_NOT_SUFFICIENT4008position is not sufficient.
REDUCE_ONLY_BUY_ERROR4009reduce only rejected, position more than 0 while buy.
REDUCE_ONLY_SELL_ERROR4010reduce only rejected, position less than 0 while sell.
MAX_OPEN_ORDER_LIMIT4011max open order limit.
MAX_CONDITIONAL_ORDER_LIMIT4012max conditional order limit.
INVALID_CONDITIONAL_ORDER4013conditional order is invalid.
CLI_ORD_ID_DUPLICATE4014clientOrderId is existed.
REDUCE_ONLY_ILLEGAL4015reduce only reject, order type not supported.
CANCEL_REJECTED4020unknown order sent.
UNKNOWN_UPDATE_TYPE4021unknown update type.
REDUCE_ONLY_MARGIN_CHECK_FAILED4030reduceOnly order Failed. please check your existing position and open orders.
UNABLE_TO_PARSE_ORDER4040unable to parse order.
MARKET_ORDER_REJECT4050the counter party's best price does not meet the PERCENT_PRICE filter limit.
ORDER_PRICE_RANGE_REJECT4051order price not in the proper range.
TRIGGER_PRICE_MISSING4060trigger price is missing.
NO_OPEN_ORDER4070no open orders.
ORDER_ID_DUPLICATE4071order id is existed.
ACCOUNT_TEMP_LOCKED4072account temporary locked.
INVALID_POSITION_SIDE5000positionSide is not valid.
POSITION_SIDE_NOT_MATCH5001positionSide does not match with userSetting.
ADD_ISOLATED_MARGIN_NO_POSITION_REJECT5002isolated position quantity should more than 0 when add margin.
NO_BALANCE_FOR_ADD_MARGIN5003No balance for add position margin.
POSITION_MARGIN_CAN_NOT_DECREASE5004Position margin can not decrease.
INVALID_POSITION_MARGIN_MODE5008invalid position margin mode
SNAPSHOT_REJECT5005Snapshot will not be executed on master instance.
SNAPSHOT_TRIGGER_TIME_REJECT5006Snapshot will not be executed on this trigger time.

Data parse and processing ERROR

CODENAMEDESCRIPTION
100TIMEOUTRequest time out.
200PRICE_LESS_THAN_ZEROPrice less than 0.
201PRICE_LESS_THAN_MIN_PRICEPrice less than min price.
202PRICE_GREATER_THAN_MAX_PRICEPrice greater than max price.
203PRICE_NOT_INCREASED_BY_TICK_SIZEPrice not increased by tick size.
204QTY_LESS_THAN_ZEROQuantity less than zero.
205QTY_GREATER_THAN_MAX_QTYQuantity greater than max quantity.
206QTY_LESS_THAN_MIN_QTYQuantity less than min quantity.
207QTY_NOT_INCREASED_BY_STEP_SIZEQty not increased by step size.
208TRIGGER_PRICE_LESS_THAN_ZEROTrigger price less than zero.
209TRIGGER_PRICE_GREATER_THAN_MAX_PRICETrigger price greater than max price.
210PRICE_TRIGGER_TYPE_IS_NULL_OR_ILLEGALPrice trigger type is null or illegal.
211NOT_SUPPORT_ORDER_TYPEnot support order type.
212INVALID_CL_ORD_ID_LENclient order length is not valid.
213INVALID_CL_ORD_IDclient order id is not valid.
214CL_ORD_ID_ILLEGAL_CHARSIllegal characters found in a parameter.
216MANDATORY_PARAM_EMPTY_OR_MALFORMEDMandatory parameter {%s} was not sent, was empty/null, or malformed.
217PARAM_NOT_REQUIREDParameter '%s' not required.
218INVALID_SIDEInvalid side.
219OPTIONAL_PARAMS_BAD_COMBOCombination of optional parameters '%s' invalid.
220INVALID_PRICE_RANGEprice range not valid
221QTY_TOO_LARGEQty too large.
250INVALID_CURRENCYinvalid currency.
300INVALID_SYMBOLinvalid symbol.
301SYMBOL_CAN_NOT_TRADINGsymbol can not trading now.
302SYMBOL_ORDER_CAN_NOT_CANCELsymbol order can not cancel now.
400INVALID_ACCOUNTinvalid account.
401ACCOUNT_CAN_NOT_TRADEaccount could not trade.
402INVALID_LEVERAGEinvalid leverage.
403INVALID_USER_IDinvalid user id.
405INVALID_WITHDRAW_BALANCEinvalid withdraw balance.
408ACCOUNT_MARGIN_NOT_ENOUGHaccount margin not enough.
501WALLET_INSUFFICIENT_BALANCEwallet insufficient balance
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

History
109 lines (102 loc) · 13.6 KB

File metadata and controls

109 lines (102 loc) · 13.6 KB

Contract Trading ERROR CODE

CODENAMEDESCRIPTION
NO_SUCH_ACCOUNT1000no such account.
DUPLICATE_ACCOUNT1001user account duplicate.
ACCOUNT_SETTLED_CURRENCY_NOT_MATCH1002account settled currency do not match.
ACCOUNT_IN_LIQUIDATION1003account in liquidation, not permitted.
MIN_LEVERAGE_RATIO1004leverage is too small
MAX_LEVERAGE_RATIO1005leverage is too large.
NEW_LEVERAGE_EQUAL_OLD1006leverage is equal old leverage.
MARGIN_NOT_ENOUGH1007margin not enough.
BALANCE_INSUFFICIENT1008balance insufficient.
RECHARGE_AMOUNT_ILLEGAL1009the amount of recharge is illegal.
BALANCE_CHANGE_AMOUNT_ILLEGAL1010the amount of balance change is illegal.
INVALID_MARGIN_CHANGE_AMOUNT1011invalid margin change amount.
ISOLATED_LEVERAGE_REJECT_WITH_POSITION1012leverage reduction is not supported in Isolated Margin Mode with open positions.
BALANCE_VERSION_NOT_EQUAL1013balance version not equal.
ACCOUNT_CAN_NOT_WITHDRAW1014account can not withdraw.
ACCOUNT_CAN_NOT_TRADE1015account can not trade.
ACCOUNT_CAN_ONLY_REDUCE1016account can only place reduce only order.
INVALID_FEE_RATE1017invalid fee rate.
INVALID_MAKER_FEE_RATE1018invalid maker fee rate.
INVALID_TAKER_FEE_RATE1019invalid taker fee rate.
UNABLE_UPDATE_POSITION_MODE1020unable to update account position mode with open order or positions
INVALID_SYMBOL_ID2000invalid symbol id.
DUPLICATE_SYMBOL_ID2001duplicate symbol id.
DUPLICATE_SYMBOL_NAME2002duplicate symbol name.
INVALID_NOTIONAL_LIMIT_COEF2003invalid notional limit coef
DUPLICATED_ASSET_NAME2004duplicated asset name
DUPLICATED_ASSET_ID2005duplicated asset id
INVALID_ASSET_ID2006invalid asset id.
ASSET_NOT_FOUND2007asset is not found
NO_SUCH_ORDER4000no such order.
PRICE_MISSING4001price is missing.
QTY_MISSING4002qty is missing.
INVALID_QTY4003qty is invalid.
INVALID_CURRENCY_ID4004invalid currency id.
UNABLE_TO_FILL4005unable to fill.
ORDER_WOULD_IMMEDIATELY_TRIGGER4006order would immediately trigger.
REDUCE_ONLY_REJECT4007reduce only reject.
POSITION_NOT_SUFFICIENT4008position is not sufficient.
REDUCE_ONLY_BUY_ERROR4009reduce only rejected, position more than 0 while buy.
REDUCE_ONLY_SELL_ERROR4010reduce only rejected, position less than 0 while sell.
MAX_OPEN_ORDER_LIMIT4011max open order limit.
MAX_CONDITIONAL_ORDER_LIMIT4012max conditional order limit.
INVALID_CONDITIONAL_ORDER4013conditional order is invalid.
CLI_ORD_ID_DUPLICATE4014clientOrderId is existed.
REDUCE_ONLY_ILLEGAL4015reduce only reject, order type not supported.
CANCEL_REJECTED4020unknown order sent.
UNKNOWN_UPDATE_TYPE4021unknown update type.
REDUCE_ONLY_MARGIN_CHECK_FAILED4030reduceOnly order Failed. please check your existing position and open orders.
UNABLE_TO_PARSE_ORDER4040unable to parse order.
MARKET_ORDER_REJECT4050the counter party's best price does not meet the PERCENT_PRICE filter limit.
ORDER_PRICE_RANGE_REJECT4051order price not in the proper range.
TRIGGER_PRICE_MISSING4060trigger price is missing.
NO_OPEN_ORDER4070no open orders.
ORDER_ID_DUPLICATE4071order id is existed.
ACCOUNT_TEMP_LOCKED4072account temporary locked.
INVALID_POSITION_SIDE5000positionSide is not valid.
POSITION_SIDE_NOT_MATCH5001positionSide does not match with userSetting.
ADD_ISOLATED_MARGIN_NO_POSITION_REJECT5002isolated position quantity should more than 0 when add margin.
NO_BALANCE_FOR_ADD_MARGIN5003No balance for add position margin.
POSITION_MARGIN_CAN_NOT_DECREASE5004Position margin can not decrease.
INVALID_POSITION_MARGIN_MODE5008invalid position margin mode
SNAPSHOT_REJECT5005Snapshot will not be executed on master instance.
SNAPSHOT_TRIGGER_TIME_REJECT5006Snapshot will not be executed on this trigger time.

Data parse and processing ERROR

CODENAMEDESCRIPTION
100TIMEOUTRequest time out.
200PRICE_LESS_THAN_ZEROPrice less than 0.
201PRICE_LESS_THAN_MIN_PRICEPrice less than min price.
202PRICE_GREATER_THAN_MAX_PRICEPrice greater than max price.
203PRICE_NOT_INCREASED_BY_TICK_SIZEPrice not increased by tick size.
204QTY_LESS_THAN_ZEROQuantity less than zero.
205QTY_GREATER_THAN_MAX_QTYQuantity greater than max quantity.
206QTY_LESS_THAN_MIN_QTYQuantity less than min quantity.
207QTY_NOT_INCREASED_BY_STEP_SIZEQty not increased by step size.
208TRIGGER_PRICE_LESS_THAN_ZEROTrigger price less than zero.
209TRIGGER_PRICE_GREATER_THAN_MAX_PRICETrigger price greater than max price.
210PRICE_TRIGGER_TYPE_IS_NULL_OR_ILLEGALPrice trigger type is null or illegal.
211NOT_SUPPORT_ORDER_TYPEnot support order type.
212INVALID_CL_ORD_ID_LENclient order length is not valid.
213INVALID_CL_ORD_IDclient order id is not valid.
214CL_ORD_ID_ILLEGAL_CHARSIllegal characters found in a parameter.
216MANDATORY_PARAM_EMPTY_OR_MALFORMEDMandatory parameter {%s} was not sent, was empty/null, or malformed.
217PARAM_NOT_REQUIREDParameter '%s' not required.
218INVALID_SIDEInvalid side.
219OPTIONAL_PARAMS_BAD_COMBOCombination of optional parameters '%s' invalid.
220INVALID_PRICE_RANGEprice range not valid
221QTY_TOO_LARGEQty too large.
250INVALID_CURRENCYinvalid currency.
300INVALID_SYMBOLinvalid symbol.
301SYMBOL_CAN_NOT_TRADINGsymbol can not trading now.
302SYMBOL_ORDER_CAN_NOT_CANCELsymbol order can not cancel now.
400INVALID_ACCOUNTinvalid account.
401ACCOUNT_CAN_NOT_TRADEaccount could not trade.
402INVALID_LEVERAGEinvalid leverage.
403INVALID_USER_IDinvalid user id.
405INVALID_WITHDRAW_BALANCEinvalid withdraw balance.
408ACCOUNT_MARGIN_NOT_ENOUGHaccount margin not enough.
501WALLET_INSUFFICIENT_BALANCEwallet insufficient balance
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Latest commit

History

History
109 lines (102 loc) · 13.6 KB

File metadata and controls

109 lines (102 loc) · 13.6 KB

Contract Trading ERROR CODE

CODENAMEDESCRIPTION
NO_SUCH_ACCOUNT1000no such account.
DUPLICATE_ACCOUNT1001user account duplicate.
ACCOUNT_SETTLED_CURRENCY_NOT_MATCH1002account settled currency do not match.
ACCOUNT_IN_LIQUIDATION1003account in liquidation, not permitted.
MIN_LEVERAGE_RATIO1004leverage is too small
MAX_LEVERAGE_RATIO1005leverage is too large.
NEW_LEVERAGE_EQUAL_OLD1006leverage is equal old leverage.
MARGIN_NOT_ENOUGH1007margin not enough.
BALANCE_INSUFFICIENT1008balance insufficient.
RECHARGE_AMOUNT_ILLEGAL1009the amount of recharge is illegal.
BALANCE_CHANGE_AMOUNT_ILLEGAL1010the amount of balance change is illegal.
INVALID_MARGIN_CHANGE_AMOUNT1011invalid margin change amount.
ISOLATED_LEVERAGE_REJECT_WITH_POSITION1012leverage reduction is not supported in Isolated Margin Mode with open positions.
BALANCE_VERSION_NOT_EQUAL1013balance version not equal.
ACCOUNT_CAN_NOT_WITHDRAW1014account can not withdraw.
ACCOUNT_CAN_NOT_TRADE1015account can not trade.
ACCOUNT_CAN_ONLY_REDUCE1016account can only place reduce only order.
INVALID_FEE_RATE1017invalid fee rate.
INVALID_MAKER_FEE_RATE1018invalid maker fee rate.
INVALID_TAKER_FEE_RATE1019invalid taker fee rate.
UNABLE_UPDATE_POSITION_MODE1020unable to update account position mode with open order or positions
INVALID_SYMBOL_ID2000invalid symbol id.
DUPLICATE_SYMBOL_ID2001duplicate symbol id.
DUPLICATE_SYMBOL_NAME2002duplicate symbol name.
INVALID_NOTIONAL_LIMIT_COEF2003invalid notional limit coef
DUPLICATED_ASSET_NAME2004duplicated asset name
DUPLICATED_ASSET_ID2005duplicated asset id
INVALID_ASSET_ID2006invalid asset id.
ASSET_NOT_FOUND2007asset is not found
NO_SUCH_ORDER4000no such order.
PRICE_MISSING4001price is missing.
QTY_MISSING4002qty is missing.
INVALID_QTY4003qty is invalid.
INVALID_CURRENCY_ID4004invalid currency id.
UNABLE_TO_FILL4005unable to fill.
ORDER_WOULD_IMMEDIATELY_TRIGGER4006order would immediately trigger.
REDUCE_ONLY_REJECT4007reduce only reject.
POSITION_NOT_SUFFICIENT4008position is not sufficient.
REDUCE_ONLY_BUY_ERROR4009reduce only rejected, position more than 0 while buy.
REDUCE_ONLY_SELL_ERROR4010reduce only rejected, position less than 0 while sell.
MAX_OPEN_ORDER_LIMIT4011max open order limit.
MAX_CONDITIONAL_ORDER_LIMIT4012max conditional order limit.
INVALID_CONDITIONAL_ORDER4013conditional order is invalid.
CLI_ORD_ID_DUPLICATE4014clientOrderId is existed.
REDUCE_ONLY_ILLEGAL4015reduce only reject, order type not supported.
CANCEL_REJECTED4020unknown order sent.
UNKNOWN_UPDATE_TYPE4021unknown update type.
REDUCE_ONLY_MARGIN_CHECK_FAILED4030reduceOnly order Failed. please check your existing position and open orders.
UNABLE_TO_PARSE_ORDER4040unable to parse order.
MARKET_ORDER_REJECT4050the counter party's best price does not meet the PERCENT_PRICE filter limit.
ORDER_PRICE_RANGE_REJECT4051order price not in the proper range.
TRIGGER_PRICE_MISSING4060trigger price is missing.
NO_OPEN_ORDER4070no open orders.
ORDER_ID_DUPLICATE4071order id is existed.
ACCOUNT_TEMP_LOCKED4072account temporary locked.
INVALID_POSITION_SIDE5000positionSide is not valid.
POSITION_SIDE_NOT_MATCH5001positionSide does not match with userSetting.
ADD_ISOLATED_MARGIN_NO_POSITION_REJECT5002isolated position quantity should more than 0 when add margin.
NO_BALANCE_FOR_ADD_MARGIN5003No balance for add position margin.
POSITION_MARGIN_CAN_NOT_DECREASE5004Position margin can not decrease.
INVALID_POSITION_MARGIN_MODE5008invalid position margin mode
SNAPSHOT_REJECT5005Snapshot will not be executed on master instance.
SNAPSHOT_TRIGGER_TIME_REJECT5006Snapshot will not be executed on this trigger time.

Data parse and processing ERROR

CODENAMEDESCRIPTION
100TIMEOUTRequest time out.
200PRICE_LESS_THAN_ZEROPrice less than 0.
201PRICE_LESS_THAN_MIN_PRICEPrice less than min price.
202PRICE_GREATER_THAN_MAX_PRICEPrice greater than max price.
203PRICE_NOT_INCREASED_BY_TICK_SIZEPrice not increased by tick size.
204QTY_LESS_THAN_ZEROQuantity less than zero.
205QTY_GREATER_THAN_MAX_QTYQuantity greater than max quantity.
206QTY_LESS_THAN_MIN_QTYQuantity less than min quantity.
207QTY_NOT_INCREASED_BY_STEP_SIZEQty not increased by step size.
208TRIGGER_PRICE_LESS_THAN_ZEROTrigger price less than zero.
209TRIGGER_PRICE_GREATER_THAN_MAX_PRICETrigger price greater than max price.
210PRICE_TRIGGER_TYPE_IS_NULL_OR_ILLEGALPrice trigger type is null or illegal.
211NOT_SUPPORT_ORDER_TYPEnot support order type.
212INVALID_CL_ORD_ID_LENclient order length is not valid.
213INVALID_CL_ORD_IDclient order id is not valid.
214CL_ORD_ID_ILLEGAL_CHARSIllegal characters found in a parameter.
216MANDATORY_PARAM_EMPTY_OR_MALFORMEDMandatory parameter {%s} was not sent, was empty/null, or malformed.
217PARAM_NOT_REQUIREDParameter '%s' not required.
218INVALID_SIDEInvalid side.
219OPTIONAL_PARAMS_BAD_COMBOCombination of optional parameters '%s' invalid.
220INVALID_PRICE_RANGEprice range not valid
221QTY_TOO_LARGEQty too large.
250INVALID_CURRENCYinvalid currency.
300INVALID_SYMBOLinvalid symbol.
301SYMBOL_CAN_NOT_TRADINGsymbol can not trading now.
302SYMBOL_ORDER_CAN_NOT_CANCELsymbol order can not cancel now.
400INVALID_ACCOUNTinvalid account.
401ACCOUNT_CAN_NOT_TRADEaccount could not trade.
402INVALID_LEVERAGEinvalid leverage.
403INVALID_USER_IDinvalid user id.
405INVALID_WITHDRAW_BALANCEinvalid withdraw balance.
408ACCOUNT_MARGIN_NOT_ENOUGHaccount margin not enough.
501WALLET_INSUFFICIENT_BALANCEwallet insufficient balance