Giter VIP home page Giter VIP logo

foxbit_bot's Introduction

Bem vindo ao meu perfil GitHub 👋

const rafaelwdornelas = {
  🏢: (school) {
    Alura: 'https://www.alura.com.br/',
    Impacta: 'https://impacta.com.br/',
    Udemy: 'https://www.udemy.com/',
    Sec4us: 'https://www.sec4us.com.br/'
  },
  💻: (tools and languages) {
    VisualStudioCode: 'https://code.visualstudio.com/',
    VisualStudio: 'https://visualstudio.microsoft.com/',
    Javascript: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript',
    NextJS: 'https://nextjs.org/',
    NodeJS: 'https://nodejs.org/',
    Golang: 'https://go.dev/',
    VbNet: 'https://docs.microsoft.com/dotnet/visual-basic/',
    Sequelize: 'https://sequelize.org/',
    Git: 'https://git-scm.com/'
  🛠️: (projects) {
    sistemadb: 'https://github.com/rafaelwdornelas/sistemadb',
    Mail-Sender: 'https://github.com/rafaelwdornelas/Mail-Sender-Mult-Servers',
    globalscrapingexploit: 'https://github.com/rafaelwdornelas/GlobalScrapingExploit',
    SQLiNode: 'https://github.com/rafaelwdornelas/SQLiNode',
    Foxbitbot: 'https://github.com/rafaelwdornelas/Foxbit_Bot'
  }
}


Snake animation

foxbit_bot's People

Contributors

rafaelwdornelas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

foxbit_bot's Issues

Problema na incialização

Ao iniciar o npm start no prompt, o seguinte erro aparece:

Description: Buy and sell automatic foxbit exchange
Version: 2.0.0


(node:15004) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): undefined
(node:15004) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Bot Morrendo com Cancela Ordem - v 2.0

Ao cancelar uma ordem de venda o bot morre e a seguinte mensagem aparece no console:

[11:18:59] Foxbit Creating Sale Order: Amount: 0.002 BTC | Price: 3149 BRL
{ btcsellamount: '0.002',
  btcsellpriceamountmin: '3149',
  btcsellpriceamountmax: '5000' }
POST Sell
/home/astfarias/softwares/bitcoin/bots/Foxbit_Bot/index.js:92
          myOrdersList_Remove("2");
          ^

ReferenceError: myOrdersList_Remove is not defined
    at IncomingMessage.<anonymous> (/home/astfarias/softwares/bitcoin/bots/Foxbit_Bot/index.js:92:11)
    at emitOne (events.js:96:13)
    at IncomingMessage.emit (events.js:189:7)
    at IncomingMessage.Readable.read (_stream_readable.js:381:10)
    at flow (_stream_readable.js:761:34)
    at resume_ (_stream_readable.js:743:3)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

npm ERR! Linux 4.4.0-59-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v7.5.0
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script 'node index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the foxbitbot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs foxbitbot
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls foxbitbot
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/astfarias/softwares/bitcoin/bots/Foxbit_Bot/npm-debug.log

