{"id":13525133,"url":"https://github.com/dfinity/exchange-rate-canister","last_synced_at":"2025-09-02T16:56:13.592Z","repository":{"id":64807791,"uuid":"525525941","full_name":"dfinity/exchange-rate-canister","owner":"dfinity","description":"The exchange rate canister (XRC) makes use of the HTTP requests feature to provide exchange rates as a service to the IC.","archived":false,"fork":false,"pushed_at":"2024-09-05T14:07:19.000Z","size":35352,"stargazers_count":37,"open_issues_count":2,"forks_count":10,"subscribers_count":22,"default_branch":"main","last_synced_at":"2024-10-05T16:10:37.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dfinity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-16T20:02:51.000Z","updated_at":"2024-09-07T00:25:33.000Z","dependencies_parsed_at":"2023-02-19T14:31:26.916Z","dependency_job_id":"70f5bbb5-4fb7-42e5-98bf-6a521ebbbf0f","html_url":"https://github.com/dfinity/exchange-rate-canister","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fexchange-rate-canister","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fexchange-rate-canister/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fexchange-rate-canister/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fexchange-rate-canister/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfinity","download_url":"https://codeload.github.com/dfinity/exchange-rate-canister/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222698221,"owners_count":17024879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T06:01:16.235Z","updated_at":"2025-09-02T16:56:13.574Z","avatar_url":"https://github.com/dfinity.png","language":"Rust","funding_links":[],"categories":["Decentralized Finance (DeFi)"],"sub_categories":["Oracles"],"readme":"# Exchange Rate Canister\n\n\u003cdiv\u003e\n  \u003cp\u003e\n    \u003ca href=\"https://github.com/dfinity/exchange-rate-canister/blob/master/LICENSE\"\u003e\u003cimg alt=\"Apache-2.0\" src=\"https://img.shields.io/github/license/dfinity/exchange-rate-canister\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://forum.dfinity.org/\"\u003e\u003cimg alt=\"Chat on the Forum\" src=\"https://img.shields.io/badge/help-post%20on%20forum.dfinity.org-yellow\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## Overview\nThe exchange rate canister provides an oracle service for cryptocurrency and\nfiat currency exchange rates.\nIt interacts with all data sources using the\n[HTTPS outcalls](https://internetcomputer.org/https-outcalls/) feature.\n\n## Usage\n\nThe exchange rate canister offers a single endpoint:\n\n```\n\"get_exchange_rate\": (GetExchangeRateRequest) -\u003e (GetExchangeRateResult)\n```\nThe request must specify the base and quote assets and, optionally, a UNIX timestamp in seconds.\nThe returned result contains either the exchange rate for the requested asset pair\nalong with some metadata or an error.\nDetails can be found in the [interface specification](INTERFACE_SPECIFICATION.md) and in the [developer documentation](https://internetcomputer.org/docs/references/system-canisters/xrc/).\n\n\u003e **_NOTE:_** 1B cycles must be sent to the exchange rate canister with each request.\nA certain amount may be refunded depending on the number of required HTTPs outcalls\nto serve the request. The base fee is 20M cycles.\n\n## Official build\nThe official build should ideally be reproducible, so that independent parties\ncan validate that the correct WebAssembly module was deployed.\n\nA dockerized build environment is used to build the gzipped WebAssembly module and\nprint its SHA-256 hash.\n\n```bash\nexport IP_SUPPORT=ipv4\n./scripts/docker-build\nsha256sum xrc.wasm.gz\n```\n\nThe canister ID of the deployed exchange rate canister is `uf6dk-hyaaa-aaaaq-qaaaq-cai`.\n\n## Contribution mode\nExternal contributions are accepted.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfinity%2Fexchange-rate-canister","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfinity%2Fexchange-rate-canister","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfinity%2Fexchange-rate-canister/lists"}