Coder Social home page Coder Social logo

Comments (2)

whittlem avatar whittlem commented on June 16, 2024

I am on holiday now. I will respond when I am back. Take a look at the unit tests. You can see how it was done there.

from pycryptobot.

krzysztofMajchrzak-GIT avatar krzysztofMajchrzak-GIT commented on June 16, 2024

Ok i get it. To everyone interested. The trick was to provide API key filled with zeros.

Config:


{
    "binance": {
        "config": {
            "exchange": "binance",
            "api_url": "https://api.binance.com",
            "buypercent": 15
        },
        "api_key_file": "binance.key"
    }
}

api key file:

"api_key": "0000000000000000000000000000000000000000000000000000000000000000",
"api_secret": "0000000000000000000000000000000000000000000000000000000000000000"

And the command is:

sudo docker run -it -v ./002.json:/app/config.json -v ./binance.key:/app/binance.key --rm --user pycryptobot pycryptobot/pycryptobot

Thank you for your hint. When you are back from your vacation would you answer me another question?

One more thing i cant use properly is logging and graphs. using this command:
sudo docker run -it --rm -v ./graphs:/app/graphs -v ./testlog.log:/app/pycryptobot.log -v ./testtrade.csv:/app/trades.csv --user pycryptobot pycryptobot/pycryptobot bash --exchange binance --market ETHUSDT --granularity 15m --sim fast --autorestart 1 --base_currency "ETH" --quote_currency "USDT" --disablebuynearhigh 1 --nobuynearhighpcnt 1 --sellatresistance 1 --selllowerpcnt -5 --trailingbuypcnt 1 --trailingstoploss -1 --trailingstoplosstrigger 3 --simstartdate "2022-01-01" --simenddate "2022-02-01" --predictions 1 --preventloss 1 --logs 0 --tradetracker 1 --logbuysellinjson 1

i get logfile that is a copy of terminal output, no graphs and no json files. I want to have pure json file with only transactions not all logs.

I asked this question on Q&A forum: Link

Thank you in advance

from pycryptobot.

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.