Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Aug 19, 2025

This PR adds comprehensive documentation for all supported assets and timeframes in the PocketOption API, addressing the community request for clarity on what trading instruments are available.

What's Added

New Documentation Page

  • Created /docs/assets-timeframes.html with complete listings of all supported trading instruments
  • Professional styling that matches the existing documentation design
  • Organized content by asset categories for easy navigation

Comprehensive Asset Coverage (121 total assets)

  • Major Forex Pairs (7): EURUSD, GBPUSD, USDJPY, etc.
  • OTC Forex Pairs (25): Extended trading hours currency pairs
  • Commodities (14): Gold, Silver, Oil, Natural Gas, Platinum, Palladium
  • Cryptocurrencies (10): Bitcoin, Ethereum, Dash, Polkadot, Chainlink
  • Stock Indices (24): S&P 500, NASDAQ, Dow Jones, Nikkei 225, DAX 30, etc.
  • US Stocks (36): Apple, Microsoft, Tesla, Amazon, Netflix, etc.
  • Additional Assets (5): Alternative stock symbol formats

Complete Timeframe Documentation (14 timeframes)

  • From ultra-high frequency (1 second) to long-term (1 month)
  • Both TimeFrame enum values and raw seconds provided
  • Clear use case descriptions for each timeframe (scalping, swing trading, etc.)

Enhanced User Experience

  • Navigation menu updated across all documentation pages
  • Practical usage examples with code samples
  • Important notes about asset availability and trading hours
  • Copy-to-clipboard functionality for code examples
  • Responsive grid layout for easy browsing

Code Examples

The documentation includes practical examples showing how to use the asset symbols:

# Getting candles for different asset types
forex_candles = await client.get_candles("GBPUSD_otc", TimeFrame.H1, 24)
crypto_candles = await client.get_candles("BTCUSD", TimeFrame.M15, 96)
stock_candles = await client.get_candles("#AAPL", TimeFrame.D1, 30)

This documentation eliminates confusion about which assets are supported and provides developers with the exact symbols needed for API calls.

Fixes #38.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI self-assigned this Aug 19, 2025
Copy link
Author

Copilot AI commented Aug 19, 2025

@theshadow76 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

Co-authored-by: theshadow76 <59869868+theshadow76@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Supported Assets and timeframes Add comprehensive documentation for supported assets and timeframes Aug 19, 2025
@Copilot Copilot AI requested a review from theshadow76 August 19, 2025 21:28
Copilot finished work on behalf of theshadow76 August 19, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Supported Assets and timeframes
2 participants