Skip to content

Fast API backend for IndexSwapy, handling real-time calculations and data conversions for financial instruments. Built to power interfaces using NDX, QQQ, NQ, SPY, and ES ratios.

Notifications You must be signed in to change notification settings

59n/IndexSwapy-Backend-Finance-Data-API-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IndexSwapy API

A serverless API for converting between different financial instruments (QQQ, NDX, NQ, ES, and SPY) using Netlify Functions.

Features

  • Convert between QQQ, NDX, NQ, ES, and SPY values
  • Serverless architecture using Netlify Functions
  • CORS enabled for indexswapy.netlify.app
  • Multiple endpoint support

API Endpoints

  • /.netlify/functions/indexswapy/ - API status and available endpoints
  • /.netlify/functions/indexswapy/api/ratios - Get conversion ratios
  • /.netlify/functions/indexswapy/ratios - Alternative endpoint for ratios
  • /.netlify/functions/indexswapy/data - Alternative endpoint for ratios

Response Format

{
  "status": "ok",
  "timestamp": "2025-04-14T12:58:30.153Z",
  "ratios": {
    "NDX/QQQ Ratio": 41.10241216829076,
    "NQ/QQQ Ratio": 41.29471200210854,
    "ES/SPY Ratio": 10.072138887159946
  }
}

Local Development

  1. Install dependencies:

    npm install
  2. Start the local development server:

    node test-server.js
  3. Test the endpoints:

Deployment

This project is configured for deployment on Netlify. The netlify.toml file contains the necessary configuration for:

  • Function directory: functions
  • Publish directory: public

About

Fast API backend for IndexSwapy, handling real-time calculations and data conversions for financial instruments. Built to power interfaces using NDX, QQQ, NQ, SPY, and ES ratios.

Resources

Stars

Watchers

Forks