question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2 Problems:

  1. the balance fetched still is 0, in fact the knc coin count is 999.
  2. when I create an order, it returns the err message (login required):
huobipro POST https://api.huobi.pro/v1/order/orders/place 
Request:
 { 'Content-Type': 'application/json' } {"account-id":136075,"amount":"7.0000000000","symbol":"kncbtc","type":"sell-limit","price":"0.0001530000"}
huobipro POST https://api.huobi.pro/v1/order/orders/place 
Response:
{"status":"error","err-code":"login-required","err-msg":"Login required.","data":null}
 

huobipro GET https://api.huobi.pro/v1/common/symbols 
Request:
 undefined undefined
huobipro GET https://api.huobi.pro/v1/common/symbols 
Response:
{"status":"ok","data":[{"base-currency":"bcc","quote-currency":"btc","price-precision":6,"amount-precision":4},{"base-currency":"eth","quote-currency":"btc","price-precision":6,"amount-precision":4},{"base-currency":"ltc","quote-currency":"btc","price-precision":6,"amount-precision":4},{"base-currency":"etc","quote-currency":"btc","price-precision":6,"amount-precision":4},{"base-currency":"bt1","quote-currency":"btc","price-precision":6,"amount-precision":4},{"base-currency":"bt2","quote-currency":"btc","price-precision":6,"amount-precision":4},{"base-currency":"btc","quote-currency":"usdt","price-precision":2,"amount-precision":4},{"base-currency":"eth","quote-currency":"usdt","price-precision":2,"amount-precision":4},{"base-currency":"ltc","quote-currency":"usdt","price-precision":2,"amount-precision":4},{"base-currency":"etc","quote-currency":"usdt","price-precision":2,"amount-precision":4},{"base-currency":"bcc","quote-currency":"usdt","price-precision":2,"amount-precision":4},{"base-currency":"knc","quote-currency":"btc","price-precision":8,"amount-precision":0},{"base-currency":"zrx","quote-currency":"btc","price-precision":8,"amount-precision":0},{"base-currency":"ast","quote-currency":"btc","price-precision":8,"amount-precision":0}]}
huobipro GET https://api.huobi.pro/v1/account/accounts?AccessKeyId=8d5c42c9-bac6bfe1-4b7d4e77-5f8b4&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2017-11-01T17%3A52%3A35&Signature=********************** 
Request:
 undefined undefined
huobipro GET https://api.huobi.pro/v1/account/accounts?AccessKeyId=8d5c42c9-bac6bfe1-4b7d4e77-5f8b4&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2017-11-01T17%3A52%3A35&Signature=********************** 
Response:
{"status":"ok","data":[{"id":136075,"type":"spot","state":"working"}]}
huobipro GET https://api.huobi.pro/v1/account/accounts/136075/balance?AccessKeyId=8d5c42c9-bac6bfe1-4b7d4e77-5f8b4&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2017-11-01T17%3A52%3A36&Signature=************************************** **********************  
Request:
 undefined undefined
huobipro GET https://api.huobi.pro/v1/account/accounts/136075/balance?AccessKeyId=8d5c42c9-bac6bfe1-4b7d4e77-5f8b4&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2017-11-01T17%3A52%3A36&Signature=***************************** 
Response:
{"status":"ok","data":{"id":136075,"type":"spot","state":"working","list":[{"currency":"ast","type":"trade","balance":"0.000000000000000000"},{"currency":"ast","type":"frozen","balance":"0.000000000000000000"},{"currency":"bcc","type":"trade","balance":"0.003500000000000000"},{"currency":"bcc","type":"frozen","balance":"0.000000000000000000"},{"currency":"bt1","type":"trade","balance":"0.000000000000000000"},{"currency":"bt1","type":"frozen","balance":"0.000000000000000000"},{"currency":"bt2","type":"trade","balance":"0.000000000000000000"},{"currency":"bt2","type":"frozen","balance":"0.000000000000000000"},{"currency":"btc","type":"trade","balance":"0.000000000000000000"},{"currency":"btc","type":"frozen","balance":"0.000000000000000000"},{"currency":"etc","type":"trade","balance":"0.000000000000000000"},{"currency":"etc","type":"frozen","balance":"0.000000000000000000"},{"currency":"eth","type":"trade","balance":"0.000000000000000000"},{"currency":"eth","type":"frozen","balance":"0.000000000000000000"},{"currency":"knc","type":"trade","balance":"999.000000000000000000"},{"currency":"knc","type":"frozen","balance":"0.000000000000000000"},{"currency":"ltc","type":"trade","balance":"0.000000000000000000"},{"currency":"ltc","type":"frozen","balance":"0.000000000000000000"},{"currency":"usdt","type":"trade","balance":"0.000000000000000000"},{"currency":"usdt","type":"frozen","balance":"0.000000000000000000"},{"currency":"zrx","type":"trade","balance":"0.000000000000000000"},{"currency":"zrx","type":"frozen","balance":"0.000000000000000000"}]}}
{ info: 
   { status: 'ok',
     data: { id: 136075, type: 'spot', state: 'working', list: [Array] } },
  AST: { free: 0, used: 0, total: 0 },
  BCH: { free: 0, used: 0, total: 0 },
  BT1: { free: 0, used: 0, total: 0 },
  BT2: { free: 0, used: 0, total: 0 },
  BTC: { free: 0, used: 0, total: 0 },
  ETC: { free: 0, used: 0, total: 0 },
  ETH: { free: 0, used: 0, total: 0 },
  KNC: { free: 0, used: 0, total: 0 },
  LTC: { free: 0, used: 0, total: 0 },
  USDT: { free: 0, used: 0, total: 0 },
  ZRX: { free: 0, used: 0, total: 0 },
  free: 
   { AST: 0,
     BCH: 0,
     BT1: 0,
     BT2: 0,
     BTC: 0,
     ETC: 0,
     ETH: 0,
     KNC: 0,
     LTC: 0,
     USDT: 0,
     ZRX: 0 },
  used: 
   { AST: 0,
     BCH: 0,
     BT1: 0,
     BT2: 0,
     BTC: 0,
     ETC: 0,
     ETH: 0,
     KNC: 0,
     LTC: 0,
     USDT: 0,
     ZRX: 0 },
  total: 
   { AST: 0,
     BCH: 0,
     BT1: 0,
     BT2: 0,
     BTC: 0,
     ETC: 0,
     ETH: 0,
     KNC: 0,
     LTC: 0,
     USDT: 0,
     ZRX: 0 } }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
zlsttcommented, Nov 3, 2017

It works! Thanks

0reactions
kroitorcommented, Nov 2, 2017

@zlstt ok, I fixed for precision as well in 1.9.340. Would be happy if you report back whether it now works for you normally or not. Thx!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Huobi Pro App Not Working Problem - YouTube
HuobiPro #NotOpen #NotWorking #ProblemIn this video Tutorial, i will show you How to Fix Huobi Pro App Not Working Problem in Android &...
Read more >
What is Complain and How Does It Work? - Huobi
If you have a dispute with the other party during Huobi P2P transactions, you can choose to initiate a complaint on the order...
Read more >
Having problems with your deposit? - Huobi
Having problems with your deposit?Please seek immediate assistance from our “Live Chat” support. Alternatively, you may write in to support@huobi.com with ...
Read more >
Resolving 2FA Issues-Huobi-Official Huobi Website
Mobile SMS 2FA Issues. If you are unable to receive the SMS verification on your mobile or you have lost your phone, please...
Read more >
Reasons and Solutions for Restricted Huobi Accounts-Huobi ...
The account can be unfrozen if the submitted information has no issue after being reviewed and approved. Restriction by The Judicial.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found