Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: collab nibiru module installation #260

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions examples/colab_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,31 @@
"This notebook will guide you on opening and closing positions."
]
},
{
"cell_type": "markdown",
"source": [
"### 1. Install Nibiru package"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"!pip install nibiru"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 1. Prepare wallet mnemonic key (or private key)\n",
"### 2. Prepare wallet mnemonic key (or private key)\n",
"If you don't have a mnemonic key, generate it using some online service or run the code below:"
]
},
Expand All @@ -35,7 +55,7 @@
{
"cell_type": "markdown",
"source": [
"### 2. Get test tokens from the nibiru faucet\n",
"### 3. Get test tokens from the nibiru faucet\n",
"Faucet URL: [https://app.nibiru.fi/faucet](https://app.nibiru.fi/faucet)"
],
"metadata": {
Expand All @@ -45,7 +65,7 @@
{
"cell_type": "markdown",
"source": [
"### 3. Create nibiru chain client and authenticate using mnemonic\n",
"### 4. Create nibiru chain client and authenticate using mnemonic\n",
"The client below uses ITN-2 Nibiru testnet chain.\n",
"Use your mnemonic key or private key to authenticate.\n",
"If you took money from the faucet, your balances should not be empty."
Expand Down Expand Up @@ -74,7 +94,7 @@
{
"cell_type": "markdown",
"source": [
"### 4. Create a tx to open perp trading position\n",
"### 5. Create a tx to open perp trading position\n",
"Position is: LONG (=BUY),\n",
"\n",
"pair = ubtc:unusd: prefix `u` means `μ` or micro. So `unusd = micro unusd = 1/1000_000 nusd`, same for ubtc.\n",
Expand Down
Loading