> For the complete documentation index, see [llms.txt](https://docs.piratenation.game/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.piratenation.game/learn/the-game/the-trader.md).

# The Trader

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

**Meet Flip the Trader**

After decades of service in the Merman King’s army, Flip grew tired of constantly battling pirates and decided to trade his sword for a ledger. He ventured beyond his familiar waters and discovered a chain of islands bustling with trade. Seeing an opportunity to use his skills in a different way, he dove headfirst into the world of commerce. With his natural charm and intellect, Flip quickly established himself as a merchant known for his shrewd negotiations and knack for sealing profitable deals.

<figure><img src="/files/KYKG6jVImqZKPp1d8974" alt=""><figcaption><p>Visit the Trader at Flip's Deep Discounts</p></figcaption></figure>

Flip's Deep Discounts is a Settlement Building enabling you to trade between Cotton, Stone, Wood, and Pirate Gold. Visit the Trader and enter in the amount of a resource you’re willing to trade to see what you’ll receive in the resource you want to collect. There is a `Max` button you can select to fully convert your full stockpile of a given resource into the desired resource.

<div data-full-width="true"><figure><img src="/files/0a7Bo3eGm51zrepvEaXA" alt=""><figcaption></figcaption></figure></div>

Exchange rates for resources are subject to change to ensure balance. For now, all resources you send in the trade will be burned in the background. The Trader's operations may be changed or expanded in the future.

Note: If you don’t yet have a trade license, your resource conversions will only use Marks, not Pirate Gold.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.piratenation.game/learn/the-game/the-trader.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
