---
name: bankr-dev-leverage-trading
description: This skill should be used when building perpetual trading bots, implementing leverage functionality, or adding position management. Covers Avantis integration, long/short positions, and risk controls.
version: 1.0.0
---

# Leverage Trading Capability

Trade perpetuals with leverage via natural language prompts.

## What You Can Do

| Operation | Example Prompt |
|-----------|----------------|
| Open long | `Open a 5x long on ETH with $100` |
| Open short | `Open a 3x short on BTC with $50` |
| Long with stop loss | `Open a 5x long on ETH with $100, stop loss at -10%` |
| Long with take profit | `Open a 5x long on ETH with $100, take profit at +20%` |
| Full risk management | `Open a 5x long on ETH with $100, stop loss at -10%, take profit at +20%` |
| View positions | `Show my Avantis positions` |
| Close position | `Close my ETH long position` |
| Close all | `Close all my Avantis positions` |
| Check PnL | `Check my PnL on Avantis` |

## Prompt Patterns

```
Open a {leverage}x {long|short} on {asset} with {collateral}
Open a {leverage}x long on {asset} with {collateral}, stop loss at {price|percent}
Close my {asset} {long|short} position
Show my Avantis positions
```

**Supported assets:**
- Crypto: BTC, ETH, SOL, ARB, AVAX, BNB, DOGE, LINK, OP, MATIC
- Forex: EUR/USD, GBP/USD, USD/JPY, AUD/USD, USD/CAD
- Commodities: Gold, Silver, Oil, Natural Gas

**Chain:** Base

## Usage

```typescript
import { execute } from "./bankr-client";

// Open leveraged position
await execute("Open a 5x long on ETH with $100, stop loss at -10%");

// Check positions
await execute("Show my Avantis positions");

// Close position
await execute("Close my ETH long position");
```

## Related Skills

- `bankr-client-patterns` - Client setup and execute function
- `bankr-api-basics` - API fundamentals
- `bankr-market-research` - Price data for trading decisions


---
Source attribution: BankrBot
Original project: https://github.com/BankrBot/claude-plugins/blob/67d33d4ee8e1680ce823eb9fe9ad371326c6b5ec/bankr-agent-dev/skills/bankr-leverage-trading/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License

Copyright (c) 2024 Bankr

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: BankrBot
Original project: https://github.com/BankrBot/claude-plugins/blob/67d33d4ee8e1680ce823eb9fe9ad371326c6b5ec/bankr-agent-dev/skills/bankr-leverage-trading/SKILL.md
Attribution basis: Recovered original package and original project license at a pinned revision

Fields of work: Finance & Accounting, Marketing, Sales
Roles: Business Development, Financial Analyst, Growth Marketer, Product Marketer, Sales Engineer
Specialties: API
Tools: Avantis
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 32773e337afe7633267868ade5dcafa91d8143eaec6dbe08b11c62b07103b945
Metadata reviewed: 2026-10-27
This metadata supersedes earlier Dave AI catalog attribution. Original instruction and supporting files are preserved.
