Skip to content

Commit

Permalink
Pricefeed for USDT/USD (#82)
Browse files Browse the repository at this point in the history
* chore: contribution guidelines

* feat: USDCUSD price feed

* chore: add bitstamp

* chore: add USDTUSD pricefeed

* chore: fix build issue
  • Loading branch information
yohanelly95 authored Jul 4, 2024
1 parent d4492e4 commit 8e3091e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mainnet/collections.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,12 @@
"power": 5,
"name": "USDCUSD",
"tolerance": 500000
},
{
"jobIDs": [22, 23, 24, 25],
"aggregationMethod": 2,
"power": 5,
"name": "USDTUSD",
"tolerance": 500000
}
]
32 changes: 32 additions & 0 deletions mainnet/jobs.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,37 @@
"name": "usdcusd_bitstamp",
"selector": "last",
"url": "https://www.bitstamp.net/api/v2/ticker/usdcusd/"
},
{
"weight": 1,
"power": 5,
"selectorType": 0,
"name": "usdtusd_gemini",
"selector": "last",
"url": "https://api.gemini.com/v1/pubticker/usdtusd"
},
{
"weight": 1,
"power": 5,
"selectorType": 0,
"name": "usdtusd_coinbase",
"selector": "data.amount",
"url": "https://api.coinbase.com/v2/prices/USDT-USD/spot"
},
{
"weight": 1,
"power": 5,
"selectorType": 0,
"name": "usdtusd_kraken",
"selector": "result.USDTZUSD.c[0]",
"url": "https://api.kraken.com/0/public/Ticker?pair=USDTZUSD"
},
{
"weight": 1,
"power": 5,
"selectorType": 0,
"name": "usdtusd_stablecoin_stats",
"selector": "USDT.kraken.USDT_USD.price",
"url": "https://stablecoinstats.com/api/tickers"
}
]

0 comments on commit 8e3091e

Please sign in to comment.