-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from napse-invest/dev
Dev
- Loading branch information
Showing
5 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,8 @@ class Meta: | |
"uuid", | ||
"value", | ||
"bot_count", | ||
# write-only | ||
"clusters", | ||
] | ||
read_only_fields = [ | ||
"uuid", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Quickstart | ||
|
||
!!! warning | ||
Nothing in this documentation constitutes investment advice. This documentation only explains and illustrates how to use the tool. Anything you do with the tool is under your sole responsibility, in accordance with the MIT license. | ||
|
||
Once you've followed the [installation instructions](https://napse-invest.github.io/django-napse/#installation), let's take a look at how you can build your own bot. | ||
|
||
## Exchange & Exchange Account | ||
--- | ||
|
||
From the `secrets.json` file, the exchange **BINANCE** and the exchange account with the name **Binance EA_NAME** have been automatically built. | ||
|
||
However, if you want to build another exchange or another exchange account, let's take a look at how to do it. | ||
|
||
```python | ||
from django_napse.core.models import Exchange, ExchangeAccount | ||
|
||
# Create an exchange | ||
exchange = Exchange.objects.create( | ||
name="BINANCE", | ||
description="...", | ||
) | ||
exchange_account = ExchangeAccount.objects.create( | ||
exchange=exchange, | ||
testing=True, | ||
name="ea name", | ||
description="...", | ||
) | ||
``` | ||
|
||
## Space | ||
--- | ||
|
||
Let's build a space. A space is a place to categorize and manage your money. | ||
```python | ||
from django_napse.core.models import NapseSpace | ||
space = NapseSpace.objects.create( | ||
name="Space", | ||
description="Space description", | ||
exchange_account=exchange_account, | ||
) | ||
``` | ||
|
||
## Fleet | ||
--- | ||
|
||
Then it's time to build a fleet. A fleet is a set of bot. This allows bots to be scaled up according to the amount of money they manage. | ||
```python | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters