0bps

Strategy vault / Tools & templates

Binance Account Cross Transfer Small Tool

JavaScript strategy by wenzhang..

Author
wenzhang.
Complexity
Starter · 29 lines
Parameters
0

The original spec has no written description. Read the source below.

Source JavaScript

function userUniversalTransfer(type, amount) {
    let ret = null;
    const param =
      "type=" +
      type +
      "&asset=USDT" +
      "&amount=" +
      amount.toString() +
      "&timestamp=" +
      new Date().getTime().toString();

    exchange.SetBase("https://api.binance.com");
    ret = exchange.IO("api", "POST", "/sapi/v1/asset/transfer", param);
    exchange.SetBase("https://fapi.binance.com");

    if (ret) {
      switch (type) {
        case "MAIN_UMFUTURE":
          Log(`Already ${amount.toFixed(3)} USDT Transferred from spot walletUBase contract wallet`);
          break;

        case "UMFUTURE_MAIN":
          Log(`Already ${amount.toFixed(3)} USDT fromUTransfer contract wallet to spot wallet`);
          break;
      }
    } else {
      Log("Fund transfer failed!");
    }
  }

Published by wenzhang. on the FMZ strategy square · last modified 2024-03-28. 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 tested, production-ready module from strategies/Binance-Account-Cross-Transfer-Small-Tool.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