capabilities.work

Forex Pair Analysis

A 3-step recipe with Massive (formerly Polygon.io). We can help you get access.

Recipe · 3 steps

Forex Pair Analysis

Analyze a currency pair via last quote, conversion, and aggregate bars.

  1. Read the last quote for the currency pair to capture the live bid and ask.
  2. Convert the requested notional amount from the source to the target currency at the current rate.
  3. 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 polygon:forex-pair-analysis, 3 operations: getForexLastQuote → getForexConversion → getForexAggregateBars. Specs on APIs.io.