# Quickstart

Want to get started immediately? In this guide we go through how to get you started with these steps:

* Generate a trading wallet
* Subscribe to a free signal data source on the marketplace
* Create an Easy Mode strategy that processes the signals
* Activate live trading

### Generate a trading wallet

After having logged in, you head over to the Portfolio section. This is where you create and manage your trading wallets. These wallets are stored and managed via the Privy.io platform, and Tradecraft does not hold or interact with the private keys at any point in time. As a user you can export the private keys and import them into external wallets if you so wish.

<div align="center"><figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2FogY8SjBFMd4Ccmpu5a3A%2Fimage.png?alt=media&#x26;token=66797f1b-d12f-4d39-a730-6cfa6cc11546" alt="" width="563"><figcaption><p>Landing page after having logged in.</p></figcaption></figure></div>

* Click on Add Wallet. This will generate a Privy.io wallet for you.

<div><figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2F8YQ68yPgk9VkTxDWLjYN%2Fimage.png?alt=media&#x26;token=f37744e9-d7bb-4926-baab-463d176db8f3" alt=""><figcaption><p>The trading wallet management page.</p></figcaption></figure> <figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2FbYuTdOXgnM6GgSuelUvx%2Fimage.png?alt=media&#x26;token=3826de32-ab2c-478a-aa20-b188f1c2035a" alt=""><figcaption><p>A trading wallet has been generated.</p></figcaption></figure></div>

After having generated a wallet, you will need to fund it with SOL in order to trade with it. Once that is done, you need to enable trading through the toggle in the wallet card. This means you authorize the Tradecraft platform to perform automated trades with your Privy.io wallet.

* Fund your trading wallet with SOL
* Click on the trading toggle to enable Tradecraft to perform automated trades with your wallet

<figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2FNS30F70wzW90Qpsaa214%2Fimage.png?alt=media&#x26;token=dda6a45c-5b5c-4ed6-80db-3626a4e00fe4" alt="" width="563"><figcaption><p>The wallet has been funded and enabled for trading.</p></figcaption></figure>

### Subscribe to token signals at the marketplace

In order to have signals that you can trade, you need a signal data source. To get started you can subscribe to one of the free signal sources at the marketplace.

<figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2Fqh8iBicfjrMxlNf77aXL%2Fimage.png?alt=media&#x26;token=f1941a05-3936-404b-939d-fc86d029ce44" alt=""><figcaption><p>The token signal marketplace.</p></figcaption></figure>

* Pick a token signal source. In this example we will be using the Pump.fun Graduations source, which is free. It sends a token signal every time there is a graduation event on Pump.fun

### Create a trading strategy

Next step is to associate the token signals with a trading strategy that describes when to sell and when to buy the signals. Head over to the Signal Trading section, where all your trading strategies are listed and create your first strategy.

<figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2FtmlhmeP12Rc8sn2g28pz%2Fimage.png?alt=media&#x26;token=a787e79e-059b-4718-b2ea-556edc990f93" alt=""><figcaption></figcaption></figure>

A strategy has three parts to it:&#x20;

1. The signal source(s)
2. The trading algorithm
3. The live trading settings

The first steps are to attach the signal source that we subscribed to and define the trading algorithm.

<div><figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2F8xjyZhClGeEYNKl87vfe%2Fimage.png?alt=media&#x26;token=48c86a06-eff0-4559-817f-68e3c1267aca" alt=""><figcaption><p>Initial state of a new trading strategy.</p></figcaption></figure> <figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2FXNP6CFUEywWCrm9ju2UJ%2Fimage.png?alt=media&#x26;token=80e409fe-f82b-4099-89b5-362061fc20e9" alt=""><figcaption><p>The signal data source page lists all your available data source.</p></figcaption></figure></div>

The trading strategy gets an automatically generated name and description, that can both be modified.&#x20;

#### Attach a signal source to the strategy

In order to have signals flowing into the strategy, you need to attach a signal data source, before defining the trading algorithm that should be applied.

