HSX Forum

Playing & Trading Strategy

Development of a starbond "Tool of the Trade" question <inside>...

Posted by: JustWondering (a.k.a psisson) on Dec 09, 09:33

One type tool that I believe is essential for trading starbonds is one that calculates the next adjust price. Kaigee and HowProfitable are excellent tools for this purpose, but if those sites should go away or fail to be kept up to date then starbonds would be difficult to trade. Thus I'd like to develop a tool of my own.

HSX used to provide XML feeds that provided lots of useful information about securities, but now that those feeds are gone. The development of a starbond tool requires an application to fetch an HTML page of a starbond, parse the content, and then fetch and parse each individual moviestock page to get information about price, gross, release pattern, etc. Besides the obvious inefficiences and waste of HSX resources and bandwith, there are challenges with the data on the html pages. One of the biggest challenges is the release pattern. It is extremely difficult to programmatically determine the estimated adjust price because the release pattern has no standard format such as those used for other fields like "Status". Without a standard format, it is difficult to determine the adjust date and order of adjust. Sites like Kaigee and HowProfitable have managed to figure it out, but I haven't been able to reliably do so.

Can anyone (especially @Kaigee or @elchan) who has developed a tool provide any insight into how to reliably determine the release pattern? Regular expressions would be terrific, but any info would be helpful.

Here are a few regexps I currently use, but I know this is not reliable for parsing the non-standard "Release Pattern":

case pattern
when /\Awide\Z/i then "WIDE"
when /\Alimited\Z/i then "LIMITED"
when /[^\;]*\;.*?\bwide\b/i then "WIDE"     # i.e limited 12/11; wide 12/18
when /\ANY\/LA\Z/i then "LIMITED"
else "UNKNOWN"
end

Thanks!





Post a Reply

To post to the forums you must first login!


Star Wars: Starfighter (SWAR4) 33324 255.21 (+1.50)          Minions & Monsters (MNIO3) 150000 303.39 (+1.39)          The Comebacker (CMBAC) 150000 23.79 (-2.11)          Supergirl (SUPGR) 100000 137.53 (-0.91)          Jackass: Best and Last - Opening (JCKA6.OW) 100000 17.26 (-0.15)          Violent Night 2 (VILN2) 40000 24.55 (-0.05)          Jackass: Best and Last - Opening (JCKA6.OW) 100000 17.26 (-0.15)          Super Troopers 3 (STRO3) 20 30.10 (+0.02)          Cut Off (CUTOF) 150000 28.20 (+0.16)          Bruce Lee (BRLEE) 150000 10.62 (+0.06)          Toy Story 5 (TOYS5) 150000 431.69 (-0.88)          The Legend of Zelda (ZELDA) 40000 227.22 (+0.34)          Street Fighter (STFTR) 40000 79.96 (+0.06)          Resident Evil (RESE8) 40000 62.71 (+0.10)          Super Troopers 3 (STRO3) 40138 30.10 (+0.02)          The Odyssey (ODYSE) 6745 304.17 (+1.78)          Airman (AIRMA) 150000 18.42 (+0.04)          Minions & Monsters (MNIO3) 150000 303.39 (+1.39)          White Elephant (WELEP) 149998 14.44 (+0.78)          Supergirl (SUPGR) 100000 137.53 (-0.91)          The Lunar Chronicles (LUNAR) 150000 60.20 (+1.94)          42.6 Years (426YR) 149998 10.12 (-0.11)          42.6 Years (426YR) 149996 10.12 (-0.11)          4 x 4: The Event (4X4TE) 149998 8.35 (+0.51)          4 x 4: The Event (4X4TE) 149996 8.35 (+0.51)          Beach Read (BCHRD) 149996 28.01 (+0.09)          Toy Story 5 (TOYS5) 41292 431.69 (-0.88)          Fortitude (FRTUD) 150000 9.57 (-0.04)          The Origin of the World (TOOTW) 149991 18.27 (+1.45)          The Origin of the World (TOOTW) 149991 18.27 (+1.45)          Fortitude (FRTUD) 149996 9.57 (-0.04)          Club Kid (CLUBK) 149991 14.50 (+1.51)          Club Kid (CLUBK) 149991 14.50 (+1.51)          Jane (JANE1) 149996 11.79 (+0.05)          Backrooms $175M Blockbuster Warr (BACRM.BW) 25000 5.56 (+0.56)          Jennifer's Body 2 (JBOD2) 149996 13.20 (-0.05)          Live Like That (LVLKT) 149996 14.90 (-0.05)          Metal Gear Solid (MTLGR) 149996 13.74 (+0.05)          Pendulum (PNDLM) 149996 6.37 (-0.13)          Backrooms $175M Blockbuster Warr (BACRM.BW) 25000 5.56 (+0.56)          The Chosen Season 6 (TCS61) 149996 11.02 (+0.07)          The Comebacker (CMBAC) 25000 23.79 (-2.11)          A Minecraft Movie Squared (MINE2) 85888 318.11 (+0.17)          Animal Friends (ANFRN) 3 58.03 (-0.10)          Fortitude (FRTUD) 150000 9.57 (-0.04)          Renate Reinsve (REREI) 25000 13.70 (+0.40)          Fortitude (FRTUD) 150000 9.57 (-0.04)          Animal Friends (ANFRN) 3 58.03 (-0.10)          Backrooms $175M Blockbuster Warr (BACRM.BW) 25000 5.56 (+0.56)          Mark Duplass (MDUPL) 25000 30.99 (+0.25)