The resource loading... loading...

Support for FCOINJP testing

Author: Inventors quantify - small dreams, Created: 2018-10-31 11:54:42, Updated: 2018-10-31 12:25:37

Support for FCOINJP testing

  • Switching base addresses

    exchange.IO("base", "https://api.fcoinjp.com")
    

    Since the FCOIN exchange and FCOINJP use the same API system, it is possible to directly switch base addresses.

  • Testing

    function main(){
      exchange.IO("base", "https://api.fcoinjp.com")
      var account = exchange.GetAccount()
      Log(account)
      
      var id = exchange.Sell(6, 0.5)
      Sleep(1000)
      Log(exchange.GetOrders(), "#FF0000")
      Sleep(1000)
      Log(exchange.GetAccount())
      Sleep(10000)
      exchange.CancelOrder(id)
      Sleep(1000)
      Log(exchange.GetOrders())
      Sleep(1000)
      Log(exchange.GetAccount())
    }
    

    img

  • Be careful.

    # 需要使用最新托管者!
    # 需要使用最新托管者!
    # 测试是可以使用的,在初期使用时,需要注意,以防止 交易所突然修改 API 接口。
    

More