2023-04-16 23:52:27 -07:00
|
|
|
This directory contains a sample market maker (`market-maker.ts`) in typescript, which can be run using ts-node.
|
|
|
|
|
|
|
|
The environment variables required are
|
|
|
|
|
|
|
|
- `MANGO_ACCOUNT_PK` - public key of the mango account
|
|
|
|
- `KEYPAIR` - private key of the owner of the mango account
|
|
|
|
- `MB_CLUSTER_URL` - RPC cluster url
|
2023-04-16 23:54:02 -07:00
|
|
|
|
|
|
|
Notes:
|
|
|
|
- Quoting is based off of kraken
|
|
|
|
- see default.json for quoting rules
|
|
|
|
|
|
|
|
Future:
|
|
|
|
- Hedging perp positions on mango-v4 spot
|
|
|
|
- Observing fills and reacting earlier
|
|
|
|
- Quoting off of binance
|