Question
In matlab

(APrs). These interfaces act as powerul foois to bhage is problem serves as an introduction to Application Programming Interf
0 0
Add a comment Improve this question Transcribed image text
Answer #1
  • endpoint = 'http://dev.markitondemand.com/MODApis/Api/v2/Quote/json';

    the endpoint mentioned is the address where the API "Quote" is hosted.

    resp = webread(endpoint, 'symbol', symbol);

    MATLAB provides the function webread to Get data from URLs and convert it into suitable formats.

    The above command makes a HTTP request and the response is a json which is converted to 1x1 struct.

    data = {resp.Status , resp.Symbol , resp.LastPrice , resp.ChangePercent , resp.Timestamp};

    This code extracts the required fields from the response and create a cell array out of it.

Add a comment
Know the answer?
Add Answer to:
(APrs). These interfaces act as powerul foois to bhage is problem serves as an introduction to Ap...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • CMPS 12B Introduction to Data Structures Programming Assignment 2 In this project, you will write...

    can i get some help with this program CMPS 12B Introduction to Data Structures Programming Assignment 2 In this project, you will write a Java program that uses recursion to find all solutions to the n-Queens problem, for 1 Sns 15. (Students who took CMPS 12A from me worked on an iterative, non-recursive approach to this same problem. You can see it at https://classes.soe.ucsc.edu/cmps012a/Spring l8/pa5.pdf.) Begin by reading the Wikipcdia article on the Eight Queens puzzle at: http://en.wikipedia.org/wiki/Eight queens_puzzle In...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT