Struct ig_brokers::api::IG[][src]

pub struct IG { /* fields omitted */ }

Implementations

Creates a new API instance with the production configuration.

Creates a new API instnace with the demo configuration.

Creates a new API instance with a config.

GET /accounts Returns a list of accounts belonging to the logged-in client.

GET /accounts/preferences Returns account preferences.

PUT /accounts/preferences Updates account preferences.

GET /history/activity Returns the account activity history.

GET /history/transactions Returns the transaction history. By default returns the minute prices within the last 10 minutes.

GET /clientsentiment Returns the client sentiment for the given instrument’s market.

GET /clientsentiment/{marketId} Returns the client sentiment for the given instrument’s market.

GET /clientsentiment/related/{marketId} Returns a list of related (what others have traded) client sentiment for the given instrument’s market.

GET /confirms/{dealReference} Returns a deal confirmation for the given deal reference.

GET /positions Returns all open positions for the active account.

GET /positions/{dealId} Returns an open position for the active account by deal identifier.

DELETE /positions/otc Closes one or more OTC positions.

POST /positions/otc Creates an OTC position.

PUT /positions/otc/{dealId} Updates an OTC position.

GET /positions/sprintmarkets A list of sprint market positions.

POST /positions/sprintmarkets Creates a sprint market position.

GET /workingorders Returns all open working orders for the active account.

POST /workingorders/otc Creates an OTC working order.

DELETE /workingorders/otc/{dealId} Deletes an OTC working order.

PUT /workingorders/otc/{dealId} Updates an OTC working order.

GET /operations/application Returns a list of client owned applications.

PUT /operations/application Alters the details of a given user application.

GET /session Returns the user’s session details and optionally tokens.

GET /marketnavigation Returns all top-level nodes (market categories) in the market navigation hierarchy.

GET /marketnavigation/{nodeId} Returns all sub-nodes of the given node in the market navigation hierarchy.

GET /markets Returns the details of the given markets.

GET /markets/{epic} Returns the details of the given market.

GET /markets?searchTerm={searchTerm} Returns all markets matching the search term.

GET /prices/{epic} Returns historical prices for a particular instrument. By default returns the minute prices within the last 10 minutes.

GET /watchlists Returns all watchlists belonging to the active account

POST /watchlists Creates a watchlist.

DELETE /watchlists/{watchlistId} Deletes a watchlist.

GET /watchlists/{watchlistId} Returns a watchlist.

PUT /watchlists/{watchlistId} Add a market to watchlist.

DELETE /watchlists/{watchlistId}/{epic} Remove a market from a watchlist.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.