mlebjerg / MemeMarketSignals

GNU Affero General Public License v3.0
10 stars 4 forks source link

Feature To Do: Import existing trade data from webull #3

Open mlebjerg opened 2 years ago

mlebjerg commented 2 years ago

Upon making a get request on this url: https://quotes-gw.webullfintech.com/api/stock/capitalflow/deals?count=1&timestamp=1650564618815&tickerId=913255341

You can get the trades that has been made: the response looks something like this: { "tickerId": 913255341, "lastTimestamp": 1650564618799, "data": [ { "tradeTime": "14:10:18", "tradeStamp": 1650564618799, "price": "141.92", "volume": "48", "trdBs": "N", "trdEx": "TRF", "trdSeq": 12320 } ] } It only gets 100 trades at a time, but we can change the timestamp in the params to "lastTimestamp" from the last response and get more, i don't know if Webull has a limit on how far back you can go.