Skip to main content

OperationsService

Trait OperationsService 

Source
pub trait OperationsService: Send + Sync {
    // Required methods
    fn get_client_apps<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ApplicationDetailsResponse, AppError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn disable_client_app<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<StatusResponse, AppError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Service for managing API application operations in the IG Markets API

This service provides methods for retrieving API application details and managing API key status.

Required Methods§

Source

fn get_client_apps<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ApplicationDetailsResponse, AppError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns a list of client-owned applications

§Returns
  • Ok(ApplicationDetailsResponse) - Details of all client applications
  • Err(AppError) - If the request fails
Source

fn disable_client_app<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<StatusResponse, AppError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disables the current application key

Disables the current application key from processing further requests. Disabled keys may be re-enabled via the My Account section on the IG Web Dealing Platform.

§Returns
  • Ok(StatusResponse) - The disable operation status
  • Err(AppError) - If the request fails

Implementors§