Ellipsis-Labs / phoenix-onchain-market-maker

On-chain program that manages user quotes on Phoenix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phoenix On-chain Market Maker

This is a reference implementation of a smart contract for an on-chain market making bot.

It stores a quote width in basis points and a quote size and uses this information to update its current quotes.

The goal is to be able to write a client that looks like this:

while True:
  price = await get_fair_price(TOKEN)
  await market_maker.update_orders(price)
  time.sleep(SLEEP_DURATION)

About

On-chain program that manages user quotes on Phoenix


Languages

Language:Rust 80.1%Language:TypeScript 19.9%