Comments (9)
接口为:api.huobi.de.com 下单 参数 Source 不管写什么都返回错误代码:
{"status":"error","err-code":"order-source-invalid","err-msg":"invalid order source ***
","data":null}
***-->spot-api 、api等等
from huobi_golang.
@wx85278161 按您的下单参数设置了,并没有重现出问题。您的account-id用的是现货账户的account-id吗?
from huobi_golang.
@wx85278161 按您的下单参数设置了,并没有重现出问题。您的account-id用的是现货账户的account-id吗?
是现货账号的, 现在的错误提示是余额不够,但使用接口查到有余额的:
{POST https://api.huobi.de.com/v1/order/orders/place?AccessKeyId=XXXX&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2021-02-24T06%3A39%3A19&Signature=XXXX
返回==》:{"status":"error","err-code":"account-frozen-balance-insufficient-error","err-msg":"trade account balance is not enough, left: 0","data":null}
postResp:{"status":"error","err-code":"account-frozen-balance-insufficient-error","err-msg":"trade account balance is not enough
使用账号查Balancec:
&{GET https://api.huobi.de.com/v1/account/accounts/19253692/balance?AccessKeyId=XXXXX&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2021-02-24T06%3A50%3A10&Signature=XXXX
返回:=》Account balance: {Currency:usdt Type:trade Balance:76.335877}Account balance: {Currency:usdt Type:frozen Balance:0}
示例代码:\huobirdcenter\[email protected]\cmd\accountclientexample\accountclientexample.go
from huobi_golang.
from huobi_golang.
@wx85278161 按您的下单参数设置了,并没有重现出问题。您的account-id用的是现货账户的account-id吗?
是现货账号的, 现在的错误提示是余额不够,但使用接口查到有余额的:
{POST https://api.huobi.de.com/v1/order/orders/place?AccessKeyId=XXXX&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2021-02-24T06%3A39%3A19&Signature=XXXX返回==》:{"status":"error","err-code":"account-frozen-balance-insufficient-error","err-msg":"trade account balance is not enough, left: 0","data":null}
postResp:{"status":"error","err-code":"account-frozen-balance-insufficient-error","err-msg":"trade account balance is not enough
使用账号查Balancec:
&{GET https://api.huobi.de.com/v1/account/accounts/19253692/balance?AccessKeyId=XXXXX&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2021-02-24T06%3A50%3A10&Signature=XXXX
返回:=》Account balance: {Currency:usdt Type:trade Balance:76.335877}Account balance: {Currency:usdt Type:frozen Balance:0}示例代码:\huobirdcenter\[email protected]\cmd\accountclientexample\accountclientexample.go
根据日志,你的账户里有76.335877USDT,但是你下单时想卖10BTC,所以余额不够。
你想进行什么样的交易呢?
from huobi_golang.
交易0.0001的的成本不到10usd,参数设为0.0001 或者0.0002也是返回 余额不够
amount | string | true | NA | 订单交易量(市价买单为订单交易额)
from huobi_golang.
from huobi_golang.
@wx85278161 你的完整的交易参数是什么?按照你最开始写的参数,你是卖BTC。你现在没有BTC,所以余额不够。
from huobi_golang.
@eynzhang
您好,遇到一樣的問題,這是我內部的log:
"feedback.Data,account-frozen-balance-insufficient-error,trade account balance is not enough, left: 809
,ethusdt_buy-market_50.00000000"
後面的50是欲掛單金額,但是還是不給交易
from huobi_golang.
Related Issues (20)
- Infinite reconnecting loop HOT 7
- How can I get history candlestick data with websocket HOT 1
- 查询历史账号报错:Format Error: account-id. HOT 2
- 有查询兑换人民币的接口吗 HOT 1
- 代码发布后麻烦先测试一下 HOT 2
- eth3lusdt下单 总是成功不了
- websocket 接口很容易出现重新链接 HOT 2
- k8s内运行问题 HOT 1
- PlaceOrder tell me `invalid-client-order-id invalid.client.order.id (NT)` HOT 1
- get order info failed after create order
- cannot find package "." in: github.com/huobirdcenter/huobi_golang/pkg/client/orderwebsocketclient HOT 1
- Is `client.Close()` a blocking call?
- Make logging pluggable
- 获取订单详情缺少`canceled-at`和`finished-at`
- 现在不维护了吗
- 现在不维护了吗
- Changes by the Optimization of “Search Past Orders” Interface on API
- Considering update GetAllSymbols() to v2?
- Cannot unmarshal number into Go struct field CancelOrderByIdResponse.order-state of type string HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huobi_golang.