* Click on Add Data Sources
* Select the Pump.fun Graduation signal data source

<figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2FgJ3u9mtDA4XIfP7biNcD%2Fimage.png?alt=media&#x26;token=6df16df7-a5e5-439b-8a3b-6ab6db2b0fe9" alt=""><figcaption></figcaption></figure>

After having selected a signal source, the 20 most recent signals are backfilled in the table on the right hand side, in order to have data to play with in the simulator. Every time there is a new signal, a new row will appear in the table.

#### Trading algorithm

The next step is to decide how to trade the signals. On the left hand side of the page we have the algorithm that describes when to buy and how to sell the incoming token signals. In this basic example we use the Easy Mode.

<div><figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2F2BAExdANF5buY3idqv7U%2Fimage.png?alt=media&#x26;token=af83c89f-6c19-4a36-b10d-6a5e04d26c69" alt="" width="375"><figcaption><p>Trading strategy that buys on a dip and sells in two steps.</p></figcaption></figure> <figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2FN0UHJqNER9nFgm50McKC%2Fimage.png?alt=media&#x26;token=4b001d79-cc12-45af-b79a-bb9d3831484f" alt="" width="375"><figcaption><p>Trading strategy that buys immediately and sells on a 5x.</p></figcaption></figure></div>

In the images we see two different examples:

1. Buys on a 10% dip from the signal, sells 50% of the position at 2x, and the remaining position at 5x, with a stop loss at 30% compared to the price at the signal.
2. Buy immediately when the signal arrives. Sells the position at 5x, with no stop loss.

Save the strategy once you have decided the algorithm. The next step is to activate live trading.

#### Activate live trading

Now that you have a token signal source attached to a trading strategy, the next step is to activate the live trading. Head over to the Live Trading tab. where the automated trading parameters are managed.&#x20;

<figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2Fc8tjWOhsrnWE57VHtFBz%2Fimage.png?alt=media&#x26;token=a753a523-899c-4270-91d2-e153d1bf7976" alt="" width="563"><figcaption><p>At the live trading page you define parameters and activate/deactivate the automated trading for a strategy.</p></figcaption></figure>

In the Wallet Management section you decide which wallets to trade with and the amount, either absolute or a percentage of the wallet holdings. In the Trading Parameters section you decide on parameters such as slippage and priority fee. Once you have set the parameters and wants to go live, you need to activate the wallet(s) to trade with, and toggle the live trading switch at the top of the page.

<div><figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2F5LBT2uS4EZi4RlfN6dqa%2Fimage.png?alt=media&#x26;token=f57735ed-8829-469d-a02a-02b099ce8c62" alt="" width="359"><figcaption><p>An active trading wallet that buys for 0.001 SOL.</p></figcaption></figure> <figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2FKKAUgwEnSH9oQMhks48H%2Fimage.png?alt=media&#x26;token=bc59e1a5-e7e9-471d-abfb-3a476b15218d" alt="" width="359"><figcaption><p>Trading parameters such as slippage and priority fees.</p></figcaption></figure></div>

* Set the amount to trade with on the trading wallet and activate it.
* Set the trading parameters such as priority fee and slippage, if you want it to be different than the default settings.
* Toggle the activation button at the top of the page.

<figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2F4KvBbTonotLRtHOTgjnh%2Fimage.png?alt=media&#x26;token=1c064c0c-8296-4784-8f84-ac27c8a78004" alt="" width="563"><figcaption><p>View of a strategy that has activated the live trading.</p></figcaption></figure>

The strategy is now trading live. As signals comes in, they first appear in the Monitored Tokens table to then, as a position is opened, moves to the Open Positions table. When a token is monitored, it means for example that a strategy is waiting for a dip before it opens a position. The Trade Log section shows the full history of all the buy and sell operations and the gains or losses.

That's it for the Quickstart! In the other sections of this documentation we go through the more advanced features, such as how to backtest on historical data, how to define your own algorithm in JavaScript and how to debug the strategy execution.
