Skip to content

An API server that provides various offchain resources

Notifications You must be signed in to change notification settings

Jeff-Bouchard/fetch-api-service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archethic FetchApiService (FAS)

An API server that exposes various off-chain resources such as cryptoassets prices.

Envs

  • ARCHETHIC_CMC_PRO_API_KEY: An API key for the CoinMarketCap provider
  • ARCHETHIC_FAS_PORT: The listening HTTP port

Quotes

Cryptoassets are identified by Unified Cryptoasset ID (UCID). Available cryptoassets in this API:

  • uco: 6887
  • matic: 3890
  • bnb: 1839
  • btc: 1
  • eth: 1027
  • ... more later

Providers requested:

  • coinmarketcap.com
  • ... more later

Latest

Return the latest available quotes from given cryptoassets. The result is an aggregate of multiple providers. The values are cached for a few minutes.

GET /api/v1/quotes/latest?ucids=6887,1,1027,3890,1839

{
  "1": 46886.44559469423,
  "1839": 301.88655780971703,
  "1027": 2263.032408397367,
  "3890": 0.790940929057782,
  "6887": 0.04767200156279931
}

About

An API server that provides various offchain resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 92.6%
  • HTML 4.4%
  • Shell 3.0%