Git Product home page Git Product logo

stockfighter's Introduction

StockFighter

References used and good readings on Stockfighter http://www.investopedia.com/ask/answers/06/quoteorderdrivenmarket.asp http://www.investopedia.com/terms/o/order-book.asp

Fifth Level - Irrational Exuberance -Goal -> short everything, pop the bubble, then buy everything back.

-interstingly. the orderbook api doesn't capture market order. it only shows what orders are standing in there.
-i think theres a finite amount of units available. if i can corner the market , selling lots incrementally, 
-one of the bot always makes market order in 1 unit quantity, this can drive the last traded price up.

Fourth Level - Dueling Bulldozers - best try so far. Beat lvl 4 at tick 1464 , roughly 292 day Reached NAV $225 before instance time up. Reached NAV $205k before the instance time was up around 2506 secs 41 minutes

To Do List: look at the relation between standing id and incoming id.

Bug- the self.order got updated before the self.position_so_far did. so the BuySell had incorrect numbers to make decision with, causing losing games.

Done make sf.positionSoFar , cash, nav expected position in gamemaster private instance variables.
Done -make all the parameters for each class adjustable in the init of each class.

-Done Made CheckFill reliant on the self.order rather than check_status_order method to pump out the list of current orders.
since self.order is kept in memory, rather than check_status_order is a HTTP request. so its much faster and should be accurate.
-Done make BuySell independent of CurrentStatus, as in take out the queue reliance.
-Done -add timestamp on all the print out messages. 	
-Done -the alreadyBought and alreadySold arnt always accurate. an order would be showing up at one time, but later it wouldnt, but the execution ticker wouldnt hav eupdate it. or that it shows no outstanding order, but infact there is. 
	I've solve this by implementing a order dictionary that tracks locally my current orders. 

-Implement a way to examin the orderbook and filter out the orders that are from myself.

Done A.) buy limit orders seems to be cancelled immediately after placed by the CheckFill class.
	probably has to do with the cash. 
	this was because of bug in checkign the timestamp of order with current UTC time. i have disable it because doesn't work

Done B.) the CurrentStatus doesnt produce the same NAV as the execution socket NAV. better to run the same script in thirdTradeTest sell_side, because they have an indicator 		  there to tell us. 
		turns out execution websocket is more accurate. because it calcaultes individual fill and their price.

-DONE Quotesocket sends msgs even when there are changes unseen in the quotes themselves. such as failed 	FOK or cancel orders on closed. so need to make a checker in the quotesocket client for it.
-Done in the sd.py, finish up the outliers checker in the bid depth and ask depth.
-DONE Also, lastTrade in the quote socket needs to be a scatter plot rather than compare against the quoteTime because lastTrade has a lastTrade time.

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.