/v1/models/results

This endpoint allows us to retrieve information about recent runs of a model. This data is retrieved from cache, which is emptied whenever a new version is deployed.

A simple request looks like this:

curl 'https://gateway.credmark.com/v1/model/results?slug=aave-v2.get-lending-pool' \
  -H 'Authorization: Bearer <API key>'

The slug parameter is required. Additional parameters can be used to control the output:

Given the request above, we get the following (truncated) output:

{
  "results": [
    {
      "time": "2022-08-11T23:46:46.000Z",
      "slug": "aave-v2.get-lending-pool",
      "version": "1.1",
      "chainid": 1,
      "blocknumber": "15323579",
      "input": {},
      "output": {
        "address": "0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9"
      },
      "error": null,
      "dependencies": {
        "contract.metadata": {
          "1.0": 2
        },
        "aave-v2.get-lending-pool": {
          "1.1": 1
        },
        "aave-v2.get-lending-pool-provider": {
          "1.1": 1
        }
      },
      "runtime": 1546
    },
    {
      "time": "2022-07-29T02:40:12.000Z",
      "slug": "aave-v2.get-lending-pool",
      "version": "1.1",
      "chainid": 1,
      "blocknumber": "15234708",
      "input": {},
      "output": {
        "address": "0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9"
      },
      "error": null,
      "dependencies": {
        "contract.metadata": {
          "1.0": 3
        },
        "aave-v2.get-lending-pool": {
          "1.1": 1
        },
        "aave-v2.get-lending-pool-provider": {
          "1.1": 1
        }
      },
      "runtime": 2743
    }

For each model run we return the following data:

Last updated