Skip to content

It's the sample data fetcher of Datasource Warehouse for Kylin Node. The main features of this data fetcher is extract market information from independent service provided by Kylin. Everyone can implement such data fetcher to feed OCW.

License

Notifications You must be signed in to change notification settings

Kylin-Network/sample-data-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data fetcher

This application converts different external API requests into unified endpoind to simplify usage in pallet side.

Usage

before running this program, please acquire API key and secret from kylin network.

export KYLIN_API_KEY=<replace_me>
export KYLIN_API_SECRET=<replace_me>
cargo run

if no error here, the data proxy service will be started at 8080 port. Currenly only four queries are supported:

  • liquidation_order_list
  • bitmex_perpetual_contract_rate
  • bitmex_large_order_list
  • bitfinex_holdings_minutes

Please refer Kylin Contract Data API document for respond detail.

Here is a sample response sent via httpie:

$ http post 127.0.0.1:8080/ name=bitfinex_holdings_minutes

About

It's the sample data fetcher of Datasource Warehouse for Kylin Node. The main features of this data fetcher is extract market information from independent service provided by Kylin. Everyone can implement such data fetcher to feed OCW.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published