| Crates.io | phoenix-onchain-mm |
| lib.rs | phoenix-onchain-mm |
| version | 0.1.1 |
| created_at | 2023-09-25 15:02:47.613331+00 |
| updated_at | 2023-09-26 02:23:56.491639+00 |
| description | Phoenix on-chain MM program |
| homepage | |
| repository | https://github.com/All-In-One-Blockchain/phoenix-onchain-mm.git |
| max_upload_size | |
| id | 982807 |
| size | 32,446 |
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_by_oracle(TOKEN)
await market_maker.update_orders(price)
time.sleep(SLEEP_DURATION)