Skip to content

litepresence/extinction-event

Repository files navigation

INSTALLATION

EXTINCTION EVENT - CEX MUST DIE

NOTE: this tool set is currently in alpha state of development; more new toys coming soon!

(BTS) litpresence1

see WHITEPAPER folder for spanish, chinese, and russian language installation
ver carpeta de papel blanco para instalación en español
看中文安装的白皮书文件夹
см. белую папку для русской

LICENSE?!?

def WTFPL_v0_March_1765():
    if any([stamps, licenses, taxation, regulation, fiat, etat]):
        try:
            print('no thank you')
        except:    
            return [tar, feathers]

BitShares DEX Algo Trading Tools

The repository name "Extinction Event" was born of the notion that DEX tech combined with AI controlled algorithmic trading tech reaching the common user, in unison, would be an extinction level event for both centralized web-based exchanges and "monthly fee" algorithmic trading services.

THREE LINE INSTALL

navigate to the location you want to put your extinction-event folder, then:

sudo apt-get install git

git clone https://github.com/litepresence/extinction-event.git

cd extinction-event; python3 environment.py

follow the instructions in the terminal

DONE

if that didn't work for some reason:

SUPPORT

FAST: https://t.me/bitshares_extinction_event

SLOW: [email protected]

or try:

LINE BY LINE INSTALL

GATHER HARDWARE

This stack is heavy on solid state drive read/write, needs 4 gig ram, and central processing unit speed = back testing speed; recommendations:

  • Solid State Drive SOLID STATE DRIVE of any size; 120 Gigabyte drives are $20; plenty good.
  • DO NOT install exinction-event on a spinning platter HDD
  • 4 GB RAM for full stack, 8 preferred
  • moderate to high end desktop CPU, I run AMD 7950
  • Gold/Platinum power as this is your 24/7 bot script machine
  • I run FM2+ milspec/ultra durable boards from ASUS or GIGABYTE

INSTALL LINUX OS

Any debian/ubuntu should do.
The stack is NOT Mac or Windows compliant. I am running Cinnamon Mint 19.04, learn more:

https://linuxmint.com/

extinction-event should be compliant with other linux distrobutions, installation may vary.

UPDATE APT-GET

$ sudo apt-get update

INSTALL PYTHON 3.6+

I used these instructions:

https://tecadmin.net/install-python-3-7-on-ubuntu-linuxmint/

SUDO APT INSTALL PIP3, GIT, TK, DEV, SECP256K1

$ sudo apt-get install -y python3-pip
$ sudo apt-get install python3-tk
$ sudo apt-get install python3-dev
$ sudo apt-get install libsecp256k1-dev    
$ sudo apt-get install git
$ sudo pip3 install virtualenv

GIT CLONE EXTINCTION-EVENT REPOSITORY

Navigate to the folder you want to run your bots from:

$ cd <folder name>
$ git clone https://github.com/litepresence/extinction-event.git

CREATE A VIRTUAL ENVIRONMENT

Enter the extinction-event folder:

$ .../extinction-event
$ virtualenv -p python3 env 

ENTER VIRTUAL ENVIRONMENT

$ source env/bin/activate

INSTALL REQUIREMENTS

$ pip install -r requirements.txt

NOTE The virtual environment and setup.py are in extinction-event NOTE The scripts are all in extinction-event/EV NOTE you will need to activate your virtual environment from extinction-event folder EVERY TIME you start a new terminal tab when running these scripts.

INSTALL TULIP and TALIB

tulip and talib provide indicators like EMA, MACD, Parabolic SAR, Aroon, RSI, STOCH, etc. see installation instructions in WHITEPAPER folder without tulip and talib you will be limited to simple moving averages

LATENCY TEST

Open a new terminal tab. Run a latency test, it will take a few minutes. This will write nodes.txt which will be used by metaNODE.py. Navigate to:

$ .../extinction-event
$ source env/bin/activate
$ cd EV
$ python3 latencyTEST.py

When you get more serious about running bot script full time you can change USER CONTROLS within latencyTEST.py for recurring loop, custom white lists, or to scan github for newly posted nodes. You can even plot the node locations and upload your results to the web. After latency test has written node.txt, open node.txt in a text editor to confirm you have a list of latency sorted nodes for your region.

META NODE

Next you will begin your first metaNODE session. New terminal tab, cd navigate to:

$ .../extinction-event
$ source env/bin/activate
$ cd EV
$ python3 metaNODE.py

Enter your account name and market of choice. You can press enter to skip and a default account and market will be chosen:

account: abc123
currency: open.btc
assets: bts

