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!


Jack of Spades (JACSP) 150000 6.73 (+0.84)          Jack of Spades (JACSP) 150000 6.73 (+0.84)          Compassionate Release aka The Fr (CMPSN) 150000 30.00 (0.00)          Denzel Washington (DWASH) 25000 75.19 (-1.28)          ABC: The Rookie: North (ROOKIN) 25000 10.53 (-0.21)          Denzel Washington (DWASH) 25000 75.19 (-1.28)          Christopher McQuarrie (CMCQU) 25000 151.16 (+1.00)          Compassionate Release aka The Fr (CMPSN) 150000 30.00 (0.00)          The Only Living Pickpocket in Ne (OLPNY) 160 6.09 (+1.46)          Compassionate Release aka The Fr (CMPSN) 2000 30.00 (0.00)          Focker In-Law (MPRN4) 75087 119.53 (-3.34)          A Minecraft Movie Squared (MINE2) 149999 337.91 (+1.00)          FOX: Baywatch (BAYWAT) 5000 9.16 (+1.16)          Here Comes the Flood (HCTFL) 150000 0.09 (+0.01)          Ebenezer (EBNZR) 150000 95.75 (-1.56)          Focker In-Law (MPRN4) 150000 119.53 (-3.34)          Ebenezer (EBNZR) 150000 95.75 (-1.56)          How to Rob a Bank H$15 Call (HTRAB.CA) 25000 1.43 (-0.06)          How To Rob A Bank (HTRAB) 149999 43.21 (-0.89)          Compassionate Release aka The Fr (CMPSN) 150000 30.00 (0.00)          X-Men aka Mutants (XMEN8) 150000 220.66 (+0.17)          How To Rob A Bank (HTRAB) 150000 43.21 (-0.89)          How To Rob A Bank (HTRAB) 149999 43.21 (-0.89)          Focker In-Law (MPRN4) 150000 119.53 (-3.34)          Compassionate Release aka The Fr (CMPSN) 143434 30.00 (0.00)          Godzilla Minus Zero (GODM2) 150000 78.49 (-1.96)          The Cat in the Hat - Opening Wee (TCATH.OW) 100000 31.94 (-1.60)          Compassionate Release aka The Fr (CMPSN) 150000 30.00 (0.00)          The Cat in the Hat (TCATH) 150000 98.41 (-2.34)          The Cat in the Hat (TCATH) 150000 98.41 (-2.34)          World War Z 2 (WWZ2) 1 108.02 (+2.48)          Compassionate Release aka The Fr (CMPSN) 150000 30.00 (0.00)          Jack of Spades (JACSP) 149999 6.73 (+0.84)          The Legend of Zelda (ZELDA) 300 246.47 (+0.01)          Tyrant (TYRNT) 149999 20.70 (+0.66)          Jack of Spades (JACSP) 150000 6.73 (+0.84)          Compassionate Release aka The Fr (CMPSN) 150000 30.00 (0.00)          Compassionate Release aka The Fr (CMPSN) 150000 30.00 (0.00)          Compassionate Release aka The Fr (CMPSN) 150000 30.00 (0.00)          Compassionate Release aka The Fr (CMPSN) 6566 30.00 (0.00)          Focker In-Law (MPRN4) 149999 119.53 (-3.34)          Compassionate Release aka The Fr (CMPSN) 150000 30.00 (0.00)          Godzilla Minus Zero - Opening We (GODM2.OW) 100000 36.28 (-1.57)          Compassionate Release aka The Fr (CMPSN) 150000 30.00 (0.00)          The Cat in the Hat - Opening Wee (TCATH.OW) 100000 31.94 (-1.60)          Callum Turner (CTURN) 8000 8.87 (+0.12)          Godzilla Minus Zero - Opening We (GODM2.OW) 100000 36.28 (-1.57)          How To Rob A Bank (HTRAB) 150000 43.21 (-0.89)          How To Rob A Bank (HTRAB) 150000 43.21 (-0.89)          How To Rob A Bank (HTRAB) 150000 43.21 (-0.89)