Comments (4)
There are cases when some stocks do not trade for a day or several days. When that happens, the API will return a 404
for the stocks not trading on that day.
Example:
http://phisix-api3.appspot.com/stocks/LBC.2019-12-30.json
- LBC wasn't trading on Dec 30, 2019, that's why you were getting a
404
response.
http://phisix-api3.appspot.com/stocks/LBC.2019-01-02.json
- However, if you check LBC for Jan 2, 2020, you would see that it's working as expected.
from phisix.
HI Edge,
Thanks for the clarification. Is it to possible to make it still return the last traded price even for days without a trade? Example, let's say Stock A was traded last Jan 2 with price of P10 with volume of 100K, then no trades on succeeding days, let's say Jan 8 (Trading day), it has no trade but when requested (on said date), will still return a price of P10 with % change of 0 and volume of 0, instead of getting 404 response. Is that possible? Thanks very much for your work. Appreciate it a lot.
from phisix.
I agree with you ... it is better to return the last data instead of removing it from the arrays ...
from phisix.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from phisix.
Related Issues (20)
- Availability over https HOT 2
- API not accessible anymore on some devices HOT 5
- Site is down?
- Asiabest Group misspelled name HOT 1
- What is causing the recent downtime? HOT 2
- PSEI volume/value doesn't have decimal places
- API cannot be reached HOT 6
- I cannot pull any price HOT 1
- Please update
- empty prices HOT 4
- DITO name key HOT 1
- No data for Aug 16-17 2021 HOT 1
- Support for PH Mutual Fund Codes HOT 1
- Mispelling HOT 1
- APIs returning 404 just recently HOT 2
- The remote server returned an error: (521) Internal Server Error. HOT 1
- https://phisix-api.appspot.com/stocks HOT 1
- Date parameter does not work HOT 3
- Phisix throws 404 Not Found error when trying to access stocks with date query / param HOT 1
- Phisix API is down HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phisix.