Giter Site home page Giter Site logo

Hi question not issue. about binance.net HOT 7 CLOSED

jkorf avatar jkorf commented on May 17, 2024
Hi question not issue.

from binance.net.

Comments (7)

JKorf avatar JKorf commented on May 17, 2024

Hi, currently there is not. What would you expect if this?

from binance.net.

colingresty avatar colingresty commented on May 17, 2024

Hi, well when i send a quantity in a buy order, the quantity has to meet the LOT_SIZE filter on binance, or i get the following error, -1013 "Filter failure: LOT_SIZE"
unless i am wrong , the quantity has to meet the requirements below.
I think other versions of this type of library (ccxt for example) have a function to convert your quantity to one that is divisible by "stepSize" .

This is from the Binance API documentation:

LOT_SIZE
The LOT_SIZE filter defines the quantity (aka "lots" in auction terms) rules for a symbol. There are 3 parts:

minQty defines the minimum quantity/icebergQty allowed.
maxQty defines the maximum quantity/icebergQty allowed.
stepSize defines the intervals that a quantity/icebergQty can be increased/decreased by.

In order to pass the lot size, the following must be true for quantity/icebergQty:
quantity >= minQty
quantity <= maxQty
(quantity-minQty) % stepSize == 0
/exchangeInfo format:

{
"filterType": "LOT_SIZE",
"minQty": "0.00100000",
"maxQty": "100000.00000000",
"stepSize": "0.00100000"
}

from binance.net.

JKorf avatar JKorf commented on May 17, 2024

I could add toggle-able functionality like this, where the library automatically complies to the ExchangeInfo filter rules, and return an error or auto adjust the parameters to comply. Would that be helpful to you?

from binance.net.

colingresty avatar colingresty commented on May 17, 2024

from binance.net.

JKorf avatar JKorf commented on May 17, 2024

Hi, I've just pushed a new version in which BinanceClient contains a TradeRulesBehaviour. Setting this to ThrowError will return an error if the order doesn't comply. Setting it to AutoComply automatically complies the parameters to the rules (min/max price and quantity, and the step/tick sizes).

For manual usage there are also Clamp functions in the BinanceHelpers class which you can use to comply to the trading rules.

from binance.net.

colingresty avatar colingresty commented on May 17, 2024

from binance.net.

JKorf avatar JKorf commented on May 17, 2024

After having to google what Patreon was, I´ve come to the conclusion that sadly I do not

from binance.net.

Related Issues (20)

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.