Giter VIP home page Giter VIP logo

Comments (3)

bpschuck avatar bpschuck commented on September 27, 2024

The MorningstarAU.pm module is no longer working. The URL currently used in the module, https://www.morningstar.com.au/Ausearch/SecurityCodeAutoLookup?q=$symbol, returns a 404.

Module needs to be fixed, or removed from F::Q.

Looking at the request through Firefox developer console, the JSON for the fund IML0004AU comes from https://api-global.morningstar.com/sal-service/v1/fund/quote/v4/F0AUS05HDB/data?fundServCode=&showAnalystRatingChinaFund=false&showAnalystRating=undefined&languageId=en&locale=en&clientId=mca.public&benchmarkId=mstarorcat&component=sal-mip-quote&version=4.18.0&access_token=AA0WgHTG32bN2ECGtSWT6saI8op1.

Need to find where the symbol IML0004AU maps to security ID F0AUS05HDB and access token AA0WgHTG32bN2ECGtSWT6saI8op1 get retrieved.

from finance-quote.

bpschuck avatar bpschuck commented on September 27, 2024

Need to find where the symbol IML0004AU maps to security ID F0AUS05HDB and access token AA0WgHTG32bN2ECGtSWT6saI8op1 get retrieved.

In the HTML returned from https://www.morningstar.com.au/investments/security/fund/IML0004AU, near the end is JSON in the <script> tag beginning <script>window.__NUXT__=(function(.... There is getSecurity({\"id\":\"F0AUS05HDB\"}

from finance-quote.

bpschuck avatar bpschuck commented on September 27, 2024

The Security will also show for normal securities (aka "ordinaries"). Also in this output are two other fields. "realtimeKey" needed for getting quotes for ordinaries, and the api token "accessToken".
URL for securities:

https://api-global.morningstar.com/sal-service/v1/cef/quote/realTime/$securityID/data?secExchangeList=&random=0.6039569052526274&languageId=en&locale=en&clientId=mca.public&benchmarkId=mstarorcat&component=sal-mip-quote&version=4.18.0&access_token=$accessToken

Header:
X-API-REALTIME-E: eyJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiUlNBLU9BRVAifQ.1E4oJB3HCtJ2PdjKIIZICy5ezgGD2CykvEXGcogbPOlg_A41fdjqwbj9a8wSutGt14Cyvts7e5n9MgtHb4KFQ7D6ou1jJu7O12M-O35vJSHWJqW4Co7pPqIf6U7-V3_hMcuu1RNRwrtFL9ic47obcJcZdVWx1TxrQjl0ouYnAIc.Hl4r5ODE4AWxcugW.-st5MrpSB660aH9VrqiGow1UHcGGfGMOFRHbMCU3mw1VGwox5JZQkI-_-Bv-8wxrxLxJbRt8QUjI1TcHD-pfAQ7XKlRjh8Q1WxM9PRMEU7mSQ4x5R8LShijyErCFTIUMMGSuz8caAk18JowkpGOcBaSCvqEO8ZlzJs1qjmH9VtrRiFiQItaQvzdSUcEYFYiEEIEMn4Ay9d9Fz69zKqwVZqUqyQWZBBVDM2MOzZI.v3Du6IgztOU7b3FlWHdpyA

from finance-quote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.