StockStream API

StockStream surfaces data about what stocks have been bought and sold in the Robinhood account as well as who voted for which stock each round. An up-to-date snapshot of the portfolio is available as well. Please see the below documentation for accessing these APIs.

If you have any comments, questions or suggestions about the API or StockStream in general, please join the #development channel in the StockStream Discord


Orders


The Orders API surfaces all the orders placed on Robinhood, and their current state. You can use this API to get orders by date, by symbol or by id.


http://api.stockstream.live/v1/orders/date/:date
http://api.stockstream.live/v1/orders/symbol/:symbol
http://api.stockstream.live/v1/orders?ids=:id_list

[
   {
      "id":"885e3d109ef091e047313aab39e2d6adfe3f1d83",
      "date":"08/04/2017",
      "symbol":"COST",
      "side":"buy",
      "state":"filled",
      "price":163.98,
      "quantity":1,
      "timestamp":1501867175892,
      "executions":[
         {
            "quantity":"1.00000",
            "timestamp":"2017-08-04T17:12:10.843000Z"
         }
      ]
   },
]


Votes


The Votes API surfaces the voting choices for each player for each round. This API can be queried by player or by date.


http://api.stockstream.live/v1/votes/date/:date
http://api.stockstream.live/v1/votes/player/:player
http://api.stockstream.live/v1/votes/order/:orderId

[
   {
      "username":"twitch:stockstream",
      "date":"08/21/2017",
      "action":"BUY",
      "parameter":"IRDM",
      "timestamp":1503334166257,
      "orderId":"c994127b634a8657d7ebccea8c9c7542413b3da1"
   }
]


Portfolio


You can get the current snapshots by hitting the following endpoint.

http://api.stockstream.live/v1/portfolio/current

To access historical snapshots, you must first query a date to get a list of the timestamps, then query that timestamp to access the snapshots.


http://api.stockstream.live/v1/portfolio/date/:date
http://api.stockstream.live/v1/portfolio/date/:date/:timestamp

Below are some truncated data examples:


[
   "1502456640000",
   "1502492940000"
]

{
   "cashBalance":1510.1799,
   "assets":[
      {
         "symbol":"SINA",
         "shares":1,
         "avgCost":94.5
      },
      {
         "symbol":"WTR",
         "shares":3,
         "avgCost":33.6233
      }
   ]
}