GET
/
data
/
{metricNames}
import os
from artemis import Artemis

client = Artemis(
    api_key=os.environ.get("ARTEMIS_API_KEY"),  # This is the default and can be omitted
)
response = client.fetch_metrics(
    metric_names="price,mc",
)
print(response.data)
{
  "data": {
    "artemis_ids": {
      "aptos": {
        "price": [
          {
            "date": "2023-01-20",
            "val": 10.94118169
          }
        ],
        "mc": [
          {
            "date": "2023-01-20",
            "val": 1740634019.68627
          }
        ]
      }
    },
    "symbols": {
      "btc": {
        "price": [
          {
            "date": "2023-01-20",
            "val": 22705.833678899
          }
        ],
        "mc": [
          {
            "date": "2023-01-20",
            "val": 436724993652.427
          }
        ]
      }
    }
  }
}

Authorizations

APIKey
string
query
required

Available for Enterprise accounts in the Artemis Terminal settings page.

Path Parameters

metricNames
string
required

Metric names, comma-separated

Query Parameters

artemisIds
string

Artemis ids, comma-separated

symbols
string

Symbols, comma-separated

startDate
string

Start date for time range

endDate
string

End date for time range

summarize
boolean

When true, will calculate the percent change for a metric from startDate to endDate

Example:

true

Response

200
application/json
Metric data
data
object