Go to file
Geoff Taylor 9111294f2d Added request/response data to TransactionException. 2021-08-31 10:40:05 +01:00
.vscode Added to_streaming_observable() method to OracleProviders. Added polling observable to Pyth and Serum providers, and websocket observable to FTX provider. 2021-06-13 16:01:36 +01:00
bin Added request/response data to TransactionException. 2021-08-31 10:40:05 +01:00
data updated ids.json 2021-08-25 14:16:24 -04:00
docs Updated Quickstart with correct faucet address: B87AhxX6BkBsj3hnyHzcerX2WxPoACC7ZyDr8E7H9geN. 2021-08-30 20:21:26 +01:00
mango Added request/response data to TransactionException. 2021-08-31 10:40:05 +01:00
meta Updated to handle Groups with 5 tokens as well as Groups with 3 tokens. 2021-05-27 17:07:02 +01:00
scripts Updated file-age-check to take multiple files. 2021-08-30 12:27:47 +01:00
tests Merging V3 branch into main. 2021-08-30 15:42:11 +01:00
.dockerignore Updated place_order() method to take an Order instead of separate parameters. 2021-07-28 15:29:24 +01:00
.envrc Moved development commands to 'scripts', so 'bin' is for actual commands. 2021-04-29 10:53:01 +01:00
.flake8 Moved library code to .py files instead of notebooks. 2021-06-07 15:10:18 +01:00
.gitignore Updated ids.json for new group. Updated Group with new structure. 2021-07-01 21:24:08 +01:00
.mypy.ini Brought up to date for new Group structures. New websocket approach. 2021-07-12 10:57:05 +01:00
Dockerfile Updates to allow some market making on Serum. 2021-07-13 20:01:32 +01:00
LICENSE Initial import. 2021-04-14 16:51:39 +01:00
Liquidation.ipynb Merging V3 branch into main. 2021-08-30 15:42:11 +01:00
Makefile Updated Makefile to be able to build latest or experimental docker images. 2021-08-23 15:40:51 +01:00
Pandas.ipynb Big renaming of Context properties to make them more consistent and appropriate. 2021-08-26 10:31:02 +01:00
README.md Updated README now that V3 code is in main. 2021-08-30 15:52:34 +01:00
ShowAccount.ipynb Improved reporting of TokenValue and BalanceSheet, in line with V2 changes. 2021-06-26 18:24:07 +01:00
ShowAllMarginAccounts.ipynb Big renaming of Context properties to make them more consistent and appropriate. 2021-08-26 10:31:02 +01:00
ShowGroup.ipynb Removed default context objects - now have static method on Context object: Context.default(). 2021-06-17 11:18:35 +01:00
ShowMarginAccount.ipynb Removed default context objects - now have static method on Context object: Context.default(). 2021-06-17 11:18:35 +01:00
ShowRipeMarginAccounts.ipynb Removed default context objects - now have static method on Context object: Context.default(). 2021-06-17 11:18:35 +01:00
requirements.txt Updated dependencies and fixed subsequent issues. 2021-08-27 20:37:23 +01:00
setup.py Moved library code to .py files instead of notebooks. 2021-06-07 15:10:18 +01:00

README.md

🥭 Mango Explorer

⚠ Warning

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Run these notebooks on Binder: Binder

Introduction

I am not yet confident in the figures and calculations. Please don't rely on this code yet!

There are some notebook pages to explore Mango account structures for your own accounts.

There is also a functional liquidator (in the V2 branch) and a functional marketmaker (in the main branch).

Running the marketmaker

There is a Marketmaking Quickstart - a walkthrough of setting up and running the marketmaker, from setting up the account, depositing tokens, to running the marketmaker itself.

It can take around 30 minutes to run through.

Requirements:

  • A server with docker installed

Note This walkthrough is devnet-only so no actual funds are used or at-risk.

Running the liquidator

There is a Liquidator Quickstart - a walkthrough of setting up and running the liquidator, from creating the account, 'balancing' the wallet across the different tokens, and running the liquidator itself.

It can take around 30 minutes to run through.

Requirements:

  • A server with docker installed
  • Some SOL to pay for transactions
  • Some USDC to fund the liquidation wallet

Note This is only for liquidating Mango V2. There is no Python V3 liquidator for Mango here (yet).

References

Support

You can contact me @OpinionatedGeek on Twitter.