Build a Flare Time Series Oracle for the Songbird Network -- 2
Budget: $15 – $25 USD
Build a FTSO price Oracle using API of Crypto exchanges to grab prices of assets then calculate an average for each asset then submit the results to the Songbird Network as a hash.
1. Collect price data from API endpoints so we can create average price using multiple exchanges.
FLR/USD
https://www.bitrue.com/kline-api/publicUSDT.json?command=returnTicker
XRP/USD
https://www.bitrue.com/kline-api/publicUSDT.json?command=returnTicker
https://api.binance.com/api/v3/ticker/price?symbol=XRPUSDT
https://api.huobi.pro/market/detail/merged?symbol=xrpusdt
https://openapi-v2.kucoin.com/api/v1/market/stats?symbol=XRP-USDT
https://www.gate.io/docs/developers/apiv4/en/#retrieve-ticker-information
https://ftx.com/api/markets/XRP/USD
LTC/USD
https://www.bitrue.com/kline-api/publicUSDT.json?command=returnTicker
https://api.coinbase.com/v2/prices/LTC-USD/spot
https://api.binance.com/api/v3/ticker/price?symbol=LTCUSDT
https://api.huobi.pro/market/detail/merged?symbol=ltcusdt
https://openapi-v2.kucoin.com/api/v1/market/stats?symbol=LTC-USDT
https://www.gate.io/docs/developers/apiv4/en/#retrieve-ticker-information
https://ftx.com/api/markets/LTC/USD
https://www.bitstamp.net/api/v2/ticker/ltcusd
https://api-pub.bitfinex.com/v2/ticker/tLTCUSD
DOGE/USD
https://api.coinbase.com/v2/prices/DOGE-USD/spot
https://www.bitrue.com/kline-api/publicUSDT.json?command=returnTicker
https://api.binance.com/api/v3/ticker/price?symbol=DOGEUSDT
https://api.huobi.pro/market/detail/merged?symbol=dogeusdt
https://openapi-v2.kucoin.com/api/v1/market/stats?symbol=DOGE-USDT
https://www.gate.io/docs/developers/apiv4/en/#retrieve-ticker-information
https://ftx.com/api/markets/DOGE/USD
XLM/USD
https://api.coinbase.com/v2/prices/XLM-USD/spot
https://www.bitrue.com/kline-api/publicUSDT.json?command=returnTicker
https://api.binance.com/api/v3/ticker/price?symbol=XLMUSDT
https://api.huobi.pro/market/detail/merged?symbol=xlmusdt
https://openapi-v2.kucoin.com/api/v1/market/stats?symbol=XLM-USDT
https://www.gate.io/docs/developers/apiv4/en/#retrieve-ticker-information
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2. Submit the averages for each trading pair to the Songbird Network FTSO contract.
Ex. Call PriceSubmitter.submitPriceHashes with the averages hashed with secret random numbers. During reveal phase you call PriceSubmitter.revealPrices to publish the secrets you used.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3. Create a web interface for delegating to our Price Oracle on Songbird Network and Wrapping Songbird Tokens.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
More info:
https://www.npmjs.com/package/@flarenetwork/ftso_price_provider_kick_off_package
The folder "priceProviderMockContracts" shows mock up contract of a price provider.
https://gitlab.com/flarenetwork/flare-smart-contracts/-/tree/master/contracts/ftso
Configuration of Songbird Node.
https://gitlab.com/flarenetwork/node-config
1. Collect price data from API endpoints so we can create average price using multiple exchanges.
FLR/USD
https://www.bitrue.com/kline-api/publicUSDT.json?command=returnTicker
XRP/USD
https://www.bitrue.com/kline-api/publicUSDT.json?command=returnTicker
https://api.binance.com/api/v3/ticker/price?symbol=XRPUSDT
https://api.huobi.pro/market/detail/merged?symbol=xrpusdt
https://openapi-v2.kucoin.com/api/v1/market/stats?symbol=XRP-USDT
https://www.gate.io/docs/developers/apiv4/en/#retrieve-ticker-information
https://ftx.com/api/markets/XRP/USD
LTC/USD
https://www.bitrue.com/kline-api/publicUSDT.json?command=returnTicker
https://api.coinbase.com/v2/prices/LTC-USD/spot
https://api.binance.com/api/v3/ticker/price?symbol=LTCUSDT
https://api.huobi.pro/market/detail/merged?symbol=ltcusdt
https://openapi-v2.kucoin.com/api/v1/market/stats?symbol=LTC-USDT
https://www.gate.io/docs/developers/apiv4/en/#retrieve-ticker-information
https://ftx.com/api/markets/LTC/USD
https://www.bitstamp.net/api/v2/ticker/ltcusd
https://api-pub.bitfinex.com/v2/ticker/tLTCUSD
DOGE/USD
https://api.coinbase.com/v2/prices/DOGE-USD/spot
https://www.bitrue.com/kline-api/publicUSDT.json?command=returnTicker
https://api.binance.com/api/v3/ticker/price?symbol=DOGEUSDT
https://api.huobi.pro/market/detail/merged?symbol=dogeusdt
https://openapi-v2.kucoin.com/api/v1/market/stats?symbol=DOGE-USDT
https://www.gate.io/docs/developers/apiv4/en/#retrieve-ticker-information
https://ftx.com/api/markets/DOGE/USD
XLM/USD
https://api.coinbase.com/v2/prices/XLM-USD/spot
https://www.bitrue.com/kline-api/publicUSDT.json?command=returnTicker
https://api.binance.com/api/v3/ticker/price?symbol=XLMUSDT
https://api.huobi.pro/market/detail/merged?symbol=xlmusdt
https://openapi-v2.kucoin.com/api/v1/market/stats?symbol=XLM-USDT
https://www.gate.io/docs/developers/apiv4/en/#retrieve-ticker-information
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2. Submit the averages for each trading pair to the Songbird Network FTSO contract.
Ex. Call PriceSubmitter.submitPriceHashes with the averages hashed with secret random numbers. During reveal phase you call PriceSubmitter.revealPrices to publish the secrets you used.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3. Create a web interface for delegating to our Price Oracle on Songbird Network and Wrapping Songbird Tokens.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
More info:
https://www.npmjs.com/package/@flarenetwork/ftso_price_provider_kick_off_package
The folder "priceProviderMockContracts" shows mock up contract of a price provider.
https://gitlab.com/flarenetwork/flare-smart-contracts/-/tree/master/contracts/ftso
Configuration of Songbird Node.
https://gitlab.com/flarenetwork/node-config