Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Releases: 0x78f1935/PyNance-Webinterface

PyNance

27 May 06:56
Compare
Choose a tag to compare
  • Activation price removed in futures settings
  • Refactored futures logic
  • Trailing-stop-loss now work as intended
  • Fixed quantity misscalculation

PyNance

24 May 03:39
Compare
Choose a tag to compare

Version 3 is here! And ohhhh boy you are in for a treat.
Since Binance last announcement was all about depricated endpoints, I've put some extra love and care into PyNance V3.

Everything is new and written from scratch, where version 2 brought you a more secure version, version 3 will introduce futures trading!
Here is a quick overview of what I got in store for you.

  1. New Python Core Library
  2. New webinterface and components
  3. Added futures trading
  4. New options and parameters which can be altered.
  5. Spot and Futures now support multiple symbols
  6. Sandbox mode which allows you to test your configuration without actually placing orders
  7. realtime graph which shows exactly what pynance is processing
  8. Intigrated coinmarketcal.com
  9. Added user guide
  10. And much more!

PyNance

21 Mar 17:53
6dbd2e4
Compare
Choose a tag to compare
  • version 2.0.0

    • Complete overhaul on UI
    • All settings have been centralized in one file which can be found in the root folder of this project.
    • Authentication has been added. Secure your bot on the network with a Master Password.
    • Backup your order history or recover your order history so the bot can continue where it left after an update for example.
    • A heck ton of new parameters to play with to manipulate buy and sell entries.
    • Insane performance improvements.
    • Documentation has been updated

    (Basically this version is rewritten from scratch, everything is new)


PyNance

CAUTION

Scammers are very active in the crypto space. PyNance will never ask for your contact details nor account information.
PyNance relies on your API credentials which should be located in .env.production. Avoid any other repository that claims to be PyNance which tries to mimic the original. The original repo is github.com/0x78f1935/PyNance-Webinterface. Trade with caution,... Trade safe.

Disclaimer

PyNance is not a money printing tool. You are responsible for your own trades. When using this tool you agree that you take full responsibility of your whole portfolio, money and trades. You also declare that you have read the LICENSE included with PyNance. PyNance comes without any warrenty. A loss is still a loss.

Only trade with money you can afford to loss. Take chances, Make mistakes, Get messy.... To the moon! 🚀

PRE-READ

Before we get started, this README file includes "two" editions. The First part will explain how PyNance works and how to get it running in a production build. This part of the readme file is ment for people who have no experience with code. The second part of this README file is ment for people that would like to modify PyNance to there likings. This wil part will show you how to setup a development environment.

(You can skip this) -> People who actually might have seen the previous documentation probably noticed the warning notice about the security risks involved with people on the same network. Version 2.0.0 introduces a new feature to solve this problem!. You can configure a master key within your PyNance dashboard to prevent people from accessing your PyNance dashboard and internal endpoints! More on that later. All you need to know for now is that it has been fixed!

Table of Contents

  1. Disclaimer
  2. Pre read
  3. Configure
  4. Run PyNance
  5. Shutdown PyNance
  6. Features
  7. Development Environment
    1. Requirements
      1. NVM
      2. Node
      3. Python
        1. Virtualenv
        2. pip
    2. Listener
    3. Dashboard
      1. Backend
      2. Frontend
    4. Database

Configure PyNance

Open the .env.production file and read through it. You can look into .env.development for a working example. The following environment variables are important

Variables Description
ENVIRONMENT This environment variable can be ignored
BINANCE_API_KEY Your Binance API Key, You can make an account here
BINANCE_API_SECRET Your Binance API secret which matches your API Key
LOCALE The default language of the application. You options are [en, nl, fr, fil]
SQLALCHEMY_DATABASE_URI This is the connection string to the internal database. You should change its password to be extra safe.
SQLALCHEMY_TRACK_MODIFICATIONS Turn on or off database logging

Run PyNance

Its recommended to run PyNance in production mode with docker which you can install here.
Once docker is configured correctly there is only one step between you and PyNance.
Open a terminal and navigate to the root directory of this project. Double check your .env.production file before executing the next step. The next step takes a while. Type in your terminal the following command to run PyNance

docker-compose up --build -d

Give it a small moment, Once its all done you can check if everything is running with the following command

docker ps -a

The output of docker ps -a should look something like this

CONTAINER ID   IMAGE                       COMMAND                  CREATED          STATUS                PORTS                                     NAMES
fa31e026e461   pynance2_listener           "./entrypoint_listen…"   40 minutes ago   Up 40 minutes                                                   listener
131dd63ead97   nginx:stable                "/docker-entrypoint.…"   40 minutes ago   Up 40 minutes         80/tcp, 0.0.0.0:1337->5000/tcp            nginx
6ae3900af49f   pynance2_dashboard          "./backend/config/do…"   40 minutes ago   Up 40 minutes         5000/tcp                                  dashboard
71e5c67d6108   pynance2_database           "docker-entrypoint.s…"   40 minutes ago   Up 40 minutes         3306/tcp, 33060/tcp                       database

To open the application navigate to https://127.0.0.1:1337.

If the containers have the status Exited for some reason you can just use docker-compose up without the --build option. This way you don't lose any data.

Closing PyNance

In order to close PyNance on your computer use the following two commands in a terminal which has been set to the root directory of PyNance

docker-compose down -v
docker system prune

When you get asked to enter (y/N) type in Y and hit enter.
Everything should be clean right now.

