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!


Supergirl (SUPGR) 150000 137.48 (-0.96)          Supergirl (SUPGR) 1149 137.48 (-0.96)          Supergirl (SUPGR) 150000 137.48 (-0.96)          Spider-Man: Brand New Day (SPID9) 8089 432.09 (+0.84)          Pendulum (PNDLM) 150000 6.31 (-0.19)          Lucca Mortis (LUCAM) 150000 0.11 (0.00)          Alison Brie (ABRIE) 25000 19.46 (+0.20)          The Lunar Chronicles (LUNAR) 150000 61.09 (+2.83)          The Lunar Chronicles (LUNAR) 150000 61.09 (+2.83)          The Comebacker (CMBAC) 150000 23.32 (-2.58)          Lucca Mortis (LUCAM) 150000 0.11 (0.00)          My Darling California (MDCAL) 150000 21.40 (+0.05)          Backrooms $175M Blockbuster Warr (BACRM.BW) 25000 5.68 (+0.68)          Dirty Dancing sequel (DANC3) 150000 14.99 (-0.06)          Pendulum (PNDLM) 150000 6.31 (-0.19)          Coyote vs. ACME (CVACM) 280 49.49 (+0.06)          In Love (NLOVE) 150000 15.63 (-0.02)          The Lunar Chronicles (LUNAR) 150000 61.09 (+2.83)          The Lunar Chronicles (LUNAR) 20000 61.09 (+2.83)          The Comebacker (CMBAC) 150000 23.32 (-2.58)          The Comebacker (CMBAC) 150000 23.32 (-2.58)          Bad Fairies (BFAIR) 150000 46.58 (+0.99)          Angel and the Badman (ANBAD) 149995 14.08 (+0.13)          Angel and the Badman (ANBAD) 149995 14.08 (+0.13)          Star Wars: The Mandalorian and G (SWAR3.BW) 15000 8.61 (+0.15)          Jackass: Best and Last H$15 Call (JCKA6.CA) 25000 3.81 (-0.16)          Spider-Man: Brand New Day (SPID9) 11635 432.09 (+0.84)          Jackass: Best and Last - Opening (JCKA6.OW) 100000 17.11 (-0.30)          Toy Story 5 (TOYS5) 29887 431.63 (-0.94)          Supergirl - Opening Weekend (SUPGR.OW) 100000 51.26 (-0.26)          Supergirl - Opening Weekend (SUPGR.OW) 100000 51.26 (-0.26)          Supergirl H$55 Put (SUPGR.PU) 25000 3.76 (+0.05)          Backrooms $175M Blockbuster Warr (BACRM.BW) 25000 5.68 (+0.68)          Supergirl H$55 Call (SUPGR.CA) 25000 2.38 (-0.07)          Spider-Man: Brand New Day (SPID9) 74017 432.09 (+0.84)          Daniel: The Fiery Furnace (DANIL) 149995 6.38 (+0.07)          Supergirl - Opening Weekend (SUPGR.OW) 100000 51.26 (-0.26)          Daniel: The Fiery Furnace (DANIL) 149995 6.38 (+0.07)          The Death of Robin Hood (TDORH) 2000 7.82 (-0.37)          K-Pop: The Debut aka K-Pop Super (KPOPM) 149995 38.84 (+0.19)          K-Pop: The Debut aka K-Pop Super (KPOPM) 149995 38.84 (+0.19)          Star Trek (TREK4) 9998 21.00 (0.00)          Supergirl H$55 Call (SUPGR.CA) 25000 2.38 (-0.07)          Supergirl - Opening Weekend (SUPGR.OW) 100000 51.26 (-0.26)          Todd Phillips (TPHIL) 999 149.36 (+0.33)          Michael $285M Blockbuster Warran (MJACK.BW) 25000 17.33 (+0.07)          Backrooms $175M Blockbuster Warr (BACRM.BW) 25000 5.68 (+0.68)          The Lunar Chronicles (LUNAR) 150000 61.09 (+2.83)          Toy Story 5 (TOYS5) 1 431.63 (-0.94)          The Super Mario Galaxy Movie $39 (MARI2.BW) 7000 21.52 (+0.19)