0bps

Strategy vault / Other

OK Confirms That the Trading Pair Cannot Be Withdrawn

For personal use, simply list all coins currently non-withdrawable on OKEX; sometimes quite useful, requires manual retrieval

JavaScriptOther
Author
daniaoren
Complexity
Starter · 23 lines
Parameters
0

For personal use, simply list all coins currently non-withdrawable on OKEX; sometimes quite useful, requires manual retrieval

Source JavaScript

function main() {
    var results = exchange.IO("api", "GET", "/api/account/v3/currencies", "" , "");
    var blacklist = []
    i = 0;
    var statusMsg = '';
	while (true)
    {
        if (results[i]["can_withdraw"] == "0"){
            Log(results[i]["currency"],"|",results[i]["name"], results[i]["can_deposit"]);
            statusMsg += results[i]["currency"] + " | " + results[i]["name"] + ' ' + results[i]["can_deposit"] + '\n';
            blacklist.push(results[i]);
        }
        i++;
        if (i >= results.length){
        	break;
        }
    }
    Log(blacklist.length);
    statusMsg = blacklist.length + '\n' + statusMsg;
    LogStatus(statusMsg);
    return blacklist;

}

Published by daniaoren on the FMZ strategy square · last modified 2021-02-10. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.

Build this with AgenKit

A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.

in Claude Code, Cursor, Codex & 4 more
/agenkit build a production-grade trading bot with a backtest engine, risk controls and paper trading by default from strategies/OK-Confirms-That-the-Trading-Pair-Cannot-Be-Withdrawn.md
  1. npx agenkit install engineering-kit in your project
  2. Paste the command into your agent and approve each phase
  3. Get tests, backtest, risk controls and a paper-trading switch

Understand it first

Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.

Related specs

esc

Try , , or .

↑↓ move↵ open