> For the complete documentation index, see [llms.txt](https://docs.orakl.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.orakl.network/developers-guide/example-projects/binary-example.md).

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