> For the complete documentation index, see [llms.txt](https://lavarage.gitbook.io/lavarage/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lavarage.gitbook.io/lavarage/platform/lavarage-api/lavaos-documentation/position-actions.md).

# Position Actions

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:orange;"><strong>POST</strong></mark> Position Open<br><mark style="color:$info;">1 item</mark></td><td></td><td><a href="/pages/fQAY5aZAiKmu1JlDAVX6">/pages/fQAY5aZAiKmu1JlDAVX6</a></td></tr><tr><td><mark style="color:orange;"><strong>POST</strong></mark> Position Sell</td><td><mark style="color:$info;">1 item</mark></td><td><a href="/pages/72yg8vafiMyfwdvlImfT">/pages/72yg8vafiMyfwdvlImfT</a></td></tr><tr><td><mark style="color:orange;"><strong>POST</strong></mark> Position Repay</td><td><mark style="color:$info;">1 item</mark></td><td><a href="/pages/v2zI2PytGoBLnJIWgmtV">/pages/v2zI2PytGoBLnJIWgmtV</a></td></tr><tr><td><mark style="color:orange;"><strong>POST</strong></mark> Position Partial Repay</td><td><mark style="color:$info;">1 item</mark></td><td><a href="/pages/lIKzhrhX3wVB80f5BxAc">/pages/lIKzhrhX3wVB80f5BxAc</a></td></tr><tr><td><mark style="color:orange;"><strong>POST</strong></mark> Position Split</td><td><mark style="color:$info;">1 item</mark></td><td><a href="/pages/ruPQZpZByIvmZv4RUK1n">/pages/ruPQZpZByIvmZv4RUK1n</a></td></tr><tr><td><mark style="color:orange;"><strong>POST</strong></mark> / <mark style="color:purple;"><strong>PUT</strong></mark> / <mark style="color:red;"><strong>DELETE</strong></mark> <br>Take Profit</td><td><mark style="color:$info;">3 items</mark></td><td><a href="/pages/sJrn4ZH2DiMLZBlGgkph">/pages/sJrn4ZH2DiMLZBlGgkph</a></td></tr></tbody></table>

### Improving Transaction Success Rate

To maximize transaction success rates when opening or closing positions, we recommend implementing one of the following approaches:

#### Recommended: Use Lavarage RPC with Transaction Signing

Send transactions through our optimized RPC endpoint specifically designed for Lavarage transactions. This RPC is optimized for sending transactions only and cannot be used to read blockchain state.

**Implementation:**

```jsx
if (useSignAndRpc) {
  // Original method: Sign transaction and send through RPC
  const signedTransaction = await signTransaction!(transaction!)
  const newConnection = new Connection('<https://ng-api.lavarave.wtf/api/sdk/v1.0/proxy/rpc>', "confirmed")
  transactionHash = await newConnection.sendRawTransaction(signedTransaction.serialize())
} else {
  // Direct method: Send transaction directly through wallet
  if (!sendTransaction) {
    throw new Error("Wallet does not support direct transaction sending")
  }
  transactionHash = await sendTransaction(transaction!, connection)
}
```

**RPC Endpoint:** `https://ng-api.lavarave.wtf/api/sdk/v1.0/proxy/rpc`

**Note:** This RPC is optimized exclusively for sending Lavarage transactions and should not be used for reading blockchain state.

#### Alternative: Send Jito Bundles with Priority Tips

For improved landing rates, send Jito bundles with tips set to at least 3 times the 99th percentile tip floor. The tip transaction must be added to the bundle manually.

For detailed implementation guidance, refer to the [Jito bundle documentation](https://docs.jito.wtf/lowlatencytxnsend/#sendbundle)
