[fix] Fix Error “ Value of type ‘Quote’ has no member ‘regularMarketPreviousClose’ “
This is a library that leverages Yahoo Finance REST API and provides very simple and Swiftly way to interact with it.
First of all, you need to import and initalize the StocksAPI.
StocksAPI
import StocksAPI let api = StocksAPI()
let tesla1wkChart = try await api.fetchChartData(tickerSymbol: "TSLA", range: .oneWeek)
let tickers = try await api.searchTickers(query: "TESLA")
let quotes = try await api.fetchQuotes(symbols: "TSLA,GOOG,AAPL,MSFT")
Here is how you proceed to add it to your project:
This is entirely Powered by Yahoo Finance API https://www.yahoo.com/?ilc=401
Yahoo Finance REST API Postman Collection Download Link: https://drive.google.com/file/d/1GzLBLGSE4nRjjj-bI0nSV0Un5VGiKO5j/view
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
StocksAPI
This is a library that leverages Yahoo Finance REST API and provides very simple and Swiftly way to interact with it.
Features
Usecase
Initialize repository
First of all, you need to import and initalize the
StocksAPI
.Fetch TSLA stocks last 1 week
Search Tickers using “TESLA” as Query
Fetch Quote Detail for multiple symbols TSLA, GOOG, AAPL, MSFT
Installation Guide
Swift Package Manager
Here is how you proceed to add it to your project:
This is entirely Powered by Yahoo Finance API https://www.yahoo.com/?ilc=401
Yahoo Finance REST API Postman Collection Download Link: https://drive.google.com/file/d/1GzLBLGSE4nRjjj-bI0nSV0Un5VGiKO5j/view