Comments (7)
Hi, currently there is not. What would you expect if this?
from binance.net.
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.
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.
from binance.net.
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.
from binance.net.
After having to google what Patreon was, I´ve come to the conclusion that sadly I do not
from binance.net.
Related Issues (20)
- Is there a way to get the average price of a token bought from the API HOT 2
- Error <WebCallResult<BinanceFuturesPlacedOrder> not found (Binance.Net 9.40) HOT 2
- Update request to SideEffectType HOT 1
- Enum missing values: EXPIRED_IN_MATCH / TRADE_PREVENTION HOT 1
- GetLendingAccountAsync Deprecated HOT 3
- Binance RestClient: Error "You are not authorized to execute this request." when calling ConvertQuoteRequestAsync
- Is there any option for binance lead trader api connection and place order?
- SubscribeToOrderBookUpdatesAsync is not working for spot HOT 2
- BinanceSocketClient Orderbook explained
- BinanceSocketClient.UsdFuturesApi.SubscribeToTradeUpdatesAsync() Stream has sporadic price Updates which are NOT real HOT 8
- "SubscribeToUserDataUpdatesAsync" stop working after 9.5.0 HOT 2
- UsdFuturesApi - onOrderUpdate HOT 5
- Binance - Spot Trading Via WebSockets - Order Request Rate Limits HOT 1
- how set socket5 proxy on BinanceRestClient or BinanceSocketClient at first dircetly? HOT 2
- Missing BinanceSocketClient.UsdFuturesApi.Account.GetAccountInfoAsync ? HOT 1
- https://jkorf.github.io/Binance.Net/ It's broken HOT 4
- Performance issues HOT 3
- SimpleEarn => Signature for this request is not valid. HOT 2
- Missing AUTO_BORROW_REPAY HOT 1
- BinanceSocketClient - Can't connect to the server 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 binance.net.