Giter Club home page Giter Club logo

binance-connector-go's People

Contributors

2pd avatar jonte-z 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

binance-connector-go's Issues

NewTicker24hrService Symbols does not work, Symbol is good

func Ticker24hr() {
	baseURL := "https://api.binance.com"

	client := binance_connector.NewClient("", "", baseURL)

	// Ticker24hr
	ticker24hr, err := client.NewTicker24hrService().
		//Symbol("BTCUSDT")
		Symbols([]string{"BTCUSDT", "ETHUSDT"}).
		.Do(context.Background())
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(binance_connector.PrettyPrint(ticker24hr))
}

Logs

<APIError> code=-1100, msg=Illegal characters found in parameter 'symbols'; legal range is '^\[("[A-Z0-9-_.]{1,20}"(,"[A-Z0-9-_.]{1,20}"){0,}){0,1}\]$'.

Small float as query parametr

In the case where the request parameter has a small floating point number, the client sends it in exponential format.

For example. Price = 0.00000028 but client sends 2.8e-07 resulting in validation error

NOTIONAL Order filter type not implemented!

Hello, the followig code snippet demonstrates there's another filter tyoe, not currently implemented:

exchangeInfo, err := anonClient.NewExchangeInfoService().Do(context.Background()).
     ...
for _, s := range exchangeInfo.Symbols {
	if s.Symbol == symbol {
		baseAsset = s.BaseAsset
		quoteAsset = s.QuoteAsset
		// Rileviamo i valori di interesse dai filtri maledetti
		for _, f := range s.Filters {
			if f.FilterType == "LOT_SIZE" {
				minQty, err = strconv.ParseFloat(f.MinQty, 64)
				CheckErr(err)
				maxQty, err = strconv.ParseFloat(f.MaxQty, 64)
				CheckErr(err)
				stepSize, err = strconv.ParseFloat(f.StepSize, 64)
				CheckErr(err)
			}
			if f.FilterType == "MIN_NOTIONAL" {
				minNotional, err = strconv.ParseFloat(f.MinNotional, 64)
				CheckErr(err)
			}
			if f.FilterType == "NOTIONAL" {
				log.Fatalf("Encontered NOTIONAL filter: not in binance-connector-go!")
				//					notional, err = strconv.ParseFloat(f.Notional, 64)
				//					CheckErr(err)
			}
		}
		break
	}
}

And in the log, you read at each call:

2024/04/23 15:23:19 Encontered NOTIONAL filter: not in binance-connector-go!

The commented line:

				//					notional, err = strconv.ParseFloat(f.Notional, 64)

generates a compile time error of "binance_connector.FilterType has no field 'Notional'"

So how to handle NOTIONAL filter errors on both BUY and SELL orders from time to time?
Thanks!

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.