Git Product home page Git Product logo

Comments (6)

wcrbrm avatar wcrbrm commented on June 16, 2024

@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.

pimp22 avatar pimp22 commented on June 16, 2024

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.

pimp22 avatar pimp22 commented on June 16, 2024

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.

wcrbrm avatar wcrbrm commented on June 16, 2024

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.

pimp22 avatar pimp22 commented on June 16, 2024

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.

pimp22 avatar pimp22 commented on June 16, 2024

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)

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.