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!


Michaela Coel (MCOEL) 25000 83.12 (+1.26)          The Super Mario Galaxy Movie $39 (MARI2.BW) 25000 5.00 (0.00)          Michael 2 (MJAC2) 150000 153.73 (+6.77)          Hoppers $140M Blockbuster Warran (HOPPR.BW) 25000 11.89 (+0.35)          Wonka 2 (WONK2) 150000 67.75 (-1.05)          The Man I Love (TMILV) 150000 4.06 (-0.17)          Normal (NORML) 74062 8.76 (-0.15)          Jennifer's Body 2 (JBOD2) 150000 16.44 (-0.15)          The Adventures of Cliff Booth (TAOCB) 150000 9.19 (-0.12)          Luis Guzman (LGUZM) 25000 44.70 (+0.50)          Luis Guzman (LGUZM) 25000 44.70 (+0.50)          Ono Ghost Market (ONOGM) 150000 72.07 (+2.07)          Hoppers $140M Blockbuster Warran (HOPPR.BW) 25000 11.89 (+0.35)          Exit 8 (EXIT8) 150000 3.82 (-0.37)          Normal (NORML) 150000 8.76 (-0.15)          Wife & Dog (WIFDG) 50000 14.48 (-0.05)          Mortal Kombat II H$40 Put (MKMB2.PU) 25000 1.66 (+0.06)          Travis Knight (TKNIG) 25000 90.62 (-0.14)          Spike Fearn (SFEAR) 25000 23.24 (-0.13)          The Devil Wears Prada 2 - Openin (PRAD2.OW) 19840 86.42 (+0.84)          Hoppers $140M Blockbuster Warran (HOPPR.BW) 25000 11.89 (+0.35)          Hoppers $140M Blockbuster Warran (HOPPR.BW) 25000 11.89 (+0.35)          Kokuho (KOKUH) 150000 1.02 (-0.01)          Star Wars: The Mandalorian and G (SWAR3) 150000 206.14 (-4.83)          Normal (NORML) 150000 8.76 (-0.15)          Normal (NORML) 150000 8.76 (-0.15)          Michael (MJACK) 150000 236.44 (+13.57)          John Lithgow (JLITH) 25000 24.70 (-0.12)          John Lithgow (JLITH) 25000 24.70 (-0.12)          Ono Ghost Market (ONOGM) 150000 72.07 (+2.07)          The Super Mario Galaxy Movie $39 (MARI2.BW) 25000 5.00 (0.00)          Sean Bean (SBEAN) 25000 1.80 (-0.07)          Ono Ghost Market (ONOGM) 150000 72.07 (+2.07)          Speed the Plow (SPLOW) 150000 3.69 (-0.09)          Barracuda (BRCUD) 150000 7.98 (+0.22)          The Super Mario Galaxy Movie $39 (MARI2.BW) 25000 5.00 (0.00)          It Ends (ITNDS) 150000 5.66 (-0.15)          4 x 4: The Event (4X4TE) 150000 8.82 (-0.32)          Mortal Kombat II H$40 Put (MKMB2.PU) 25000 1.66 (+0.06)          Driver's Ed (DRVED) 150000 4.87 (-2.49)          Mortal Kombat II - Opening Weeke (MKMB2.OW) 100000 41.77 (+0.53)          Driver's Ed (DRVED) 150000 4.87 (-2.49)          Mortal Kombat II H$40 Call (MKMB2.CA) 25000 3.10 (+0.16)          Billie Eilish - Hit Me Hard And (HMHAS.PU) 25000 1.86 (+0.12)          Billie Eilish - Hit Me Hard And (HMHAS.OW) 100000 10.76 (-0.45)          Billie Eilish - Hit Me Hard And (HMHAS.CA) 25000 2.83 (-0.15)          ABC: 9-1-1 Nashville (911NAS) 25000 13.46 (+0.07)          4 x 4: The Event (4X4TE) 150000 8.82 (-0.32)          4 x 4: The Event (4X4TE) 150000 8.82 (-0.32)          The Sheep Detectives H$15 Put (3BAGF.PU) 25000 1.42 (+0.12)