gomeler / marketOCR

Leveraging Tesseract-OCR to abuse some markets
0 stars 0 forks source link

Process buy orders, track inventory #14

Open gomeler opened 5 years ago

gomeler commented 5 years ago

A frustration from past attempts was the inability to accurately track the true value of items. In theory I'll be able to track items being acquired due to buy order volume decreasing. I can then use the historical price to set the cost for the number of items that the order volume decreased by.

This information will eventually be used to set a floor for future sell orders, so I don't sell something for less than it cost for me to acquire it.

gomeler commented 5 years ago

We'll need a new table to track inventory. The data that we'll track for now is as follows: typeID, itemName, orderID, price, volume, acquisitionDate. Each time a buy order is scraped and the volume changes, we add another entry to the inventory table.

When a sell order is created we should be able to link it to one or more inventory entries, and with that information we can set a reasonable stop-loss and track inventory velocity.