apilayer / marketstack

Free Real-Time, Intraday & Historical Stock Market Data API
https://marketstack.com
67 stars 14 forks source link

Problems with symbols that contain a dash (eg. ALK-B.XCSE) #20

Open kasperosterbye opened 3 years ago

kasperosterbye commented 3 years ago

Some Danish and Swedish company symbols contains a dash -. For example:

If I try end-of-day for any of these three I just get an error message that there is no symbols. For example: http://api.marketstack.com/v1/eod?access_key=myKey&symbols=alk-b.xcse

gives:

{"error":{"code":"no_valid_symbols_provided","message":"At least one valid symbol must be provided"}}

If instead one tries with a company without a dash in its symbol - eg. CHR.XCSE as in:

http://api.marketstack.com/v1/eod?access_key=myKey&symbols=CHR.XCSE

it works like a charm!

kasperosterbye commented 3 years ago

It turns out that in some cases one can use the "_" (underscore) instead of "-" (dash).

kasperosterbye commented 3 years ago

Thanks - I added this to the github issue for others to find.

Best,

Kasper

On 14 Mar 2021, at 17.07, TimMonks @.***> wrote:

Hi, I noticed your comment as I had been doing some development using HEXAB.XSTO. If you change "-" to "" then it will work: swed_a.xsto But be careful, I found that HEXA_B.XSTO prices stopped a few weeks ago, never to resume. No response from support.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/apilayer/marketstack/issues/20#issuecomment-798933089, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEHHCYN2MSIVM55QGIAV5MTTDTNMFANCNFSM4WQM5VDA.