symbol

/v1/ticker/:symbol

Get pricing (ticker) data for various currency pairs (fiat, crypto, and tokens) using data from several exchanges. This endpoint shows the price at the exchange with the most volume for the symbol. Use the /v1/ticker/symbols endpoint for the full list of supported symbols.

GET

GET https://api.infura.io/v1/ticker/:symbol

Parameters
symbolTicker symbol (currency pair)String

Request

curl --include \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
  'https://api.infura.io/v1/ticker/ethusd'

Response

Attributes
basestring
Currency pair base
quotestring
Currency pair quote
bidnumber
Bid at the exchange with the most volume
asknumber
Ask at the exchange with most volume
exchangestring
The exchange with the most volume
volumenumber
Volume at the exchange with the most volume
num_exchangesnumber
Number of exchanges queried
total_volumenumber
Total volume across all exchanges queried
timestampnumber
Unix timestamp

Ticker Response

200

HEADERS

Content-Type:application/json

full

/v1/ticker/:symbol/full

Get pricing (ticker) data for various currency pairs (fiat, crypto, and tokens) using data from several exchanges. This endpoint shows the price at various exchanges where the symbol is traded. Use the /v1/ticker/symbols endpoint for the full list of supported symbols.

GET

GET https://api.infura.io/v1/ticker/:symbol/full

Parameters
symbolTicker symbol (currency pair)string

Request

curl --include \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
  'https://api.infura.io/v1/ticker/ethusd/full'

Response

Attributes
basestring
Currency pair base
quotestring
Currency pair quote
tickersarray
List of tickers at various exchanges
object0
bidnumber
asknumber
exchangestring
volumenumber
`timestampnumber

Full ticker Response

200

HEADERS

Content-Type:application/json

symbols

/v1/ticker/symbols

Get a list of supported symbols (currency pairs), including fiat, crypto, and tokens

GET

GET https://api.infura.io/v1/ticker/symbols

Request

curl --include \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
  'https://api.infura.io/v1/ticker/symbols'

Response

Attributes
symbolsarray
List of supported symbols (currency pairs)string0

Symbols Response

200

HEADERS

Content-Type:application/json

v1 Blacklist

/v1/blacklist

Return a blacklist of phishing sites. This list is maintained by GitHub user 409H at https://github.com/409H/EtherAddressLookup/blob/master/blacklists/domains.json.

GET

GET https://api.infura.io/v1/blacklist

Request

curl --include \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
  'https://api.infura.io/v1/blacklist'

Response

Attributes
string0

List of blacklisted phishing domains

200

HEADERS

Content-Type:application/json

BODY

[
  "quis esse ut",
  "dolor quis",
  "dolore culpa et",
  "laboris Ut ut nisi commodo",
  "l"
]

JSON Schema

{
  "type": "array",
  "items": {
    "type": "string"
  }
}

Response

Github is having issues

502

HEADERS

Content-Type:application/json

v2 Blacklist

/v2/blacklist

Return a blacklist of phishing sites, as well as a whitelist and a fuzzylist. This list is maintained by the MetaMask project at https://github.com/MetaMask/eth-phishing-detect/blob/master/src/config.json.

GET

GET https://api.infura.io/v2/blacklist

Request

curl --include \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
  'https://api.infura.io/v2/blacklist'

Response

Attributes
versionrequirednumber
Version
tolerancerequirednumber
Tolerance
fuzzylistrequiredarray
Fuzzyliststring0
whitelistrequiredarray
Whiteliststring0
blacklistrequiredarray
Blackliststring0

Phishing blacklist, whitelist, and fuzzylist

200

HEADERS

Content-Type:application/json

BODY

{
  "version": 38611173,
  "tolerance": 49572925,
  "fuzzylist": [
    "eiusmod anim mollit Ut",
    "minim et ea ex"
  ],
  "whitelist": [
    "irure Duis",
    "officia minim voluptate cillum ullamco",
    "nostrud aliquip",
    "ex in sint velit",
    "Excepteur veniam fugi"
  ],
  "blacklist": [
    "do in tempor consectet"
  ]
}

JSON Schema

{
  "type": "object",
  "properties": {
    "version": {
      "type": "integer",
      "description": "Version"
    },
    "tolerance": {
      "type": "integer",
      "description": "Tolerance"
    },
    "fuzzylist": {
      "description": "Fuzzylist",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "whitelist": {
      "description": "Whitelist",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "blacklist": {
      "description": "Blacklist",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "version",
    "tolerance",
    "fuzzylist",
    "whitelist",
    "blacklist"
  ]
}

Response

Github is having issues

502

HEADERS

Content-Type:application/json

Other Resources