# Binary Option Example

## Project Description

This project involves the development of a simple decentralized application (DApp) for binary options, showcasing the practical use of data feeds.

### Code repository

The code for this project is available in [binary option orakl](https://github.com/Bisonai/orakl-demo-binary-option). Refer to the readme.md file for detailed instructions on forking the game.

## Disclaimer

Please be aware that binary options trading may be illegal in some jurisdictions. This DApp is purely for educational purposes.

## Key Concept

Upon connecting your wallet to the platform, users are allocated 30 points. These points are used to speculate on the price movements of specified pairs, predicting whether they will rise or fall. The DApp fetches the `latestRoundData()` and compares it with the price at the time of placing the bet.

To access the latest price information for a pair, consult the list of proxy contracts available on the Orakl Network Data Feed.

```solidity
function latestRoundData() external view returns (uint64 id, int256 answer, uint256 updatedAt) {
    return feed.latestRoundData();
}
```


---

# 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.orakl.network/developers-guide/example-projects/binary-example.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.
