有办法在yobit上获得所有订单吗?

时间:2017-10-22 18:42:34

标签: api

Yobit api说我必须在获取数据之前指定该对。

https://yobit.net/en/api/

问题是在yobit中有很多对。这意味着我需要多次打电话给api来获得所有这对。

必须有更好的方法。是吗?

这是当前的代码

   Protected Overrides Function getJson(method As String, otherParameters As Tuple(Of String, String)()) As String
        Dim nonce = exchanges.getNonce().ToString
        Dim content = hashObject("", nonce, "method=" + method + "&nonce=")
        For Each param In otherParameters
            content += "&" + param.Item1 + "=" + param.Item2
        Next
        'content = "method=ActiveOrders&nonce=34697114&pair=html5_btc"
        Dim sighash = computeSig(content)
        Dim result = CookieAwareWebClient.downloadString1("https://yobit.net/tapi/", content, {Tuple.Create("Key", _apiKey), Tuple.Create("Sign", sighash), Tuple.Create("Content-Type", "application/x-www-form-urlencoded")})

        Return result
    End Function

工作类型。只是因为我很难理解为什么我应该拨打1000次API以获取我帐户的所有订单?

1 个答案:

答案 0 :(得分:2)

您可以先调用getInfo端点来减少请求。比较fundsfunds_incl_orders中的余额,以查找有效订单的货币。

相关问题