Polygon Forex Pair Analysis
A 3-step recipe with Massive (formerly Polygon.io). We can help you get access.
Recipe · 3 steps
Polygon Forex Pair Analysis
Analyze a currency pair via last quote, conversion, and aggregate bars.
- Read the last quote for the currency pair to capture the live bid and ask.
- Convert the requested notional amount from the source to the target currency at the current rate.
- Retrieve aggregate bars for the FX pair over the requested date range for historical context.
What you'll need to have ready
- from: Source three-letter currency code (e.g. EUR).
- to: Target three-letter currency code (e.g. USD).
- amount: Notional amount to convert at the current rate.
- forexTicker: FX aggregate ticker for the pair (e.g. C:EURUSD).
- multiplier: Size of the timespan multiplier for the aggregate window.
- timespan: Aggregate window size (minute, hour, day, week, month, quarter, year).
- fromDate: Start of the aggregate window (YYYY-MM-DD).
- toDate: End of the aggregate window (YYYY-MM-DD).
For your developer
Arazzo workflow massive-com:forex-pair-analysis, 3 operations: getForexLastQuote → getForexConversion → getForexAggregateBars. Specs on APIs.io.