marketstack icon indicating copy to clipboard operation
marketstack copied to clipboard

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

Open kasperosterbye opened this issue 5 years ago • 2 comments

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

  • alk-b.xcse - Alk-abello A/S B Aktie
  • novo-b.xcse - Novo Nordisk A/S B Aktie
  • swed-a.xsto - SWEDBANK AB

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 avatar Jan 24 '21 09:01 kasperosterbye

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

kasperosterbye avatar Mar 15 '21 09:03 kasperosterbye

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 HEXA_B.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.

kasperosterbye avatar Mar 15 '21 09:03 kasperosterbye