Comments (5)
I wonder if it's down to the quantity
field and whether it is the correct type. Can you retrieve your balance and see what it says?
from binancedotnet.
My Tether balance was at ~55k, ETH was near 0 (and BNB was 35). My napkin math says it should've used nearly all the tether to buy the specified quantity of ETH, plus extra to cover the fee.
I tried again but multiplied the fee deduction by 10 and it went through. So the other elements of my buy order must be correct, but for some reason it thinks it needs somewhat more fee allowance than it actually uses (or I'm totally misunderstanding the fee structure).
Just to clarify, my understanding is that Binance will deduct a 0.1% fee from what currency you're paying, right? And I'm assuming it does a quantity check on your order for fee funds before it sees you intend to pay fees with BNB (which is kinda dumb, but whatever)?
from binancedotnet.
@tevert , Can you please provide some information how you calculate amount/quantity etc filters based on the binance api rules https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md#symbol-filters here?
from binancedotnet.
Sure, code is here: https://github.com/tevert/Trader/blob/master/Trader/Exchange/Binance.cs#L117
- Divide the quantity (in USDT) by the price
- Subtract the fee (assumed to be 0.1%)
- Subtract the modulus of the LOT_SIZE (that was giving me a filter error before I had that)
- Lastly do a Math.Round to forcibly reduce the number of decimal places; that was also confusing the API.
Because I'm doing a market buy, I'm pretty sure the filters other than LOT_SIZE don't apply here.
For the purposes of making it work, my local working copy of the code also subtracts a "fudge factor" of 1.5% on top of the fee. A fudge factor of 0.05% wasn't enough though, and I don't think I should need a fudge factor at all, obviously.
from binancedotnet.
Thanks but I'm having issue with min trading limit. Opened help/issue #70 here.
from binancedotnet.
Related Issues (20)
- example withdraw coin
- GetAccountInformation is doing an exception HOT 3
- DisposableBinanceWebSocketClient exception
- Question about order types
- Intermittent issue with HOT 1
- Signature generation error with HMAC SHA256 HOT 2
- CreateOrder and CancelOrder hang
- ConnectToDepthWebSocketCombinedPartial
- Recent Trades List endpoint missing in websocket
- Simple example request
- Malformed requests are sent to the server. Please review the request object/string HOT 1
- _
- Going to fork this off to active maintain and support new functions HOT 1
- OrderBook Limit
- conn.Client.GetExchangeInfo().Result "Unable to deserialize message from ..."
- Is this library up to date? HOT 2
- How to get funding rate for Futures contract
- How to get total funds per cyrpto own
- Does this API support latest Binance API features such as Futures
- BinanceExchange.API.Converter.KlineCandleSticksConverter.WriteJson System.NotImplementedException: The method or operation is not implemented
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 binancedotnet.