Back to explore

finance

Prices

Credits: 0.000001

Add

POST /v1/price/Add

Add a price

Request

authorstring

author of the price

currencystring

currency e.g USD

namestring

name of the thing e.g bitcoin

pricenumber

price of the thing e.g 10001.00

sourcestring

source of the price

symbolstring

symbol of value

Response

valueobject

Request

Response

{
    "value": {
        "name": "bitcoin",
        "price": 39037.97,
        "currency": "USD",
        "timestamp": "2022-03-14T15:26:39.689652636Z"
    }
}

Credits: 0.000001

Get

POST /v1/price/Get

Get the price of anything

Request

currencystring

currency to get

namestring

name of the value

symbolstring

symbol of value

Response

valuesarray

Request

Response

{
    "values": [
        {
            "name": "bitcoin",
            "price": 39037.97,
            "currency": "USD",
            "timestamp": "2022-03-14T15:26:39.689652636Z"
        }
    ]
}

Credits: 0.000001

Index

POST /v1/price/Index

Get the index for available prices

Request

{}

Response

indexarray

Request

Response

{
    "index": [
        {
            "name": "Cardano",
            "symbol": "ADA",
            "currency": "EUR"
        },
        {
            "name": "Cardano",
            "symbol": "ADA",
            "currency": "USD"
        },
        {
            "name": "United Arab Emirates Dirham",
            "symbol": "AED",
            "currency": "EUR"
        },
        {
            "name": "United Arab Emirates Dirham",
            "symbol": "AED",
            "currency": "USD"
        },
        {
            "name": "Afghan Afghani",
            "symbol": "AFN",
            "currency": "EUR"
        }
    ]
}

Credits: 0.000001

List

POST /v1/price/List

List prices for a given currency

Request

currencystring

currency to get

limitnumber

limit number of values

offsetnumber

offset to read from

Response

valuesarray

Request

Response

{
    "values": [
        {
            "name": "Cardano",
            "price": 0.7422161127934748,
            "symbol": "ADA",
            "currency": "GBP",
            "timestamp": "2022-03-23T11:25:00Z"
        },
        {
            "name": "United Arab Emirates Dirham",
            "price": 0.2060005608160323,
            "symbol": "AED",
            "currency": "GBP",
            "timestamp": "2022-03-23T11:31:00Z"
        },
        {
            "name": "Afghan Afghani",
            "price": 0.00863934615838992,
            "symbol": "AFN",
            "currency": "GBP",
            "timestamp": "2022-03-23T11:25:00Z"
        },
        {
            "name": "Albanian Lek",
            "price": 0.006836967586105941,
            "symbol": "ALL",
            "currency": "GBP",
            "timestamp": "2022-03-23T11:31:00Z"
        }
    ]
}

Credits: 0.000001

Report

POST /v1/price/Report

Report an invalid price

Request

commentstring

additional comment

namestring

name of value

symbolstring

symbol of value

Response

{}

Request

Response

{}