{"id":13734157,"url":"https://github.com/litepresence/extinction-event","last_synced_at":"2025-12-30T16:19:37.902Z","repository":{"id":139153836,"uuid":"125052966","full_name":"litepresence/extinction-event","owner":"litepresence","description":"bitsharesQUANT Distributed Exchange Algo Trading Framework","archived":false,"fork":false,"pushed_at":"2021-01-11T18:25:54.000Z","size":5499,"stargazers_count":28,"open_issues_count":1,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-13T22:08:55.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litepresence.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-03-13T13:05:54.000Z","updated_at":"2024-01-19T10:25:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"d820f175-8709-412d-aa88-a97c49455a7c","html_url":"https://github.com/litepresence/extinction-event","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litepresence%2Fextinction-event","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litepresence%2Fextinction-event/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litepresence%2Fextinction-event/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litepresence%2Fextinction-event/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litepresence","download_url":"https://codeload.github.com/litepresence/extinction-event/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253045641,"owners_count":21845741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T03:00:53.048Z","updated_at":"2025-12-14T04:04:34.871Z","avatar_url":"https://github.com/litepresence.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":["Tools and Scripts"],"readme":"\u003cp align=\"center\"\u003e \n\u003cimg src=\"https://imgur.com/wibKTOb.jpg\"\u003e\t\n\u003cimg src=\"https://imgur.com/kcJ3E20.jpg\"\u003e\n\u003c/p\u003e\n\n\n## ***This repository is no longer being maintained!***\n\nThis codebase has become unflexible and, in a sense, \"over-fit\" to the Extinction Event algorithm.  Because of this, @squidKid-deluxe and I have taken the core functionality and re-formed it into a new platform, [QTradeX](https://github.com/squidKid-deluxe/QTradeX-Algo-Trading-SDK).  The Extinction Event algorithm itself is now part of QTradeX's companion repository, [QTradeX AI Agents](https://github.com/squidKid-deluxe/qtradex-ai-agents).  Thank you for your support during this transition. We invite you to explore QTradeX and its companion repository, for a more flexible and robust algotrading experience. If you have any questions, feel free to reach out.\n\n@litepresence Telegram\n@oraclepresence X com\n\nHappy trading!\n\n---\n\nINSTALLATION\n=======================\n\n**EXTINCTION EVENT - CEX MUST DIE**\n\nNOTE: this tool set is currently in alpha state of development; more new toys coming soon!\n\n**(BTS) litpresence1**\n\n\tsee WHITEPAPER folder for spanish, chinese, and russian language installation\n\tver carpeta de papel blanco para instalación en español\n\t看中文安装的白皮书文件夹\n\tсм. белую папку для русской\n\n**LICENSE?!?**\n\n```\ndef WTFPL_v0_March_1765():\n    if any([stamps, licenses, taxation, regulation, fiat, etat]):\n        try:\n            print('no thank you')\n        except:    \n            return [tar, feathers]\n```\n\n**BitShares DEX Algo Trading Tools**\n\nThe 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.\n\n\nTHREE LINE INSTALL\n----------------------\n\nnavigate to the location you want to put your extinction-event folder, then:\n\n    sudo apt-get install git\n\n    git clone https://github.com/litepresence/extinction-event.git\n\n    cd extinction-event; python3 environment.py\n\nfollow the instructions in the terminal\n\nDONE\n===================\n\nif that didn't work for some reason:\n\n**SUPPORT**\n\nFAST: https://t.me/bitshares_extinction_event\n\nSLOW: finitestate@tutamail.com\n\nor try:\n\nLINE BY LINE INSTALL\n----------------------\n\n**GATHER HARDWARE**\n\nThis stack is heavy on solid state drive read/write, needs 4 gig ram, and central processing unit speed = back testing speed; recommendations:\n\n- Solid State Drive SOLID STATE DRIVE of any size; 120 Gigabyte drives are $20; plenty good.\n- *DO NOT* install exinction-event on a spinning platter HDD\n- 4 GB RAM for full stack, 8 preferred\n- moderate to high end desktop CPU, I run AMD 7950\n- Gold/Platinum power as this is your 24/7   bot  script machine\n- I run FM2+ milspec/ultra durable boards from ASUS or GIGABYTE\n\n**INSTALL LINUX OS**\n\nAny debian/ubuntu should do.  \nThe stack is NOT Mac or Windows compliant. \nI am running Cinnamon Mint 19.04, learn more:\n\n    https://linuxmint.com/\n\nextinction-event should be compliant with other linux distrobutions, installation may vary. \n\n**UPDATE APT-GET**\n\n    $ sudo apt-get update\n\n**INSTALL PYTHON 3.6+**\n\nI used these instructions:\n\n    https://tecadmin.net/install-python-3-7-on-ubuntu-linuxmint/\n\n**SUDO APT INSTALL PIP3, GIT, TK, DEV, SECP256K1**\n\n    $ sudo apt-get install -y python3-pip\n    $ sudo apt-get install python3-tk\n    $ sudo apt-get install python3-dev\n    $ sudo apt-get install libsecp256k1-dev    \n    $ sudo apt-get install git\n    $ sudo pip3 install virtualenv\n\n**GIT CLONE EXTINCTION-EVENT REPOSITORY**\n\nNavigate to the folder you want to run your bots from:\n\n    $ cd \u003cfolder name\u003e\n    $ git clone https://github.com/litepresence/extinction-event.git\n\n**CREATE A VIRTUAL ENVIRONMENT**\n\nEnter the extinction-event folder:\n\n    $ .../extinction-event\n    $ virtualenv -p python3 env \n\n**ENTER VIRTUAL ENVIRONMENT**\n\n\n    $ source env/bin/activate\n\n**INSTALL REQUIREMENTS**\n\n    $ pip install -r requirements.txt\n    \n*NOTE* The virtual environment and setup.py are in `extinction-event`\n*NOTE* The scripts are all in `extinction-event/EV`\n*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.\n\n**INSTALL TULIP and TALIB**\n\ntulip and talib provide indicators like EMA, MACD, Parabolic SAR, Aroon, RSI, STOCH, etc. \nsee installation instructions in WHITEPAPER folder\nwithout tulip and talib you will be limited to simple moving averages\n\n**LATENCY TEST**\n\nOpen 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:\n\n    $ .../extinction-event\n    $ source env/bin/activate\n    $ cd EV\n    $ python3 latencyTEST.py\n\nWhen 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.\n\n**META NODE**\n\nNext you will begin your first metaNODE session.  New terminal tab, cd navigate to:\n\n    $ .../extinction-event\n    $ source env/bin/activate\n    $ cd EV\n    $ python3 metaNODE.py\n\t\nEnter your account name and market of choice.  You can press enter to skip and a default account and market will be chosen:\n```\naccount: abc123\ncurrency: open.btc\nassets: bts\n```\nCapitalization does not matter for the asset and currency.  metaNODE CANNOT access your funds.\n\n**MICRO DEX**\n\nThis will ensure you have all dependencies to sign transactions installed.  In a new terminal tab, with metaNODE still running in first tab, navigate to:\n\n    $ .../extinction-event\n    $ source env/bin/activate\n    $ cd EV\n    $ python3 microDEX.py\n\nYou 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.  \n\n*microDEX HAS FULL ACCESS TO YOUR FUNDS IF YOU GIVE YOUR WIF*\n\nYou 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.\n\nThe best way to get your WIF is by opening the reference Bitshares User Interface:\n\nsettings \u003e\u003e accounts \u003e\u003e show keys\nclick on \"KEY\" icon\nclick \"show private key in WIF format\"\n\nto obtain a copy of the reference User Interface, visit:\n\nhttp://bitshares.org/download/\n\n**Application Programming Interface Keys**\n\nThe 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. \n\nGo get API keys from: \n\nwww.cryptocompare.com\n\nwww.alphavantage.com\n\nwww.nomics.com\n\nopen apiKEYS.py and install your keys where they go in the dictionary, save file and close\n\n*NOTE* This py file must be in JSON format!\n- use DOUBLE QUOTES and COMMA after each entry except the last; no comma\n- DO NOT include any comments or other text in this document\n\nThese 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.\n\nIf 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. \n\n**PROXY TEST**\n\nproxyTEST.py will ensure that you have installed your back testing application programming interface keys correctly.\n\nopen proxyTEST and there is user input `API` near the top of the script.  Run a test on `API` numbers 1 through 6. \n\n**EXTINCTION EVENT**\n\nIn a new terminal tab, with metaNODE still running in first tab, navigate to:\n\n    $ .../extinction-event\n    $ source env/bin/activate\n    $ cd EV\n    $ python3 extinctionEVENT.py\n\nYou will be presented with some options:\n\n**BACKTEST** \n\nallows you to back testing and tune strategies using the `tune_install()` definition within extictionEVENT.py\n\n**PAPER**\n\nallows you to run a live session without giving the bot your keys, no live trades will be made\n\n**LIVE** \n\nis live trading with funds per your `control_panel()` and `tune_install()` settings\n\n**SALES**\n\nallows you to sell extinctionEVENT strategy tunes by posting images of trade points without showing your moving average thresholds\n\n**ORDER_TEST** \n\nis a live trading session WITH FUNDS but places orders far from the margins to test authentication\n\n**OPTIMIZE**\n\nauto tunes back tests, this is NOT currently open source; I'm currently considering a worker for this and more.\n\n**ACCOUNT HISTORY**\n\nWhenever 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. \n\n**BRIEF DESCRIPTION OF TOOLS**\n\n**extinctionEVENT.py**\n\nmoving average crossover algorithmic trading bot framework for trading on the Bitshares DEX\n**microDEX.py**\n\nlightweight user interface to perform manual buy/sell/cancel operations on the Bitshares DEX\n\n**metaNODE.py**\n\nstatistical curation of market data from multiple public DEX nodes into a streaming text file\n\n**latencyTEST.py**\n\nsearch for low latency Bitshares nodes in your region\n\n**proxyDEX.py**\n\ncorrectly interpolated HLOCV Bitshares DEX candles for back testing and live session\n\n**proxyCEX.py**\n\nHLOCV altcoin:altcoin daily candles for back testing from www.cryptocompare.com\n\n**proxyMIX.py**\n\nHLOCV crypto exchange specific daily candles for back testing from www.nomics.com\n\n**proxyALPHA.py**\n\nHLOCV stocks, forex, and crypto:forex daily candles for back testing from www.alphavantage.com\n\n**apiKEYS.py**\n\ndictionary to store your cryptocompare, alphavantage, and nomics application programming interface keys\n\n**proxyTEST.py**\n\nutility to gather and plot data from proxyDEX, CEX, MIX, and ALPHA\n\n**accountHISTORY.py**\n\nmetaNODE.py takes a balances snapshot hourly whenever it is running, use accountHISTORY to visualize\n\n**Visit www.litepresence.com for machine optimized algorithms**\n\nusing elitist bred quantum particle swarms I run hundreds of thousands of back tests to optimize algorithms\nyou can optimize algorithms yourself by trial and error, but why not let my AI handle it?\n\nwww.litepresence.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitepresence%2Fextinction-event","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitepresence%2Fextinction-event","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitepresence%2Fextinction-event/lists"}