Skip to content
This repository has been archived by the owner on Feb 18, 2020. It is now read-only.

Commit

Permalink
Update price-oracle.md
Browse files Browse the repository at this point in the history
  • Loading branch information
c3rnst committed May 24, 2019
1 parent 6dbf848 commit 73276da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/price-oracle.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ The price oracle smart contract, however, might be very useful for other applica
**How does this DutchXPriceOracle work?**

It takes the median of the last 9 auctions of that token pair on the DutchX, if they have run consecutively (i.e. constant liquidity is important), else it will not return a price feed.
- This price feed also only works for token with ETH
- This price feed also only works for tokens with (W)ETH
- There are two functions: getPrice and getPriceCustom
- getPrice only works for [whitelisted tokens](https://dutchx.readthedocs.io/en/latest/basic-mechanism.html#whitelist)
- getPrice only works for actually [whitelisted tokens](https://dutchx.readthedocs.io/en/latest/mechanism.html#whitelist)
- getPriceCutstom allows customization (for other tokens).

Check out the [API endpoint](https://dutchx.d.exchange/api/docs/#!/Prices/getOraclePrice).
Check out this [Price Oracle API endpoint](https://dutchx.d.exchange/api/docs/#!/Prices/getOraclePrice).

Check out the [code](https://github.com/gnosis/dx-price-oracle/tree/master).

0 comments on commit 73276da

Please sign in to comment.