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!


In a Violent Nature 2 (IAVN2) 149999 5.72 (+0.85)          Helldivers (HELDV) 150000 75.00 (0.00)          Baton (BATON) 150000 6.36 (+0.45)          Helldivers (HELDV) 150000 75.00 (0.00)          Dafne Keen (DKEEN) 25000 157.68 (+0.99)          Dafne Keen (DKEEN) 25000 157.68 (+0.99)          High Side (HISID) 50000 30.73 (+0.03)          Alone at Dawn aka Combat Control (ADAWN) 19000 20.68 (-0.09)          Goodbye June (GBJUN) 1000 0.06 (+0.01)          Avengers: Doomsday (AVNG5) 5000 539.24 (+0.40)          Helldivers (HELDV) 150000 75.00 (0.00)          Panda Plan 2: The Magical Tribe (PPLA2) 149999 0.81 (-0.03)          EPiC: Elvis Presley in Concert (EPICC) 150000 11.17 (-0.77)          EPiC: Elvis Presley in Concert (EPICC) 150000 11.17 (-0.77)          Helldivers (HELDV) 10 75.00 (0.00)          Wuthering Heights (WUTHR) 1 81.23 (-1.05)          Wuthering Heights (WUTHR) 150000 81.23 (-1.05)          GOAT (TGOAT) 1 84.53 (+0.78)          Christoph Waltz (CWALT) 25000 59.74 (-0.50)          Christoph Waltz (CWALT) 25000 59.74 (-0.50)          Helldivers (HELDV) 150000 75.00 (0.00)          GOAT (TGOAT) 1 84.53 (+0.78)          Pirates of the Caribbean 6 (PIRT6) 1 43.58 (+0.10)          Buffalo Kids (BUFKS) 149999 1.26 (-0.01)          Luc Besson (LBESS) 25000 44.47 (-0.16)          Dhurandhar: The Revenge (DHUR2) 20594 15.40 (-0.19)          Scream 7 (SCRM7) 500 102.53 (+3.49)          Helldivers (HELDV) 12619 75.00 (0.00)          Helldivers (HELDV) 150000 75.00 (0.00)          Reminders of Him (RMNDH) 31000 25.04 (-0.12)          Jason Mewes (JMEWE) 25000 1.41 (-0.05)          Kevin Smith (KSMIT) 25000 1.60 (-0.07)          4 Kids Walk Into a Bank (4KWIB) 61000 8.20 (0.00)          Helldivers (HELDV) 150000 75.00 (0.00)          Helldivers (HELDV) 150000 75.00 (0.00)          Helldivers (HELDV) 137381 75.00 (0.00)          Gabriel Basso (GBASS) 25000 29.79 (-0.63)          Helldivers (HELDV) 150000 75.00 (0.00)          Idiotka (IDOTK) 1 0.63 (0.00)          EPiC: Elvis Presley in Concert (EPICC) 1 11.17 (-0.77)          Dreams (DREMS) 150000 0.48 (+0.04)          Midwinter Break (MIDWB) 150000 2.18 (-0.01)          Callum Turner (CTURN) 25000 57.51 (-0.50)          I Can Only Imagine 2 (ICOI2) 150000 26.37 (-0.52)          They Will Kill You (TWKYU) 30000 25.65 (-0.12)          Wuthering Heights (WUTHR) 150000 81.23 (-1.05)          GOAT (TGOAT) 150000 84.53 (+0.78)          Nirvanna The Band The Show The M (NTBTS) 150000 3.87 (-0.03)          The Moment (MOMNT) 150000 5.84 (-0.07)          Good Luck, Have Fun, Don’t Die (GLHFD) 150000 8.16 (-0.01)