# Desktop Chat-to-Trade

## Content

[What is Chat-To-Trade?](#what-is-chat-to-trade)

[First, Follow these 2 Nostr Accounts](#first-follow-these-2-nostr-accounts)

[Add Lnfi Relay](#add-lnfi-relay)

[How to use Chat-to-Trade commands to Transfer or Check Balance?](#how-to-use-chat-to-trade-commands-to-transfer-or-check-balance)

[How to use Marketplace via Chat-to-Trade?](#how-to-use-marketplace-via-chat-to-trade)

***

### What is Chat-To-Trade?

Chat-to-trade provides a streamlined method for users to effortlessly execute trade orders using natural language commands, eliminating the need for intricate user interfaces. It works on most Nostr frontend clients such as Damus, Amethyst, Plebstr & Primal.

{% hint style="warning" %}
Nostr protocol is currently in its early stages, it's important to note that while Nostr clients are interoperable, they may not adhere to a standardized UI and UX experience yet.
{% endhint %}

{% hint style="info" %}
For Chat-to-Trade commands, please refer to:\
i) [Natural Language Commands](/natural-language-commands.md)

ii) [Marketplace Commands](/marketplace/marketplace-commands.md)
{% endhint %}

***

### First, Follow these 2 Nostr Accounts

We will use [primal.net](https://primal.net) as the primary Nostr client for this guide.

Go to Primal.net and log in to your Nostr Address (using your [Alby Extension](broken://pages/xgXJQn8HXw30P0JWaCST)).

Then, copy the following Nostr Address below to follow them.

<table><thead><tr><th width="170">Nostr Account</th><th width="184">Description</th><th>Nostr Address</th><th data-hidden></th></tr></thead><tbody><tr><td><strong>Nostr Assets</strong></td><td>Token Events</td><td>npub1dy7n73dcrs0n24ec87u4tuagevkpjnzyl7aput69vmn8saemgnuq0a4n6y</td><td></td></tr><tr><td><strong>NostrAssets-Market</strong></td><td>Market Events</td><td>npub1zl7exeul3py65wt9ux243r0e3pukt8jza28xmpu844mj5wqpncaq0s2tyw</td><td></td></tr></tbody></table>

Paste and search each address in the search bar

```
npub1dy7n73dcrs0n24ec87u4tuagevkpjnzyl7aput69vmn8saemgnuq0a4n6y
```

<figure><img src="/files/DQ1M0lD4L5taLmmj90N4" alt=""><figcaption></figcaption></figure>

Tap on Follow.

<figure><img src="/files/9kzRQSsXZv67p95HWNDQ" alt=""><figcaption></figcaption></figure>

Then do the same for the 2nd Nostr address.

```
npub1zl7exeul3py65wt9ux243r0e3pukt8jza28xmpu844mj5wqpncaq0s2tyw
```

***

### Add Lnfi Relay

Next step, you need to add our Relay in order for the commands to work.

Go to Settings > Network

<figure><img src="/files/it1Uw1LSj7cCybks8gDn" alt=""><figcaption></figcaption></figure>

Scroll down and at the Connect to a relay portion enter the following

```
wss://relay.lnfi.network
```

<figure><img src="/files/gkVXduoruBI0VPRHIhmD" alt=""><figcaption></figcaption></figure>

***

### How to use Chat-to-Trade commands to Transfer or Check Balance?

Go to Token Event Manager (npub1dy7n73dcrs0n24ec87u4tuagevkpjnzyl7aput69vmn8saemgnuq0a4n6y) and tap on the Direct Message button.

<figure><img src="/files/LdQ2pelQp9y40cX1hEUN" alt=""><figcaption></figcaption></figure>

In the Direct Message Chat, you can use natural language to enter commands.

For example, if you want to transfer 100 sats to another Nostr address, you can use the transfer commands like this:

transfer (quantity) (asset) to (Nostr address)

```
transfer 100 sats to npubxxxxxxxxxxxxxxx
```

<figure><img src="/files/TX2UaNWfdUMiyK8mrUFE" alt=""><figcaption></figcaption></figure>

To check balance, simply type the following commands:

```
balance
```

<figure><img src="/files/lKkAutp9xLN0Cpwbf5nH" alt=""><figcaption></figcaption></figure>

With AssetManager, you can also perform the following commands:\
\- check balance of other nostr addresses\
\- add address and name of the contact\
\- approve operator to manage a portion of your assets

{% hint style="success" %}
For full list of commands with Nostr Assets Token Event Manager, refer here:\
i) [Natural Language Commands](/natural-language-commands.md)
{% endhint %}

***

### How to use Marketplace via Chat-to-Trade?

{% hint style="warning" %}
**Important:** Before you can use Marketplace via Chat-to-Trade, you need to approve and authorize it with a portion of your assets.
{% endhint %}

To approve MarketMAnager, first, you need to enter the command with AssetManager.\
\
Go to AssetManager Direct Message.

For example, if you want to approve MarketManager with 100 $TRICK, use this command:

```
Approve 100 TRICK to npub1dy7n73dcrs0n24ec87u4tuagevkpjnzyl7aput69vmn8saemgnuq0a4n6y
```

{% hint style="success" %}
This means that now the Marketplace can act on your behalf to create sell listing(s) for a maximum of 100 TRICK from your account.
{% endhint %}

To create a sell listing for TRICK, now you need to go to the MarketManager\
Tap on the Direct Message button.

<figure><img src="/files/kHHJuxFNUlw58U89cFAd" alt=""><figcaption></figcaption></figure>

Example of the command to create a sell listing

```
Sell 100 TRICK at price 1000000 SATS
```

<figure><img src="/files/uBtGgJlQiFo8ypPPtsnU" alt=""><figcaption></figcaption></figure>

With MarketManager, you can perform the following commands to:\
\- show all your buy/sell orders\
\- show all your history orders\
\- take order\
\- cancel order

{% hint style="success" %}
The full list of Marketplace Commands can be found here\
i) [Marketplace Commands](/marketplace/marketplace-commands.md)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lnfi.network/user-guides/desktop-chat-to-trade.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
