Questions tagged [huobi]

9 questions
1
vote
1 answer

huobi working python 3.6 example (including signature)

Working example to generate a valid url (including signature) for the Huobi API. In the Huobi API documenation there is no explicit example that allows you to verify your signature creation method step by step. My intention is to create that here,…
GwiHwan Go
  • 51
  • 3
0
votes
0 answers

Transferring TON Crystals from Tonkeeper App to Huobi via API

I'm trying to figure out how to transfer TON Crystals (TONs) from the Tonkeeper App to Huobi using their respective APIs and JavaScript. I'm relatively new to working with blockchain-related transactions. Specifically, I'd like to know the…
0
votes
0 answers

Error Huobi Api "err-code": "api-signature-not-valid", "err-msg": "Signature not valid: Incorrect Access key [Access key\u9519\u8bef]"

I have the following code: import hmac import hashlib import json import time from urllib.parse import urlencode import requests access_key = 'cb3e8274-bg2rg65tmn-02ar6g57-c7a5' secret_key = '365ca06e-72fege10-f11218c6-1423f' def…
0
votes
1 answer

How to place this (from web GUI) stop loss order to close short position on huobi using rest API?

I'm trying to place a stop loss to that should trigger to "close" a short position on Huobi via the rest API. This is the position currently, about 3.4% in profit: The current order book looks like so: Via the web interface I can easily enter a…
Ytsen de Boer
  • 2,797
  • 2
  • 25
  • 36
0
votes
0 answers

huobi websocket returns trade with direction of empty string, which side is this trade?

Following huobi API, I subscribe to the trade.detail channel, and among one day data, I got one entry like this: { "ch": "market.BTC-USDT.trade.detail", "ts": 1666158766936, "tick": { "id": 118671341528, …
Xiang Zhang
  • 2,831
  • 20
  • 40
0
votes
2 answers

How can i connect Huobi websocket from client browser

When I try to connect my React client to Huobi websocket, connection immediately closing. In nodejs I can connect to Huobi websocket without any configuration. I've tried at postman and it connects. Tried at…
0
votes
1 answer

Why is C# WebSocket Ping not received by Huobi server?

I am trying to stream bitcoin prices from the Huobi USDT Swaps but my ping/pong mechanism is not working so Huobi is always closing the connection after 30 seconds. This is what the documentation says…
0
votes
1 answer

Python request post vs get, API key example

I'm working on huobi API, but I have a problem on sending signature. I got the data from 'GET' method, but I don't know how I do this with 'POST' method. I need help. Here is the description of the…
GwiHwan Go
  • 51
  • 3
-1
votes
1 answer

UNABLE TO UNSUBSCRIBE HUOBI WEBSOCKET TICKER SUBSCRIPTION

I'm trying to unsubscribe from a HUOBI websocket server but the server is keep sending me the datas. I contacted to support but so far there is no news. Is there anyone who is achieved to unsubscribe? As far as I checked from their API, this is what…