Capitalization does not matter for the asset and currency. metaNODE CANNOT access your funds.

MICRO DEX

This will ensure you have all dependencies to sign transactions installed. In a new terminal tab, with metaNODE still running in first tab, navigate to:

$ .../extinction-event
$ source env/bin/activate
$ cd EV
$ python3 microDEX.py

You will be presented with the OPTION to enter your WIF. Alternatively you can press ENTER to skip. You do not need to give your WIF at this time to ensure complete setup.

microDEX HAS FULL ACCESS TO YOUR FUNDS IF YOU GIVE YOUR WIF

You SHOULD familiarize yourself and friends with the source code before entering your WIF. Your WIF is what signs transactions of any type. DO NOT authenticate unless you understand and fully trust the scripts I have given to you.

The best way to get your WIF is by opening the reference Bitshares User Interface:

settings >> accounts >> show keys click on "KEY" icon click "show private key in WIF format"

to obtain a copy of the reference User Interface, visit:

http://bitshares.org/download/

Application Programming Interface Keys

The latest version of the back testing engine allows you to back testing against bitshares decentralized exchange data as well as several outside sources. Each of these sources was chosen because of the vast data available and ease of obtaining FREE application programming interface keys.

Go get API keys from:

www.cryptocompare.com

www.alphavantage.com

www.nomics.com

open apiKEYS.py and install your keys where they go in the dictionary, save file and close

NOTE This py file must be in JSON format!

  • use DOUBLE QUOTES and COMMA after each entry except the last; no comma
  • DO NOT include any comments or other text in this document

These keys are public application programming interface keys and CANNOT effect your funds if they are stolen, however they do limit your daily application programming interface calls to prevent distributed denial of service attack. They need to be kept private; but not funds-on-line critical secret like your WIF. See each website for details.

If you skip this step, you will only be able to back testing with CANDLE_SOURCE = 'DEX' in tune_install() as BitShares public remote procedure call nodes do not require API keys.

PROXY TEST

proxyTEST.py will ensure that you have installed your back testing application programming interface keys correctly.

open proxyTEST and there is user input API near the top of the script. Run a test on API numbers 1 through 6.

EXTINCTION EVENT

In a new terminal tab, with metaNODE still running in first tab, navigate to:

$ .../extinction-event
$ source env/bin/activate
$ cd EV
$ python3 extinctionEVENT.py

You will be presented with some options:

BACKTEST

allows you to back testing and tune strategies using the tune_install() definition within extictionEVENT.py

PAPER

allows you to run a live session without giving the bot your keys, no live trades will be made

LIVE

is live trading with funds per your control_panel() and tune_install() settings

SALES

allows you to sell extinctionEVENT strategy tunes by posting images of trade points without showing your moving average thresholds

ORDER_TEST

is a live trading session WITH FUNDS but places orders far from the margins to test authentication

OPTIMIZE

auto tunes back tests, this is NOT currently open source; I'm currently considering a worker for this and more.

ACCOUNT HISTORY

Whenever your metaNODE is running your account history is being logged to file. accountHISTORY.py can read this file and plot your changes in account balances over time.

BRIEF DESCRIPTION OF TOOLS

extinctionEVENT.py

moving average crossover algorithmic trading bot framework for trading on the Bitshares DEX microDEX.py

lightweight user interface to perform manual buy/sell/cancel operations on the Bitshares DEX

metaNODE.py

statistical curation of market data from multiple public DEX nodes into a streaming text file

latencyTEST.py

search for low latency Bitshares nodes in your region

proxyDEX.py

correctly interpolated HLOCV Bitshares DEX candles for back testing and live session

proxyCEX.py

HLOCV altcoin:altcoin daily candles for back testing from www.cryptocompare.com

proxyMIX.py

HLOCV crypto exchange specific daily candles for back testing from www.nomics.com

proxyALPHA.py

HLOCV stocks, forex, and crypto:forex daily candles for back testing from www.alphavantage.com

apiKEYS.py

dictionary to store your cryptocompare, alphavantage, and nomics application programming interface keys

proxyTEST.py

utility to gather and plot data from proxyDEX, CEX, MIX, and ALPHA

accountHISTORY.py

metaNODE.py takes a balances snapshot hourly whenever it is running, use accountHISTORY to visualize

Visit www.litepresence.com for machine optimized algorithms

using elitist bred quantum particle swarms I run hundreds of thousands of back tests to optimize algorithms you can optimize algorithms yourself by trial and error, but why not let my AI handle it?

www.litepresence.com

About

bitsharesQUANT Distributed Exchange Algo Trading Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published