Git Product home page Git Product logo

amm-bots's Issues

connect: connection refused

Hello guys,
I've tested your bot in locally, but when I try to run with

docker run --rm -it \
  -e BOT_TYPE=CONST_PRODUCT \
  -e BOT_PRIVATE_KEY=0x.. \
  -e BOT_BASE_TOKEN=HOT \
  -e BOT_QUOTE_TOKEN=DAI \
  -e BOT_BASE_URL=http://127.0.0.1:3001 \
  -e BOT_MIN_PRICE=0.8 \
  -e BOT_MAX_PRICE=1.2 \
  -e BOT_PRICE_GAP=0.02 \
  -e BOT_EXPAND_INVENTORY=2 \
  -e BOT_WEB3_URL=http://127.0.0.1:8545 \
  hydroprotocolio/amm-bots

I will get this error

panic: Get http://localhost:3001/markets: dial tcp 127.0.0.1:3001: connect: connection refused

If i try to browse on http://localhost:3001/markets this is the response

{"status":0,"desc":"success","data":{"markets":[{"id":"HOT-DAI","baseToken":"HOT","baseTokenProjectUrl":"","baseTokenName":"HOT","baseTokenDecimals":18,"baseTokenAddress":"0x4c4fa7e8ea4cfcfc93deae2c0cff142a1dd3a218","quoteToken":"DAI","quoteTokenDecimals":18,"quoteTokenAddress":"0xbc3524faa62d0763818636d5e400f112279d6cc0","minOrderSize":"0.001","pricePrecision":5,"priceDecimals":5,"amountDecimals":5,"asMakerFeeRate":"0.001","asTakerFeeRate":"0.003","gasFeeAmount":"0.45","supportedOrderTypes":["limit","market"],"marketOrderMaxSlippage":"0.1","lastPriceIncrease":"0","lastPrice":"0","price24h":"0","amount24h":"0","quoteTokenVolume24h":"0"},{"id":"WETH-DAI","baseToken":"WETH","baseTokenProjectUrl":"","baseTokenName":"WETH","baseTokenDecimals":18,"baseTokenAddress":"0x4a817489643A89a1428b2DD441c3fbe4DBf44789","quoteToken":"DAI","quoteTokenDecimals":18,"quoteTokenAddress":"0xbc3524faa62d0763818636d5e400f112279d6cc0","minOrderSize":"0.001","pricePrecision":5,"priceDecimals":5,"amountDecimals":5,"asMakerFeeRate":"0.001","asTakerFeeRate":"0.003","gasFeeAmount":"0.00000045","supportedOrderTypes":["limit","market"],"marketOrderMaxSlippage":"0.1","lastPriceIncrease":"0","lastPrice":"0","price24h":"0","amount24h":"0","quoteTokenVolume24h":"0"},{"id":"HOT-WETH","baseToken":"HOT","baseTokenProjectUrl":"","baseTokenName":"HOT","baseTokenDecimals":18,"baseTokenAddress":"0x4c4fa7e8ea4cfcfc93deae2c0cff142a1dd3a218","quoteToken":"WETH","quoteTokenDecimals":18,"quoteTokenAddress":"0x4a817489643A89a1428b2DD441c3fbe4DBf44789","minOrderSize":"0.001","pricePrecision":5,"priceDecimals":5,"amountDecimals":5,"asMakerFeeRate":"0.001","asTakerFeeRate":"0.003","gasFeeAmount":"0.000000003","supportedOrderTypes":["limit","market"],"marketOrderMaxSlippage":"0.1","lastPriceIncrease":"0","lastPrice":"0","price24h":"0","amount24h":"0","quoteTokenVolume24h":"0"}]}}

Why the bot cannot connect?

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.