Skip to content

A feedhandler which comunicates with a chainflip node and monitors price updates and builds order books for multiple pools on a schedule.

Notifications You must be signed in to change notification settings

Flugplatz/chainflip-feedhandler-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

chainflip-feedhandler-rs

A feedhandler which communicates with a chainflip node (REST and websocket), monitors price updates and builds order books for multiple pools on a schedule / price change.

Usage

Run a testnet node via instructions here: https://github.com/chainflip-io/chainflip-perseverance
You can inspect testnet information here: https://blocks-perseverance.chainflip.io/pools

CHAINFLIP_NODE_ADDR=192.168.1.70:9944 RUST_LOG=info cargo r

Next Steps

  • Decode sqrt_price_x96 values.
  • Implement order book functions which walk outwards to calculate slippage / volume weighted average price (VWAP).
    • Use Uniswap V3 maths to expand / contract liquidity as we traverse tick boundaries.
    • Limit orders should be consumed before range orders.
    • Fee estimation.

About

A feedhandler which comunicates with a chainflip node and monitors price updates and builds order books for multiple pools on a schedule.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages