Removed debug cell from Liquidation notebook.
This commit is contained in:
parent
70ddb1a364
commit
9881f5f3dc
|
@ -2,7 +2,7 @@
|
|||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "prime-julian",
|
||||
"id": "suitable-circuit",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# ⚠ Warning\n",
|
||||
|
@ -16,7 +16,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "valued-gates",
|
||||
"id": "natural-persian",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# 🥭 Liquidation\n",
|
||||
|
@ -31,7 +31,7 @@
|
|||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "sexual-authorization",
|
||||
"id": "interesting-fleet",
|
||||
"metadata": {
|
||||
"jupyter": {
|
||||
"source_hidden": true
|
||||
|
@ -49,7 +49,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "quantitative-evolution",
|
||||
"id": "overall-canadian",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## 🦺 Safety\n",
|
||||
|
@ -63,7 +63,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "stock-silence",
|
||||
"id": "false-billy",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## 📇 Collateralisation Ratios Details\n",
|
||||
|
@ -81,7 +81,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "committed-consequence",
|
||||
"id": "polish-hartford",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# 💧 Liquidation Process"
|
||||
|
@ -89,7 +89,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "accredited-profile",
|
||||
"id": "productive-mailman",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## 📇 Steps\n",
|
||||
|
@ -117,7 +117,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "finite-sapphire",
|
||||
"id": "speaking-retirement",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# 🏃 Running\n",
|
||||
|
@ -134,7 +134,7 @@
|
|||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "aquatic-honolulu",
|
||||
"id": "middle-dancing",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
|
@ -144,7 +144,7 @@
|
|||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "allied-least",
|
||||
"id": "virtual-capitol",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
|
@ -189,22 +189,6 @@
|
|||
" for token in group.tokens:\n",
|
||||
" print(f\"{token.name:>7} balance: {default_context.fetch_token_balance(default_wallet.address, token.mint):>18,.8f}\")\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "nuclear-bargain",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for index in range(len(intrinsic_balance_sheets_before)):\n",
|
||||
" before = intrinsic_balance_sheets_before[index]\n",
|
||||
" after = intrinsic_balance_sheets_after[index]\n",
|
||||
" if before.assets - after.assets > 0:\n",
|
||||
" print(f\"Margin account decreased by {before.assets - after.assets:,.8f} {before.token.name}\")\n",
|
||||
" if before.liabilities - after.liabilities > 0:\n",
|
||||
" print(f\"Margin account increased by {after.liabilities - before.liabilities:,.8f} {before.token.name}\")\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
|
Loading…
Reference in New Issue