Unhandled promise rejection (rejection id: 1

Ao rodar segue esse erro. Alguma solução? Tudo configurado de forma correta, copiei e colei as chaves, senhas e tudo mais para evitar erros

Connected BlinkTradeWS
(node:8208) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot convert undefined or null to object

NPM start error

Alguém está com erro nessa versão 2.0 ??
Estou com node atualizado e com as chaves tudo certo e dá erro!


SyntaxError: Unexpected token <<
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the foxbitbot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs foxbitbot
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls foxbitbot
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\eduardo\AppData\Roaming\npm-cache_logs\2017-04-15T12_45_59_239Z-debug.log

image

Ultima versão

Bom dia Amigo,

Na ultima versão ele dá esse erro, o que pode ser?:

"
Connected BlinkTradeWS
[1:41:00] Foxbit Balance: 0.00 BRL | 0.003162 BTC
Server running at: http://localhost:3000
[1:41:07] OB:NEW_ORDER:sell:28
BUY.Check4: false
[1:41:13] OB:DELETE_ORDER:sell:18
C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\index.js:231
for (i = 0 ; i < variables.orderbooktemp.asks.length ;i++)
^

ReferenceError: i is not defined
at EventEmitter.onOrderBookDeleteOrder (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\index.js:231:12)
at EventEmitter.emit (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\eventemitter2\lib\eventemitter2.js:358:22)
at C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\blinktrade\lib\ws.js:274:44
at Array.map (native)
at Object.subscribeEvent [as callback] (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\blinktrade\lib\ws.js:255:25)
at BlinkTradeWS.dispatchPromise (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\blinktrade\lib\wsTransport.js:177:85)
at BlinkTradeWS.onMessage (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\blinktrade\lib\wsTransport.js:170:12)
at WebSocket.onMessage (C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\node_modules\ws\lib\WebSocket.js:442:14)
at emitTwo (events.js:106:13)
at WebSocket.emit (events.js:191:7)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the foxbitbot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs foxbitbot
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls foxbitbot
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Luiz\Downloads\Foxbit_Bot-master\Foxbit_Bot-master\npm-debug.log

"

Parou de Vender, só Compra

Ontem estava funcionando normalmente.
Hoje cedo tentei executar **Compras a **

[9:57:00] Bests Order Book: Buy: 3063 BRL | Sell: 3074.43 BRL
{ btcbuyamount: '0.001',
  btcbuypriceamountmin: '0',
  btcbuypriceamountmax: '3020' }
POST Buy
[9:57:02] Bests Order Book: Buy: 3063 BRL | Sell: 3074.43 BRL
(node:7008) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: amount.toFixed is not a function
(node:7008) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[9:57:04] Bests Order Book: Buy: 3063 BRL | Sell: 3074.43 BRL
[9:57:06] Foxbit Balance: 31.24 BRL | 0.325159 BTC

E vendas a

[9:57:54] Bests Order Book: Buy: 3063 BRL | Sell: 3074.43 BRL
{ btcsellamount: '0.002',
  btcsellpriceamountmin: '3060',
  btcsellpriceamountmax: '3139' }
POST Sell
[9:57:56] Bests Order Book: Buy: 3063 BRL | Sell: 3074.43 BRL

Neste momento o Book está assim:
screenshot-127 0 0 1 3000-2017-02-10-10-01-22

Porem o Bot não envia nenhuma ordem de SELL msm com o preço atual maior que o definido no limite mínimo.
Então eu gerei novas chaves de API no Foxbit e testei. Mesmo resultado.
Então excluí os arquivos do bot e instalei novamente. Mesmo resultado.

Acredito que eu configurei corretamente as ordens e ontem estava rolando normal.
Criar SELL manualmente na Foxbit funciona.
Vocês também tiveram esse problema?
Obrigado

Erro de rejeição

Description: Buy and sell automatic foxbit exchange
Version: 2.0.0


(node:1456) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): [object Object]

Any working version of this?

I have been looking for a foxbit trading bot, but I have not found a working one or almost working one. I tried to get this working with no success.

Ajuda na instalação

Buenas amigo... terias como explicar um pouco mais detalhadamente o processo de instalação? Quais os pacotes que eu preciso ter instalado... é que instalei só o nodeJS e deu mil erros aqui..kkkk Valeu!

npm ERR! install Couldn't read dependencies
npm ERR! Failed to parse json
npm ERR! Unexpected token :
npm ERR! File: /home/user/Foxbit_Bot-master/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/user/Foxbit_Bot-master
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! file /home/user/Foxbit_Bot-master/package.json
npm ERR! code EJSONPARSE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/user/Foxbit_Bot-master/npm-debug.log

Disparando ordens repetidas- v 2.0

Mesmo não estando no preço mínimo ou máximo da ordem, o bot está criando múltiplas ordens com o mesmo valor, sem parar.
A versão anterior criava uma ordem e aguardava o preço do mercado chegar no preço da ordem, só então o bot alterava o preço pra competir.
Atualmente ele cria infinitas ordens com o preço definido.

Na imagem abaixo eu criei uma ordem de Venda de 0.002btc a R$3149, então bot começou a disparar a mesma ordem sem parar

Obrigado pela ajuda

captura de tela de 2017-02-12 11 21 21

Não inicia a aplicação

Olá, @rafaelwdornelas.

Segui a orientação e estou tendo um problema com o "start". Está ocorrendo o erro:

Description: Buy and sell automatic foxbit exchange
Version: 2.0.0

Connected BlinkTradeWS
(node:8908) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot convert undefined or null to object
(node:8908) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Conforme informou acima, como um erro da API, não está abrindo o navegador e mesmo testando na URL(localhost:3000) não está sendo exibido.

Estou usando a mesma versão do Node.js do vídeo. Agradeço a ajuda, e espero em breve contribuir.

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.