Skip to content

Latest commit

 

History

History
93 lines (66 loc) · 5.07 KB

File metadata and controls

93 lines (66 loc) · 5.07 KB

SUPERSTATE

1.5.1 v3

This document was generated automatically. Please see README Generator for more info.

Environment Variables

Required? Name Description Type Options Default
API_ENDPOINT An API endpoint for Superstate string https://api.superstate.com/v1
TRANSACTION_API_KEY Api key for /v2/transactions API endpoints string
TRANSACTION_API_SECRET Api secret for /v2/transactions API endpoints string
LOOKBACK_DAYS The number of days of historical data to retrieve number 10
RETRY_INTERVAL_MS The amount of time (in ms) to wait before sending a new request for getting an updated price. number 60000
BACKGROUND_EXECUTE_MS The amount of time the background execute should sleep before performing the next request number 10000
NAV_CRON_INTERVAL_MIN How many minutes do we wait between each cron job that fetches Nav number 10

Data Provider Rate Limits

There are no rate limits for this adapter.


Input Parameters

Required? Name Description Type Options Default
endpoint The endpoint to use string nav, por, reserves, transactions reserves

Reserves Endpoint

Supported names for this endpoint are: nav, por, reserves.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
✅ fundId Fund id number
reportValue Which value to report on string assets_under_management, net_asset_value net_asset_value

Example

Request:

{
  "data": {
    "endpoint": "reserves",
    "fundId": 1,
    "reportValue": "net_asset_value"
  }
}

Transactions Endpoint

transactions is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
✅ fundId Used to fetch Net Asset Value number
✅ ticker Used to fetch transactions string
✅ transactionStatus Used to query transaction_status string Completed, Pending
✅ operations Used to match transactions operation_type string[]
✅ decimals Number of decimals of response number

Example

Request:

{
  "data": {
    "endpoint": "transactions",
    "fundId": 1,
    "ticker": "tickerName",
    "transactionStatus": "Completed",
    "operations": ["open"],
    "decimals": 18
  }
}

MIT License