Skip to content

Commit

Permalink
fix: collab nibiru module installation (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev authored Sep 27, 2023
1 parent f0ef1ec commit a7621f7
Showing 1 changed file with 24 additions and 4 deletions.
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

0 comments on commit a7621f7

Please sign in to comment.