mango-v4/ts/client/scripts/mm
microwavedcola1 a40ceedc97
Fix bug where if no insurance fund position was present, ix would err… (#522)
* Fix bug where if no insurance fund position was present, ix would error out

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* Fixes from review

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* Fixes from review

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* prettier

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

---------

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-04-17 11:30:27 +02:00
..
params increase spread 2023-03-29 20:54:07 +02:00
Dockerfile.mm Add fly deploy scripts (#490) 2023-03-20 14:59:43 +01:00
README.md Fix bug where if no insurance fund position was present, ix would err… (#522) 2023-04-17 11:30:27 +02:00
log-perp-ob.ts Update package.json build steps and move js scripts out of src folder (#470) 2023-02-22 08:36:59 +01:00
market-maker.ts comment 2023-03-30 21:09:01 +02:00
sequence-enforcer-util.ts Update package.json build steps and move js scripts out of src folder (#470) 2023-02-22 08:36:59 +01:00
taker.ts Update package.json build steps and move js scripts out of src folder (#470) 2023-02-22 08:36:59 +01:00

README.md

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

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