sebasjimenez10 / bloomberg_currency

Bloomberg currency helps you get currency quotes from the Bloomberg website
MIT License
5 stars 0 forks source link

New response from 20 Jul 2023 #101

Open vstavskyi opened 1 year ago

vstavskyi commented 1 year ago

My solution is splitting response by string "quote":, parsing as json the rest until "id": and finally getting the "price":.

"quote":{"isAfterHours":null,"isOpen":null,"lastUpdate":"2023-08-07T06:36:25.000Z","exchangeDelay":null,"isExchangeDelayed":false,"price":"40.4134","percentChange1Day":-0.5679000020027161,"priceChange1Day":-0.2308,"name":"EUR-UAH X-RATE","primaryExchange":null,"type":"CUR","mediaSecurityType":"Currency","mediaSecuritySubtype":"Cross","securityName":"EURO/UKRAINE HRYVNIA","longName":"EURUAH Spot Exchange Rate - Price of 1 EUR in UAH","shortName":"EUR-UAH X-RATE","id":"EURUAH:CUR"...