pdepip / go-binance Goto Github PK
View Code? Open in Web Editor NEWGolang wrapper for Binance API
License: MIT License
Golang wrapper for Binance API
License: MIT License
LIMIT_MAKER orders are not supported by the ValidateLimitOrder
function. They are described on the Binance API docs here: https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#new-order--trade
(I also don't quite understand the purpose of client side checks like that because they easily get out of sync with the server.)
Hi, I was using your wrapper and everything worked fine but now I always have this response when I try any call :
Bad response Status 403 Forbidden. Response Body: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
Bad request.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: ***
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML>
I just create a client and then Ping()
I'm trying to get balances of my account, using GetAccountInfo
method but its returning nil, it just started behaving like that, was find before. Anyone can help with it? here is how i am doing.
Client := binance.New(c.Config.Binance.ApiKey, c.Config.Binance.Secrete)
info, _ := Client.GetAccountInfo()
if info.Balances == nil {
c.Print(info)
}
it print like this
{"makerCommission":0,"takerCommission":0,"buyerCommission":0,"sellerCommission":0,"canTrade":false,"canWithdraw":false,"canDeposit":false,"balances":null}
I have double checked API Keys, everything looks right.
info, err := client.GetAccountInfo()
there is a 50% chance that this will cause an error 403 from Binance.
I tried another library in another language, and there was no such problem. Tell me what I'm doing wrong?
If I check a market using a wrong format the function getlastprice get a nil error, but it should throw an error with something like "market invalid".
An example: btcltc instead of ltcbtc throws no error
Line 66 in 10dfdfc
The files in binance/tests
are declared as being in different packages.
$ grep -h package binance/tests/*.go
package account_test
package market_test
package ping_test
package withdrawal_system_status_test
This breaks Go tooling elsewhere that encounters these files. For example, gorename
will not work if it sees these files.
It also means you can't just run go test ./...
.
In Go the most common convention you'll find is to keep the test files with the source files, but I see these are more like integration tests (requiring actual credentials), so maybe they are better off as commands?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.