Comments (6)
@pimp22 no, there is no percentage support (you should calculate in on upper level)
Quantity must be specified with exact numbers of asset that needs to be bought/sold.
Price, at the same time, should not be specified at all for a market order
Please also make sure you are using 1.0.8 version.
from java-binance-api.
so to mimic the "market buY" function in the pc client, i must ping the coin frequently to know what the price is, so i can calculate how much of that coin (asset?) i want to buy for my btc
from java-binance-api.
doesnt seem the lot size thing work intended for all coins. i get "no value" on some of the coins (i spelled them right , e.g. IOTA )
from java-binance-api.
so to mimic the "market buY" function in the pc client, i must ping the coin frequently to know what the price is, so i can calculate how much of that coin (asset?) i want to buy for my btc
The task of making market buy orderS is much complex then it is described. You much analyze order book properly for that and hoping that you are fast enough to submit your order before anything will change in the order book. In addition, exchange might have their own addition to this market buy algorithm.
doesnt seem the lot size thing work intended for all coins. i get "no value" on some of the coins (i spelled them right , e.g. IOTA )
Please create separate ticket with full code example. I cannot really help having so little information
from java-binance-api.
Correct me if im wrong, im pretty sure if you make a market buy at market price (as figures in pc client) for 75%, it simply takes (fund0.75/current coin price) and then buys the "best market price", trying to buy "fund0.75/current coin price".
from java-binance-api.
BinanceExchangeSymbol BN = symbols.stream().filter(a -> a.getQuoteAsset().equals(s)).findFirst().get();
System.out.println("coin Lot Size: {}"+ BN.getSymbol().toString());
I just used this new example and use a string s to pass in name. Its capital lettered. I also printed out the list of symbols. "IOTA" is in there, so im not sure why I get the no value error when s = "IOTA." I merely tried different abbr. for coins as s, but some fail with the described error.
Basically I was trying to grab the info (ik it not getSymbol... that wa just some testing) for how many decimals a coin accepts. But maybe Im better off just writing them down, if Im getting errors with this?
Thanks for helping
from java-binance-api.
Related Issues (20)
- ERROR: -1111, Precision is over the maximum defined for this asset. HOT 2
- Logback HOT 2
- Websocket API depth with level doesn't work
- ERROR: -1013, Filter failure: PRICE_FILTER HOT 3
- BinanceApiException: timestamp for this request is outside of recwindow HOT 1
- UserDataStream disconnecting?
- ORDER_WOULD_TRIGGER_IMMEDIATELY not present in OrderRejectReason
- Binance api update
- Exception throws with the latest Binance update when calling exchangeInfo
- Trade with PAX or TUSD
- Cannot deserialize value of type `java.lang.Long` from String "9534.95000000"
- Get price market into websocket
- Placing a TAKE_PROFIT_LIMIT order
- Guys whats the long value for StartTime/EndTime in Aggtrades call ? is is "secondssince1970' as usual ?
- Use this library on testnet
- What is MIN_NOTIONAL Error
- How to get all historical data from a specific asset?
- getting connection refused Exception using web socket
- MARKET_LOT_SIZE error (code = -1013 HOT 1
- help!
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 java-binance-api.