Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 2.28 KB

File metadata and controls

47 lines (35 loc) · 2.28 KB

Chainlink External Adapter for 1forge

Environment Variables

Required? Name Description Options Defaults to
API_KEY An API key that can be obtained from the 1forge dashboard

Input Parameters

Required? Name Description Options Defaults to
endpoint The endpoint to use forex forex

Forex Endpoint

NOTE: the price endpoint is temporarily still supported, however, is being deprecated. Please use the forex endpoint instead.

/convert - Convert from one currency to another

Input Params

Required? Name Description Options Defaults to
base, from The symbol of the currency to query List
quote, to The symbol of the currency to convert to List
🟡 quantity An additional amount of the original currency
🟡 overrides If base provided is found in overrides, that will be used Format

Output

{
  "jobRunID": "1",
  "data": {
    "value": 1.22687,
    "text": "1.0 GBP is worth 1.22687 USD",
    "timestamp": 1587489920,
    "result": 1.22687
  },
  "result": 1.22687,
  "statusCode": 200
}