Demo Application
Look how the YH Finance API can be integrated into real-world applications.
We'll cover the following...
Let's look at a Django application that uses some of the previously discussed YH Finance API endpoints to retrieve the requested data.
The resources used
We'll use three endpoints in this application. We'll call the endpoints for market summary, trending stocks, and charts.
Live demo
The widget below contains the code for our application. Click “Run” to run the application.
from django.db import models # Create your models here.
Run the Demo Application
Let's look at the code in views.py
where the API is being called:
Lines 1–7: We import ...