# Developer Integration Guidelines:

This guide helps the Engineer in the integration process, refer to the below link for dev integration&#x20;

“npm install oddz-component-library” or “yarn add oddz-component-library”&#x20;

Here’s the link for Dev integration - [Oddz Components Library](https://www.npmjs.com/package/oddz-component-library)

## API Document&#x20;

### Get Premium

/getPremium&#x20;

/getPremium allows users on oddz protocol to get the price of chosen asset. Just ensure all request parameters are mandatory. Once get premium called, the below information is will available:&#x20;

* Option premium&#x20;
* Transaction fee&#x20;
* Implied Volatility(IV)&#x20;
* Implied Volatility(IV) decimal

#### Request Parameters

![](https://lh5.googleusercontent.com/-igvz3j4MUbbMlS98loBiFmXAYzVCS_sFyIim9tKVGZlE3M8BrWMY5wdufiJ4v9ZwVIhM9d89UVLsyD4Z4v8qHP_z0NtAoh51xUqG42J0hVj2Rw4KPTSLBvB-3r84mQvbBwfeAa-)

### Buy Option&#x20;

/buy

/buy allows users on oddz protocol to buy M number of CALL or PUT options for Asset ETH OR BTC for N number of days(minimum 7 days ) for a specific strike price.&#x20;

#### Request Parameters

![](https://lh4.googleusercontent.com/MiyvHo8tnxJ-5nQZBBJ2avAwY_iReN2en8vgXULlMt0XtTd-is2PJz-NKH8kDFzZ3a41FDlLC4zjYro08E-UzhzHaXD6X2Y0QeRiOQQTPyiQpD3cki208EMAfIY4WgSVLMIBHWrG)

### Buy Option Without Gas Fee&#x20;

/buyWithGasless&#x20;

/buyWithGasless allows oddz protocol users to purchase M number of CALL or PUT options for Asset ETH OR BTC for N number of days (minimum 7 days) at a specific strike price without paying any gas fee and return option Id.

![](https://lh6.googleusercontent.com/vW50s_9waImHaT0M9IMT8twnZAjhTR6Y3fM1T4oVa9MXBrgiO6kViL83zWCfE8QUwHVmfrplcK1xFcmKWxAbaWP52tXYtMqoL5HD26CVF3yivXTbRIce2jCp9V3vNKt89NxMKD6V)

### Strategies&#x20;

Oddz component also supports underlying strategies, Users can choose a specific strategy based on Market Sentiment (BULLISH, BEARISH, SIDEWAYS), Risk Factor (Low, Medium, High), and Duration they choose to hedge their positions.

Here’s a clear distribution of strategies for Oddz DEX: [Distribution table](https://docs.google.com/spreadsheets/d/1-jVS9YW5ilrnOX0rNSnDsmeFp-tcuhbO7m8puRvmLF0/edit#gid=0)


---

# 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.oddz.fi/oddz-wiki/oddz-dex-integration/developer-integration-guidelines.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.
