mango-v4/ts/client/scripts/mm
microwavedcola1 cf1ca29cee ts: stock mm, fix perp market name
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-01-03 10:25:54 +01:00
..
params ts: stock mm, fix perp market name 2024-01-03 10:25:54 +01:00
Dockerfile.mm Merge dev changes (#532) 2023-04-07 13:57:53 +01:00
README.md add disclaimer to bots (#610) 2023-06-20 19:33:08 +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 ts: small logging update 2023-12-12 15:21:11 +01: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 optimise getAllMangoAccounts 2023-07-04 09:26:59 +02:00

README.md

Disclaimer:

The following open source code contains an example that documents possible interaction with the smart contract for the purpose of market making. Please note that the use of this code is at your own risk and responsibility.

  1. No Warranty: The code is provided "as is," without any warranty or guarantee of any kind, express or implied. The developers and contributors of this code do not make any representations or warranties regarding its accuracy, reliability, or functionality. The use of this code is solely at your own risk.

  2. Limitation of Liability: In no event shall the developers and contributors of this code be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services, loss of use, data, or profits, or business interruption) arising in any way out of the use, inability to use, or the results of the use of this code, even if advised of the possibility of such damages.

  3. Compliance with Laws: It is your responsibility to ensure that the use of this code complies with all applicable laws, regulations, and policies. The developers and contributors of this code shall not be held responsible for any illegal or unauthorized use of the code.

  4. User Accountability: You are solely responsible for any actions performed using this code. The developers and contributors of this code shall not be held liable for any misuse, harm, or damages caused by the bot or its actions.

  5. Security Considerations: While efforts have been made to ensure the security of this code, the developers and contributors do not guarantee its absolute security. It is recommended that you take appropriate measures to secure the code and any associated systems from potential vulnerabilities or threats.

  6. Third-Party Dependencies: This code may rely on third-party libraries, frameworks, or APIs. The developers and contributors of this code are not responsible for the functionality, availability, or security of any third-party components.

By using this open source code, you acknowledge and agree to the above disclaimer. If you do not agree with any part of the disclaimer, refrain from using the code.

License

See https://github.com/blockworks-foundation/mango-v4/blob/dev/LICENSE


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