Comments (6)
Hi,
thanks for reaching out.
While the amount of time exchange rates are cached is identical for all Free & Basic Plan users, the caching periods are individual, depending on when requests are made.
Example: If your first API request on a particular day is made at 10:25:00 GMT your quotes will be cached for 60 minutes, until 11:25:00 GMT. The next caching period depends on when your next request is made, and so forth.
This enables us to deliver real-time data even for Free & Basic customers when requesting uncached (not within the 60 minutes after a request) quotes.
Please let us know here if there is anything else you need clarified, or write us an email at: [email protected]
Best regards,
David
Technical Support
from currencylayer-api.
Great, thanks for answering!
from currencylayer-api.
While I'm here, any chance the JSON api can also provide OHLC data instead of just bids and asks?
from currencylayer-api.
At this stage the currencylayer API delivers "midpoint" quotes only.
However, we are definitely interested in extending this spectrum to offer both bid/ask and OHLC data as well.
Be sure to follow @apilayernet on Twitter and allow us to send you service updates via the currencylayer service.
Have a nice day!
David
from currencylayer-api.
Further to the original issue, if the requests are cached every hour, and I write a script that makes a request every hour, will there not be a chance that I will get the same cached response (since my request might arrive 59:59:59 after the server receives my original request?
I want to make regular hourly checks, but if I have to account for exact one hour caching, I have to add drift into my script, which is undesirable.
from currencylayer-api.
Sorry for the slight delay.
The caching time does not amount to exactly 60 minutes, rather around 55 minutes. So you should be good to go using hourly checks.
Best regards,
Paul
Technical Support
from currencylayer-api.
Related Issues (15)
- pending
- Bug in the "live" api.currencylayer API HOT 1
- Live endpoint doesn't work when source=USD in query string HOT 3
- Supported currencies failing
- VUV missing from response
- Bug in currency service HOT 4
- Currency rate for base currency seems wrong HOT 1
- Quote: "USDUSD" is missing HOT 5
- TimeFrame strange response when date frame is future
- The exchange rate between SHP and USD is inverse
- Problem with HTTPS encryption HOT 1
- historical API doesn't work HOT 3
- I have an enterprise plan but i got same values every minute.
- [Feature Request] Add header with number of requests left
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 currencylayer-api.