Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
Initial Commit
  • Loading branch information
Zaitsev11 authored and Zaitsev11 committed Mar 6, 2017
0 parents commit 1d722d8
Show file tree
Hide file tree
Showing 69 changed files with 22,355 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Kurt Heiden

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Background
The purpose of this project is to make 1 million dollars.

Developer Documentation:
https://developer.tradier.com/documentation


Steps:
1) Extract the option chains available on the major exchanges.
2) Analyze the option chains
- Magic number for all strike points
- Store analysis on MySQL server
3) Draw charts
4) Get recommendation on which options to purchase
5) Manual confirmation of the options to purchase
6) Automatic trade

Other things required to complete:
1) Paper trading API connection

Encrypted45
1 change: 1 addition & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#import optionstrader
2 changes: 2 additions & 0 deletions dev.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2017-03-05 14:18:03,726 config.py_.load_from_file : file_dict Loaded from /Users/kheiden/Desktop/optionstrader/optionstrader/config_data/config_data_Dev.json
2017-03-05 14:18:03,726 config.py_.load_from_file : file_dict Loaded from /Users/kheiden/Desktop/optionstrader/optionstrader/config_data/config_data_Dev.json
3,081 changes: 3,081 additions & 0 deletions nasdaq_symbols.txt

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions optionstrader/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# unfinished
from analyzer import Analyzer
from account import Account
from database import Database
from customlogging import CustomLog
from config import Config
from parser import Parser
from savefile import Savefile
from scanner import Scanner
from tools import Tools
from webservice import Webservice
Binary file added optionstrader/__init__.pyc
Binary file not shown.
34 changes: 34 additions & 0 deletions optionstrader/account.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
from database import Account
from account import Account

class Account:

def __init__(self):
self.account = Account()
return

def create_new_account(self, account_type, initial_deposit):
# TODO Implement this method
# RAND() * POWER(10, 20) AS UNSIGNED
return

def get_balance(self):
output = self.account.base.get_checking_account_balance()
self.account.connection.close_connection()
return output

def change_checking_account_balance(self, var):
self.account.update_checking_account(var)
self.account.close_connection()

def add_money_to_checking(self, var):
self.account.add_money_to_checking(var)
self.account.close_connection()

def subtract_money_from_checking(self, var):
self.account.subtract_money_from_checking(var)
self.account.close_connection()

def add_option_chain_to_account(self, option_chain):
self.account.add_stock_to_self.account(option_chain)
self.account.close_connection()
Binary file added optionstrader/account.pyc
Binary file not shown.
Loading

0 comments on commit 1d722d8

Please sign in to comment.