# Basket Trade

A basket trade allows you to execute multiple orders across different assets simultaneously as a single transaction. This is useful for portfolio rebalancing, implementing complex trading strategies, or executing correlated trades with precise timing.

Examples of basket trade: Long BTC + ETH, Short DOGE + SHIB in a single trade

This is possible in our API by specifying multiple `longAssets` and `shortAssets` along with their respective weights when calling the [Positions](/api-integration/api-specification/positions.md#post-positions)


---

# 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.pearprotocol.io/api-integration/executing-trade/basket-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.
