Skip to content

Latest commit

 

History

History
102 lines (78 loc) · 3.65 KB

File metadata and controls

102 lines (78 loc) · 3.65 KB

Chainlink External Adapter for Unibit

1.4.36 v2

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

Environment Variables

Required? Name Description Type Options Default
API_KEY API key for Unibit string
API_ENDPOINT The endpoint for your Unibit https://api.unibit.ai/v2/stock/

Data Provider Rate Limits

Name Requests/credits per second Requests/credits per minute Requests/credits per hour Note
freetrial 69.44 only mentions monthly limit
starter 13888.8888889 only mentions monthly limit
pro 41666.6666667 only mentions monthly limit

Input Parameters

Every EA supports base input parameters from this list

Required? Name Description Type Options Default
endpoint The endpoint to use string eod, historical historical

Historical Endpoint

This historical endpoint provides the closing price of the previous day as detailed in Unibit documentation.

NOTE: each request sent to this endpoint has a cost of 10 credits

Supported names for this endpoint are: eod, historical.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
base coin, from, market, symbol The symbol of the currency to query string

Example

Request:

{
  "id": "1",
  "data": {
    "base": "VXX"
  },
  "debug": {
    "cacheKey": "080e3aca0835c63ab958af9f1e5bb5163c86bcd6"
  },
  "rateLimitMaxAge": 57603
}

Response:

{
  "jobRunID": "1",
  "data": {
    "meta_data": {
      "api_name": "historical_stock_price_v2",
      "num_total_data_points": 1,
      "credit_cost": 10,
      "start_date": "yesterday",
      "end_date": "yesterday"
    },
    "result_data": {
      "VXX": [
        {
          "date": "2021-11-26",
          "volume": 82949400,
          "high": 26.44,
          "low": 22.625,
          "adj_close": 26.16,
          "close": 26.16,
          "open": 22.97
        }
      ]
    },
    "cost": 10,
    "result": 26.16
  },
  "result": 26.16,
  "statusCode": 200,
  "providerStatusCode": 200
}

MIT License