Git Product home page Git Product logo

Comments (1)

vitorgamer58 avatar vitorgamer58 commented on July 4, 2024

Resolvido com uma alteração no arquivo de configuração, encontrei o problema em umas linhas de código:

total = (marketBalanceLocked + marketBalanceFree + currencyBalanceLocked + currencyBalanceFree + otherStables).toFixed(8);

if((marketBalanceLocked + marketBalanceFree) < (total / 2)) {
	buyAmount =  (((total/2)  * config.BUY_VALUE) / 100 ).toFixed(2);		    
	sellAmount = (((total/2) * config.BUY_VALUE) / 100 ).toFixed(2);

A variável de BUY_VALUE estava configurada por padrão em 11 - assim a equação fazia:
57/2 = 28,50
28,50 * 11 = 313,50
313,50 / 100 = 3,135

sendo assim um valor menor que 10 dólares, ao alterar o valor BUY VALUE para 100 a equação fez-se desta forma:

57/2 = 28,50
28,50 * 100 = 2850
2850 / 100 = 28,50

e então este foi o resultado no LOG:

===========================================
SALDO USDT...: 57.444150629999996
SALDO USDS...: 0.09847
OUTRAS STALBE: 0.02362200
SALDO BNB....: 0.00028243
SALDO TOTAL..: 57.56624263 USD
AUTO SPREAD..: ATIVADO
MINIMA DO DIA: 0.9969
MAXIMA DO DIA: 1
USDSUSDT.....: 1
VARIACAO 24H.: 0.13 %
SPREAD 24H...: 0.0031
SPREAD OPERA.: 0.000775
SALDO INICIAL: 57.54262063 USD
LUCRO........: 0.0236 USD
               0.04 %
===========================================
UPTIME.......: 0.01 horas
ORDENS.......: VENDAS: [ 0 ] COMPRAS: [ 1 ]
DEFINIDOS....: Compra 0.9985 e Venda 1.0015
TIMEOUT ORDEM: 24 horas
HORA AGORA...: Thu Oct 17 2019 13:21:01 GMT+0000 (UTC)
============== DADOS DE COMPRA ============
VALOR COMPRA.: 28.78
PRECO COMPRA.: 0.9967
ID ORDEM BUY.: 4670214
EXPIRA EM....: 1970-01-02T00:00:00.000Z
============== DADOS DE VENDA =============
VALOR VENDA..: 28.78
PRECO VENDA..: 0.0000
ID ORDEM SELL: 0
EXPIRA EM....: 1970-01-02T00:00:00.000Z
===========================================

from stablecoins-infinity-profit-bot.

Related Issues (7)

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.