Giter Club home page Giter Club logo

content-mean-reversion-lemon.markets's Introduction

Mean Reversion Strategy with the lemon.markets API

This repository contains a Python Script that implements the mean reversion strategy using the lemon.markets API.

Project Structure

This project contains a number of models, which you can find in the models folder. In there, we define all relevant functions for Instruments, Orders, Token and Trading Venue.

All helper functions are defined in the helpers.py file.

The actual mean reversion is logic is defined in the main.py file with mean_reversion() being the main function.

Set up

To test locally, clone this repo, use the IDE of your choice to run (although we highly recommend PyCharm) and install all required packages through the provided requirements.txt file.

Set environment variables

If you want to test locally, you need to define a number of environment variables.

ENV Variable Explanation
API_KEY Your API key
MIC Market Identifier Code of Trading Venue
BASE_URL_TRADING Base URL of our paper Trading API
BASE_URL_DATA Base URL of our Market Data API

Deploy to Heroku

If you are interested in hosting this project in the cloud, we suggest that you use Heroku to do so. To make the hosting work, you need to create a new project and connect your GitHub repo. You can find a good explanation here. Additionally, you need to specify the environment variables through Heroku directly. You can do so by either using:

heroku config:set [KEY_NAME=value โ€ฆ]

or by adding them in your project in the Heroku Dashboard under /Settings/Config Vars.

Use this button to deploy to Heroku directly.

Deploy

Contribute to this repository

lemon.markets is an API from developers for developers. Therefore, we highly encourage you to get involved by opening a PR or contacting us directly via [email protected].


Have fun and happy coding,

your ๐Ÿ‹.markets team

content-mean-reversion-lemon.markets's People

Contributors

braslerl avatar mariussprenger avatar snelj avatar

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.