Code Monkey home page Code Monkey logo

conditional_order's Introduction

๐Ÿ‘‹ Hi, Iโ€™m Dariush Dehghani via @r-dehghani on GitHub

Gmail Website Badge YouTube GitHub followers

  • ๐Ÿ‘€ Iโ€™m interested in Python programming and machine learning ๐Ÿ‘จโ€๐Ÿ’ป
  • ๐ŸŒฑ Iโ€™m currently learning machine learning ๐Ÿง 
  • ๐Ÿณ nowadays I'm reading SQL cookbook by by Anthony Molinaro and Robert de Graaf
class Programmer:
    def __init__(self, name: str, family: str, is_alive: bool, coding: bool = False):
        self.name = name
        self.family = family
        self.is_alive = is_alive
        self.coding = coding
    
    def __str__(self) -> str:
        print(f"Be a good version of yourself {self.name} {self.family}.")

me = Programmer(name="Dariush", Family="Dehghani", is_alive=True, coding=None)

while me.is_alive == True:
    me.coding = True

My Current Streak:

GitHub Streak

Top Frequency Languages and Stats:

Top Langs Anurag's GitHub stats

conditional_order's People

Contributors

r-dehghani avatar

Watchers

 avatar  avatar

conditional_order's Issues

TraderApi

We need an API with the following actions:

  • Given the SymbolISIN, return the historical stock info for that symbol

    Parameters: SymbolISIN, StartDate, End date

  • CRUD actions for TriggerDefinition

Scheduled Workers

There are some statistical definitions which can be calculated over history of stored data in database.

For Symbols data in the database, we need the following numbers to be calcualted and stored in some other table:

  • Average Trade Price
  • Last Price

You should create a base platform for running Jobs which can be scheduled beforehand, e.g:

  • Calculate Average Trade Price after market close every day (5 PM every day)
  • Calculate Last Price at 14:00 every day

You can search for "cron jobs" or "cron expressions" to know more. In fact a Cron Expression provides enough flexibility to support any scheduling scenario. The position of this worker relative to other services is displayed in the solution diagram.

StockInfoHandler Service - Storage

We need our StockInfoHandler service to store the incoming message in the Postgres database.

Configurations:

Postgresql Connection String
Service should only send the Ack to the RabbitMQ when the message is stored in the database.

Add triggers

By adding Triggers the endpoint user can see when and how a symbol reaches to the desired price.

Purposes:

  • > create the trigger system
  • > let Endpoint user decide which operator should be run

Actions definition

Adds the possiblity to define Actions as part of Trigger definition.

The following actions should be supported for initial version:

  • Send Order
  • Send Message (different providers with the ability to easily add one later)
    • Slack
    • Email
    • SMS

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.