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!


Company (COMPN) 150000 9.38 (+0.79)          Ryan Gosling (RGOSL) 25 158.75 (0.00)          Everytime (EVRTM) 33 0.27 (0.00)          Zero A.D.: The Birth of Christ (BTLHM) 150000 33.66 (-0.20)          The Gallerist (GALRS) 149997 6.75 (+0.90)          Jurassic World sequel (JURA8) 41472 230.32 (+1.54)          The Gallerist (GALRS) 149993 6.75 (+0.90)          PAW Patrol: The Dino Movie (PAWP3) 100000 53.85 (+0.47)          Emily the Strange (EMILY) 150000 13.92 (-0.04)          Kristen Wiig (KWIIG) 25000 80.60 (-0.50)          April X (APRLX) 150000 1.12 (-0.03)          Samara Weaving (SAWEA) 22 6.53 (0.00)          Company (COMPN) 150000 9.38 (+0.79)          Insidious: Out of the Further - (NSID6.OW) 100000 26.98 (+0.29)          Corey Hawkins (CHAWK) 25000 69.18 (+0.25)          Company (COMPN) 150000 9.38 (+0.79)          Ramayana (RAMAY) 632 15.63 (+0.06)          Drifter (DRFTR) 149996 5.12 (+1.59)          Wonka 2 (WONK2) 150000 46.95 (-2.73)          Drifter (DRFTR) 149993 5.12 (+1.59)          Wonka 2 (WONK2) 150000 46.95 (-2.73)          Last Night At The Lobster (LNATL) 2000 4.00 (0.00)          Father Joe (FTJOE) 2000 6.00 (0.00)          Ice Cream Man (ICREM) 10000 7.57 (-1.07)          Helldivers (HELDV) 120000 111.76 (+1.03)          Late Fame (LTFAM) 9000 0.30 (+0.02)          Spider-Man: Brand New Day (SPID9) 45 697.19 (+9.87)          Anne Hathaway (AHATH) 25000 59.32 (+0.33)          Last Night At The Lobster (LNATL) 150000 4.00 (0.00)          Spider-Man: Brand New Day (SPID9) 110 697.19 (+9.87)          Father Joe (FTJOE) 150000 6.00 (0.00)          The Fence (TCOTG) 1000 0.07 (+0.02)          Tony (TONY) 12026 14.92 (+0.11)          Drifter (DRFTR) 150000 5.12 (+1.59)          Wonka 2 (WONK2) 50000 46.95 (-2.73)          Late Fame (LTFAM) 2026 0.30 (+0.02)          One Night Only (ONTON) 7 19.40 (-0.63)          Father Joe (FTJOE) 150000 6.00 (0.00)          The Weight (THEWT) 31000 8.46 (-0.02)          Last Night At The Lobster (LNATL) 150000 4.00 (0.00)          Michael 2 (MJAC2) 10000 180.62 (+0.29)          The Odyssey (ODYSE) 12 448.70 (+1.00)          Ice Cream Man (ICREM) 10000 7.57 (-1.07)          Wonka 2 (WONK2) 150000 46.95 (-2.73)          Wonka 2 (WONK2) 150000 46.95 (-2.73)          Hercules (HRCUL) 10000 14.93 (-0.02)          Last Night At The Lobster (LNATL) 1000 4.00 (0.00)          Wonka 2 (WONK2) 150000 46.95 (-2.73)          Last Night At The Lobster (LNATL) 12026 4.00 (0.00)          Onwards and Sideways (OWASW) 150000 1.80 (-0.20)