> For the complete documentation index, see [llms.txt](https://dogex-3.gitbook.io/dogex-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dogex-3.gitbook.io/dogex-docs/doge-ing-the-basics-page.md).

# Doge-ing the Basics Page

## Doge-ing the Basics: Your First Steps to Financial Ruin

### What You'll Need

* **A crypto wallet** (MetaMask preferred, but we're flexible)
* **Some USDC** (your soon-to-be-ex-money)
* **Nerves of steel** (or a complete lack of risk awareness)
* **A good therapist** (for post-liquidation blues)

### Opening Your First Position

#### Step 1: Approve Your USDC

Think of this as giving your money permission to bid you farewell.

#### Step 2: Choose Your Adventure

* **Collateral:** 1-1000 USDC (choose wisely, young grasshopper)
* **Position Size:** Determines your leverage (and possible doom)
* **Direction:**
  * **Long** = "DOGE to the moon!"
  * **Short** = "What goes up must come down"

#### Step 3: Send It!

Click that button and watch your money work harder than a beaver on Red Bull.

**Example: The "I'm Feeling Lucky" Trade**

```
// Opening a 50x long position with 10 USDC //
Translation: "I have 10 USDC and a gambling problem"
openPosition(
    ethers.utils.parseUnits("10", 6),   // 10 USDC collateral
    ethers.utils.parseUnits("500", 6),  // 500 USDC position (50x leverage)
    true                                // Long position (bullish on DOGE)
);
```

### Closing Your Position

```
// For when you realize you've made a terrible mistake
closePosition();
```

**Remember:** In crypto, timing is everything. Unfortunately, most of us have the timing of a broken clock.


---

# 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://dogex-3.gitbook.io/dogex-docs/doge-ing-the-basics-page.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.
