GithubHelp home page GithubHelp logo

go-binance's People

Contributors

7ac avatar algalish avatar bharatsewani1993 avatar ckamm avatar dionbosschieter avatar keitap avatar matthewwoop avatar pdepip avatar scottjbarr avatar svarogg avatar tyrion85 avatar viniciuslrangel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-binance's Issues

GetAccountInfo return Balances nil

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.

Files in binance/tests are not in the same package

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?

Invalid market don't throws error

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

I often get 403

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?

Bad response Status 403 Forbidden

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()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.