资源加载中... loading...

火币期货币币账户间资金划转范例

Author: 发明者量化-小小梦, Date: 2019-05-20 17:00:48
Tags: Tool


function main() {
    // API 接口描述:
    // 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")   // 测试的是LTC , 币币转期货
    Log("ret", ret)
    
    /* ret
    ret {"status":"ok","data":25669845}
    */
}
template: strategy.tpl:40:21: executing "strategy.tpl" at <.api.GetStrategyListByName>: wrong number of args for GetStrategyListByName: want 7 got 6