0bps

Strategy vault / Tools & templates

Example of Fund Transfer Between Huobi Futures Currency Accounts

JavaScript strategy by 发明者量化-小小梦.

Author
发明者量化-小小梦
Complexity
Starter · 16 lines
Parameters
0

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

Source JavaScript

function main() {
    // API Interface description:
    // https://api.huobi.pro
    // POST /v1/futures/transfer
    // params    currency e.g. btc
    //           amount
    //           type futures-to-pro
    
    Log(exchange.GetAccount())
    var ret = exchange.IO("api", "POST", "/v1/futures/transfer", "currency=ltc&amount=0.1&type=pro-to-futures")   // TestingLTC , Spot to futures
    Log("ret", ret)
    
    /* ret
    ret {"status":"ok","data":25669845}
    */
}

Published by 发明者量化-小小梦 on the FMZ strategy square · last modified 2019-05-20. 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/Example-of-Fund-Transfer-Between-Huobi-Futures-Currency-Accounts.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