Skip to contents

Authentication

Functions for IG API authentication

ig_auth()
Authenticate with the IG API
ig_close_session() ig_logout()
Close session

Market Data

Functions for markets, prices, and historical data

ig_get_price()
Get current price for a market
ig_get_historical()
Get historical prices for a market
ig_search_markets()
Search markets
ig_get_markets_by_epic()
Get market details for one or more epics

Trading & Accounts

Functions for trades and account info

ig_execute_trade()
Execute a trade (place OTC position)
ig_get_accounts()
Retrieve IG account details
ig_get_options()
Get options/derivatives positions

Package

General package information

igfetchr-package
igfetchr: Access the IG Trading REST API

Internal Helpers

Low-level helper functions for API requests

.ig_request()
Internal function to make HTTP requests to IG API