Skip to content

yashspatel23/MEA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arb

Development Setup:

# dev box
cd dev_box
./bin/init.sh  # install backend services
./bin/start.sh  # start services 
./bin/stop.sh  # stop services

# initialize databases
source conf/env_dev
pip install -r requirements.txt 
export FLASK_APP=arb/manage/cmd.py && flask setup

# dev server
python wsgi.py

To deploy:

  1. Set up virtual environment if desired.
  2. Install all project dependencies sudo pip install -r requirements.txt.
  3. Configure Exchange credentials - Copy the config_sample.py file as config.py and add user credentials.
  4. Run the application: python arb/main.py

Required versions: Python version: 2.7.13 / OpenSSL 1.0.2l

Note: When running the project, if you receive the error ImportError: No module named config, add the base directory to PYTHONPATH in .bash_profile.


Supported Exchanges:

  1. GDAX
  2. CEX

Code validation and testing

# single test module
nose2 --config conf/nose2.cfg arb_tests.core.models.test_fixers


# run all tests
nose2 --config conf/nose2.cfg

# pre-configured validations
fab polish:ci

Notebook

# Start Notebook Server
source conf_credentialed/sensitive_env-jupyter && jupyter notebook

# Check Signals
- execute the two cells in order under the heading: Chart Signals

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published