Mudança de base
exchange.IO("base", "https://api.fcoinjp.com")
Como a FCOIN e a FCOINJP usam a mesma API, é possível trocar o endereço de base diretamente.
Testes
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())
}
# 需要使用最新托管者!
# 需要使用最新托管者!
# 测试是可以使用的,在初期使用时,需要注意,以防止 交易所突然修改 API 接口。