Code Monkey home page Code Monkey logo

Comments (6)

realflash avatar realflash commented on June 12, 2024

I've added some more logging; it appears the variable minimums is defined, it's the key for the pair that is returning undefined. The minimums variable does contain the key being requested, and that has a minQty subkey which is also defined.

from node-binance-trader.

realflash avatar realflash commented on June 12, 2024

I think this is due to me following https://bitcoinvsaltcoins.com/strategy/608, which is really tethervsaltcoins. Because the code does this:

const alt = signal.pair.replace("BTC", "")
if (minimums[alt + "BTC"] && minimums[alt + "BTC"].minQty) {

(ie remove BTC from the pair and then add it back in everywhere), the instruction to buy fails as it ends up looking for the pair DENTUSDTBTC. I'm assuming this separation of the alt name and the base coin is done largely so that the alt variable can be used in log messages, and that the person who published them is running modified code.

I've looked at all the public forks and I don't see one supporting this strategy. Is there one I can pull from somewhere?

from node-binance-trader.

dargmuesli avatar dargmuesli commented on June 12, 2024

Hey there, yes, currently the code is aligned so that only BTC-based trades are supported. Besides BVA's philosophy, this is an unneeded constraint. In case you found zen's (@balance80) fork, you might have missed this specific branch: https://github.com/balance80/node-binance-trader/tree/feat/multiple-basecoins
Try that one and please report success as well as issues, so that we can merge it here :)

from node-binance-trader.

realflash avatar realflash commented on June 12, 2024

Thanks, I will try that out once I have figured out #101 .

from node-binance-trader.

realflash avatar realflash commented on June 12, 2024

We could probably close this issue, now that the error and cause are logged here for others to search.

from node-binance-trader.

nithi2023 avatar nithi2023 commented on June 12, 2024

I tried @balance80's multiple basecoins. but qty is zero and I received this from binance

ERROR 7991117 marketBuy GTOUSDT 0 {"code":-1013,"msg":"Invalid quantity."} Error in queue {"code":-1013,"msg":"Invalid quantity."}

from node-binance-trader.

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.