> For the complete documentation index, see [llms.txt](https://wiki.blocklords.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.blocklords.com/game-mechanics/world-map/cities/city-buildings/marketplace/market-mechanics/trading-algorithm.md).

# Trading Algorithm

The trading algorithm in BLOCKLORDS governs the dynamics of the marketplace, offering a dynamic and responsive trading environment:

1. **Marketplace Dynamics**: It's important to note that the marketplace is subject to change and balancing, as the game evolves. Players should be aware of potential adjustments and updates.
2. **Item Availability**: The items available in the market undergo a refresh every hour. This periodic refresh ensures a dynamic inventory for trading.
3. **Price Variation**: Prices of items in the market are subject to random research every hour, following predefined price ranges. This introduces variability into the pricing of resources.
4. **Real-Time Price Updates**: Prices are updated every 10 minutes based on the dynamic buy and sell activity of players within the game. This real-time adjustment mechanism reflects market supply and demand.
5. **Volume Impact**: Trading volumes play a significant role in price determination. If there are numerous buy orders, it increases the buying price, while high sales volumes decrease the selling price. Conversely, low buy volumes can lower the buying price, and low sell volumes can increase the selling price.

<br>


---

# 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://wiki.blocklords.com/game-mechanics/world-map/cities/city-buildings/marketplace/market-mechanics/trading-algorithm.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.