If you have some issues with closing PyNance or building PyNance you might want to reset docker.
Be warned the reset_docker.bat cleans almost everything within docker. Images and containers.

The following section will explain a bit more about the functionality within PyNance. For the development version click here

Features

Backups

Make regular backups. When you remove the containers you also will remove your data. By making a backup you only make a backup of the orders placed by PyNance. You can import the backup in any running instance to recover your orders which allows the bot to continue where it left off.

Master password

A master password can be set to prevent other users on the network from using your PyNance instance. There is no option in the UI to recover your lost password. Matter in fact, there is no option at all to recover a lost password since this is considered a security breach. When a master password is set, endpoints used internally will require a token in order to function. PyNance handles this all for you.

  • But I still need to recover my password, what do I do?

There is only one method which allows you to reset the Master Password. This method works only locally on the computer where PyNance is running. Open a terminal and use docker ps -a in order to see all the container id's. copy the container id of the container pynance2_dashboard and enter the following command.

docker exec -it 6ae3900af49f bash

Once inside the container, execute the following command to remove the master password

flask password reset

Other settings

PyNance will come with various settings so you can configure when the bot needs to place a buy or sell order. Make sure to read the tooltips.

The following section will include information about the development environment. If you have a production setup up and running you can close the documenation here. The next part is for the nerds.

Development Build (localhost)

You can configure the development build just like the production build. Use the .env.development file instead.

Requirements & dependencies

nvm

In order to compile the frontend I personally use NVM. Its recommended to use version 12.20.1 of node.

nvm install 12.20.1
nvm use 12.20.1

node

When node is installed open a terminal and navigate to the /frontend folder. From here you can compile the frontend.

npm install
npm run build

npm run build is used when building the docker environment. To enable hot reload for development purpose I recommend to use npm run watch instead.

python

Pynance exists out of three different parts; PyNance-Core, PyNance-Webinterface and PyNance-Listener. All three of those elements need to be created and / or...

Read more

PyNance

14 Mar 23:29
Compare
Choose a tag to compare

Version 1.2.1

  • Reworked buy-entrees;
  • Updated PyNance Lib to calculate average based on graph input
  • Removed old calculation to determine if the bots needs to place a buy order.
  • Added UI elements which allows the enduser to choose an average based on the graphs available within Binance.
    • [1m, 3m, 5m, 15m, 30m, 1H, 2H, 4H, 6H, 8H, 12H, 1D, 3D, 1W, 1M]
      m = minutes
      H = Hour
      D = Day
      W = Week
      M = Month
  • Added UI element which allows the user to choose the amount of candles to look back on,
  • Added next to total amount profit made more information, this includes;
    • Current price of the selected symbol (updates even when the bot is offline)
    • Shows the current average based on the end user configuration (updates even when the bot is offline)
      This allows the enduser to configure the bot before making it go online and do its work.
  • Removed "Buy big dip" button. This caused confusion among users. The new average system will take its place.
  • Fixed information output to be more clear on actions the bot is doing at the very moment.
  • Upped version to 1.2.0

** NOTE: A buy in entry is based on the current average. If the current price is below the selected graph average the bot will place a buy order. **

Math
We take the amount of candles selected and take the lowest average of each candle. The sum of each average price / amount of candles == buy in entry

When updating to this version you might want to start with a fresh database.

PyNance

13 Mar 03:30
Compare
Choose a tag to compare
  • Fixed minor issue where the information bar displayed the wrong total value of the currency which is being hold

PyNance

12 Mar 19:45
Compare
Choose a tag to compare
  • Version 1.1.0

Day one PATCH. This update solves a lot of issues in calculations and UI. This update is important, if you wish to make use of PyNance I recommend to use this version or higher until further notice. The internal tutorial is out-dated at this point but the idea behind it is the same. The next update might be focused aroung the tutorial. For now enjoy version 1.1.0.

  • Added a button "buy dip". When active (green) the bot will only put buy entries when a sudden drop in price is noticed. When red the bot will put buy entries on little drops in price.
  • Removed slidebars in the configuration panel. They have been replaced with input fields for more freedom.
  • Added "Buy amount wallet" which is an indicator on how much % of your wallet will be submitted on a buy entry.
  • Added the current price of your symbol in the header.
  • Updated the system information bar with more useful information.
  • Gave the table with orders a overhaul
  • Handful of fixes

Minor bug fixes

12 Mar 00:54
Compare
Choose a tag to compare
  • Extended translation of FR and FIL.
  • Fixed some minor issues
  • Renamed column names in order table
  • Upper version

PyNance

11 Mar 17:34
Compare
Choose a tag to compare

Scammers are very active in the crypto market. PyNance will never ask for your contact details. Avoid any other repository that claims to be PyNance which also is a Binance trading bot. Trade safe.


DISCLAIMER
This tool is not a money printing tool and contains risks.
You are responsible for your own money and actions.

By using this tool you agree to take FULL responsibility of your own money.
Even if this would mean missed opportunities caused by the algorithm of this bot or worse; losses.

Be responsible, Only trade with money you can afford to lose.
Take chances, Make mistakes, Get messy.... To the moon!


IMPORTANT NOTICE

This tool makes use of docker. Once a running container has been established and the port of your machine is public. everyone in the same network will be able to connect to PyNance. The current version of PyNance has no login screen. You can secure yourself if you host PyNance on the machine you would like to check the interface on. Just make sure to block the port PyNance is running on.

Please do note; When creating your API key you should only allow it to work if the traffic send to Binance is comming from your IP address. This does not fix the problem described above.