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)
- Issue with Nuget Package in Azure Functions project HOT 4
- StartUserStreamAsync, too many parameters, version 9.9.0 HOT 2
- Problem with latest version HOT 2
- BinanceRateLimit - Count Missing? HOT 2
- Universal Transfer has some missing transfer types HOT 2
- Hello, client.CoinFuturesApi.Account.GetIncomeHistoryAsync reports an error 404 HOT 1
- Is there a way to get borrow interest rates? HOT 2
- how to establish websocket connection HOT 4
- Binance changes since 2024-04-10
- Need add 'orderId' to BinancePayTrade HOT 3
- I want to see the USDT equivalents of my assets. HOT 1
- Field Symbol on BinanceOrderBook in Empty
- Cannot use Library in Azure Functions HOT 1
- Binance: Failed to convert order status: "PENDING_NEW"
- binanceRestClient.SpotApi.ExchangeData.GetProductsAsync() is not working HOT 2
- UsdFuturesApi.SubscribeToUserDataUpdatesAsync HOT 3
- orderbook logic using BinanceFuturesUsdtSymbolOrderBook
- Crash when using socket on 9.9.8 HOT 2
- Set specific HttpClient to use HOT 3
- UsdFutures Limit Order with `TimeInForce` Type `GoodTillDate` Fails
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.