
Wenn Sie eine Exchange-API aufrufen, die keine Authentifizierung erfordert (z. B. eine API für Geschäftsinformationen, die nicht mit Kontoinformationen verbunden sind), beispielsweise:
https://www.okcoin.com/api/v1/future_estimated_price.do?symbol=btc_usd // 获取交割预估价
HttpQuery(”https://www.okcoin.com/api/v1/future_estimated_price.do?symbol=btc_usd”)
https://www.okcoin.com/api/v1/future_hold_amount.do?symbol=btc_usd&contract_type=next_week // 获取合约持仓量
HttpQuery(”https://www.okcoin.com/api/v1/future_hold_amount.do?symbol=btc_usd&contract_type=next_week”)
Die gewonnene Zeichenfolge ist im JSON-Format und kann mit der JSON.parse-Funktion als Objekt analysiert werden, um die Daten zu erhalten.

Die Exchange-API, die die IO-Funktion aufruft, muss verifiziert werden (nicht unterstützt). Die API, die direkt mit HttpQuery zugänglich ist.
Für weitere Informationen siehe die API-Dokumentation.