├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── ig-webapi-java-client ├── lib │ └── ls-client.6.0.2.20160510.jar ├── pom.xml └── src │ └── main │ └── java │ └── com │ └── iggroup │ └── webapi │ └── samples │ └── client │ ├── RestAPI.java │ ├── StreamingAPI.java │ ├── rest │ ├── AbstractService.java │ ├── AuthenticationResponseAndConversationContext.java │ ├── AuthenticationService.java │ ├── Constants.java │ ├── ConversationContext.java │ ├── ConversationContextV2.java │ ├── ConversationContextV3.java │ ├── HttpDeleteWithBody.java │ ├── PublicApiServiceException.java │ └── dto │ │ ├── application │ │ ├── disable │ │ │ └── updateApplicationV1 │ │ │ │ ├── Status.java │ │ │ │ └── UpdateApplicationV1Response.java │ │ ├── getApplicationsV1 │ │ │ ├── GetApplicationsV1ResponseItem.java │ │ │ └── Status.java │ │ └── updateApplicationV1 │ │ │ ├── Status.java │ │ │ ├── UpdateApplicationV1Request.java │ │ │ └── UpdateApplicationV1Response.java │ │ ├── clientsentiment │ │ ├── getClientSentimentV1 │ │ │ └── GetClientSentimentV1Response.java │ │ └── getRelatedClientSentimentV1 │ │ │ ├── ClientSentimentsItem.java │ │ │ └── GetRelatedClientSentimentV1Response.java │ │ ├── getAccountsV1 │ │ ├── AccountType.java │ │ ├── AccountsItem.java │ │ ├── Balance.java │ │ ├── GetAccountsV1Response.java │ │ └── Status.java │ │ ├── getDealConfirmationV1 │ │ ├── AffectedDealStatus.java │ │ ├── AffectedDealsItem.java │ │ ├── DealStatus.java │ │ ├── Direction.java │ │ ├── GetDealConfirmationV1Response.java │ │ ├── PositionStatus.java │ │ └── Reason.java │ │ ├── history │ │ ├── getActivityHistoryByTimeRangeV1 │ │ │ ├── ActivitiesItem.java │ │ │ └── GetActivityHistoryByTimeRangeV1Response.java │ │ ├── getActivityHistoryV1 │ │ │ ├── ActivitiesItem.java │ │ │ └── GetActivityHistoryV1Response.java │ │ ├── getActivityHistoryV2 │ │ │ ├── ActivitiesItem.java │ │ │ ├── GetActivityHistoryV2Response.java │ │ │ ├── Metadata.java │ │ │ └── PageData.java │ │ ├── getActivityHistoryV3 │ │ │ ├── ActionType.java │ │ │ ├── ActionsItem.java │ │ │ ├── ActivitiesItem.java │ │ │ ├── Channel.java │ │ │ ├── Details.java │ │ │ ├── Direction.java │ │ │ ├── GetActivityHistoryV3Response.java │ │ │ ├── Metadata.java │ │ │ ├── Paging.java │ │ │ ├── Status.java │ │ │ └── Type.java │ │ ├── getTransactionHistoryByTimeRangeV1 │ │ │ ├── GetTransactionHistoryByTimeRangeV1Response.java │ │ │ └── TransactionsItem.java │ │ ├── getTransactionHistoryV1 │ │ │ ├── GetTransactionHistoryV1Response.java │ │ │ └── TransactionsItem.java │ │ └── getTransactionHistoryV2 │ │ │ ├── GetTransactionHistoryV2Response.java │ │ │ ├── Metadata.java │ │ │ ├── PageData.java │ │ │ └── TransactionsItem.java │ │ ├── markets │ │ ├── getMarketDetailsBySearchTermV1 │ │ │ ├── GetMarketDetailsBySearchTermV1Response.java │ │ │ ├── InstrumentType.java │ │ │ ├── MarketStatus.java │ │ │ └── MarketsItem.java │ │ ├── getMarketDetailsListV1 │ │ │ ├── CurrenciesItem.java │ │ │ ├── DealingRules.java │ │ │ ├── ExpiryDetails.java │ │ │ ├── GetMarketDetailsListV1Response.java │ │ │ ├── Instrument.java │ │ │ ├── InstrumentUnitType.java │ │ │ ├── MarginDepositBandsItem.java │ │ │ ├── MarginFactorUnit.java │ │ │ ├── MarketDetailsItem.java │ │ │ ├── MarketOrderPreference.java │ │ │ ├── MarketStatus.java │ │ │ ├── MarketTimesItem.java │ │ │ ├── MaxStopOrLimitDistance.java │ │ │ ├── MinControlledRiskStopDistance.java │ │ │ ├── MinDealSize.java │ │ │ ├── MinNormalStopOrLimitDistance.java │ │ │ ├── MinStepDistance.java │ │ │ ├── OpeningHours.java │ │ │ ├── RolloverDetails.java │ │ │ ├── SlippageFactor.java │ │ │ ├── Snapshot.java │ │ │ ├── TrailingStopsPreference.java │ │ │ ├── Type.java │ │ │ └── Unit.java │ │ ├── getMarketDetailsListV2 │ │ │ ├── CurrenciesItem.java │ │ │ ├── DealingRules.java │ │ │ ├── ExpiryDetails.java │ │ │ ├── GetMarketDetailsListV2Response.java │ │ │ ├── Instrument.java │ │ │ ├── InstrumentUnitType.java │ │ │ ├── MarginDepositBandsItem.java │ │ │ ├── MarginFactorUnit.java │ │ │ ├── MarketDetailsItem.java │ │ │ ├── MarketOrderPreference.java │ │ │ ├── MarketStatus.java │ │ │ ├── MarketTimesItem.java │ │ │ ├── MaxStopOrLimitDistance.java │ │ │ ├── MinControlledRiskStopDistance.java │ │ │ ├── MinDealSize.java │ │ │ ├── MinNormalStopOrLimitDistance.java │ │ │ ├── MinStepDistance.java │ │ │ ├── OpeningHours.java │ │ │ ├── RolloverDetails.java │ │ │ ├── SlippageFactor.java │ │ │ ├── Snapshot.java │ │ │ ├── TrailingStopsPreference.java │ │ │ ├── Type.java │ │ │ └── Unit.java │ │ ├── getMarketDetailsV1 │ │ │ ├── CurrenciesItem.java │ │ │ ├── DealingRuleUnit.java │ │ │ ├── DealingRules.java │ │ │ ├── ExpiryDetails.java │ │ │ ├── GetMarketDetailsV1Response.java │ │ │ ├── Instrument.java │ │ │ ├── InstrumentUnitType.java │ │ │ ├── MarginDepositBandsItem.java │ │ │ ├── MarketOrderPreference.java │ │ │ ├── MarketStatus.java │ │ │ ├── MarketTimesItem.java │ │ │ ├── MaxStopOrLimitDistance.java │ │ │ ├── MinControlledRiskStopDistance.java │ │ │ ├── MinDealSize.java │ │ │ ├── MinNormalStopOrLimitDistance.java │ │ │ ├── MinStepDistance.java │ │ │ ├── OpeningHours.java │ │ │ ├── RolloverDetails.java │ │ │ ├── SlippageFactor.java │ │ │ ├── Snapshot.java │ │ │ └── Type.java │ │ ├── getMarketDetailsV2 │ │ │ ├── CurrenciesItem.java │ │ │ ├── DealingRules.java │ │ │ ├── ExpiryDetails.java │ │ │ ├── GetMarketDetailsV2Response.java │ │ │ ├── Instrument.java │ │ │ ├── InstrumentUnitType.java │ │ │ ├── MarginDepositBandsItem.java │ │ │ ├── MarginFactorUnit.java │ │ │ ├── MarketOrderPreference.java │ │ │ ├── MarketStatus.java │ │ │ ├── MarketTimesItem.java │ │ │ ├── MaxStopOrLimitDistance.java │ │ │ ├── MinControlledRiskStopDistance.java │ │ │ ├── MinDealSize.java │ │ │ ├── MinNormalStopOrLimitDistance.java │ │ │ ├── MinStepDistance.java │ │ │ ├── OpeningHours.java │ │ │ ├── RolloverDetails.java │ │ │ ├── SlippageFactor.java │ │ │ ├── Snapshot.java │ │ │ ├── TrailingStopsPreference.java │ │ │ ├── Type.java │ │ │ └── Unit.java │ │ ├── getMarketDetailsV3 │ │ │ ├── CurrenciesItem.java │ │ │ ├── DealingRules.java │ │ │ ├── ExpiryDetails.java │ │ │ ├── GetMarketDetailsV3Response.java │ │ │ ├── Instrument.java │ │ │ ├── InstrumentUnitType.java │ │ │ ├── MarginDepositBandsItem.java │ │ │ ├── MarginFactorUnit.java │ │ │ ├── MarketOrderPreference.java │ │ │ ├── MarketStatus.java │ │ │ ├── MarketTimesItem.java │ │ │ ├── MaxStopOrLimitDistance.java │ │ │ ├── MinControlledRiskStopDistance.java │ │ │ ├── MinDealSize.java │ │ │ ├── MinNormalStopOrLimitDistance.java │ │ │ ├── MinStepDistance.java │ │ │ ├── OpeningHours.java │ │ │ ├── RolloverDetails.java │ │ │ ├── SlippageFactor.java │ │ │ ├── Snapshot.java │ │ │ ├── TrailingStopsPreference.java │ │ │ ├── Type.java │ │ │ └── Unit.java │ │ └── navigation │ │ │ ├── getMarketNavigationNodeV1 │ │ │ ├── GetMarketNavigationNodeV1Response.java │ │ │ ├── InstrumentType.java │ │ │ ├── MarketStatus.java │ │ │ ├── MarketsItem.java │ │ │ └── NodesItem.java │ │ │ └── getMarketNavigationRootV1 │ │ │ ├── GetMarketNavigationRootV1Response.java │ │ │ ├── InstrumentType.java │ │ │ ├── MarketStatus.java │ │ │ ├── MarketsItem.java │ │ │ └── NodesItem.java │ │ ├── positions │ │ ├── getPositionByDealIdV1 │ │ │ ├── Direction.java │ │ │ ├── GetPositionByDealIdV1Response.java │ │ │ ├── InstrumentType.java │ │ │ ├── Market.java │ │ │ ├── MarketStatus.java │ │ │ └── Position.java │ │ ├── getPositionByDealIdV2 │ │ │ ├── Direction.java │ │ │ ├── GetPositionByDealIdV2Response.java │ │ │ ├── InstrumentType.java │ │ │ ├── Market.java │ │ │ ├── MarketStatus.java │ │ │ └── Position.java │ │ ├── getPositionsV1 │ │ │ ├── Direction.java │ │ │ ├── GetPositionsV1Response.java │ │ │ ├── InstrumentType.java │ │ │ ├── Market.java │ │ │ ├── MarketStatus.java │ │ │ ├── Position.java │ │ │ └── PositionsItem.java │ │ ├── getPositionsV2 │ │ │ ├── Direction.java │ │ │ ├── GetPositionsV2Response.java │ │ │ ├── InstrumentType.java │ │ │ ├── Market.java │ │ │ ├── MarketStatus.java │ │ │ ├── Position.java │ │ │ └── PositionsItem.java │ │ ├── otc │ │ │ ├── closeOTCPositionV1 │ │ │ │ ├── CloseOTCPositionV1Request.java │ │ │ │ ├── CloseOTCPositionV1Response.java │ │ │ │ ├── Direction.java │ │ │ │ ├── OrderType.java │ │ │ │ └── TimeInForce.java │ │ │ ├── createOTCPositionV1 │ │ │ │ ├── CreateOTCPositionV1Request.java │ │ │ │ ├── CreateOTCPositionV1Response.java │ │ │ │ ├── Direction.java │ │ │ │ └── OrderType.java │ │ │ ├── createOTCPositionV2 │ │ │ │ ├── CreateOTCPositionV2Request.java │ │ │ │ ├── CreateOTCPositionV2Response.java │ │ │ │ ├── Direction.java │ │ │ │ ├── OrderType.java │ │ │ │ └── TimeInForce.java │ │ │ ├── updateOTCPositionV1 │ │ │ │ ├── UpdateOTCPositionV1Request.java │ │ │ │ └── UpdateOTCPositionV1Response.java │ │ │ └── updateOTCPositionV2 │ │ │ │ ├── UpdateOTCPositionV2Request.java │ │ │ │ └── UpdateOTCPositionV2Response.java │ │ └── sprintmarkets │ │ │ ├── createSprintMarketPositionV1 │ │ │ ├── CreateSprintMarketPositionV1Request.java │ │ │ ├── CreateSprintMarketPositionV1Response.java │ │ │ ├── Direction.java │ │ │ └── ExpiryPeriod.java │ │ │ ├── getSprintMarketPositionsV1 │ │ │ ├── Direction.java │ │ │ ├── GetSprintMarketPositionsV1Response.java │ │ │ ├── MarketStatus.java │ │ │ └── SprintMarketPositionsItem.java │ │ │ └── getSprintMarketPositionsV2 │ │ │ ├── Direction.java │ │ │ ├── GetSprintMarketPositionsV2Response.java │ │ │ ├── MarketStatus.java │ │ │ └── SprintMarketPositionsItem.java │ │ ├── prices │ │ ├── getPricesByDateRangeV1 │ │ │ ├── Allowance.java │ │ │ ├── ClosePrice.java │ │ │ ├── GetPricesByDateRangeV1Response.java │ │ │ ├── HighPrice.java │ │ │ ├── InstrumentType.java │ │ │ ├── LowPrice.java │ │ │ ├── OpenPrice.java │ │ │ └── PricesItem.java │ │ ├── getPricesByDateRangeV2 │ │ │ ├── Allowance.java │ │ │ ├── ClosePrice.java │ │ │ ├── GetPricesByDateRangeV2Response.java │ │ │ ├── HighPrice.java │ │ │ ├── InstrumentType.java │ │ │ ├── LowPrice.java │ │ │ ├── OpenPrice.java │ │ │ └── PricesItem.java │ │ ├── getPricesByNumberOfPointsV1 │ │ │ ├── Allowance.java │ │ │ ├── ClosePrice.java │ │ │ ├── GetPricesByNumberOfPointsV1Response.java │ │ │ ├── HighPrice.java │ │ │ ├── InstrumentType.java │ │ │ ├── LowPrice.java │ │ │ ├── OpenPrice.java │ │ │ └── PricesItem.java │ │ ├── getPricesByNumberOfPointsV2 │ │ │ ├── Allowance.java │ │ │ ├── ClosePrice.java │ │ │ ├── GetPricesByNumberOfPointsV2Response.java │ │ │ ├── HighPrice.java │ │ │ ├── InstrumentType.java │ │ │ ├── LowPrice.java │ │ │ ├── OpenPrice.java │ │ │ └── PricesItem.java │ │ └── getPricesV3 │ │ │ ├── Allowance.java │ │ │ ├── ClosePrice.java │ │ │ ├── GetPricesV3Response.java │ │ │ ├── HighPrice.java │ │ │ ├── InstrumentType.java │ │ │ ├── LowPrice.java │ │ │ ├── Metadata.java │ │ │ ├── OpenPrice.java │ │ │ └── PricesItem.java │ │ ├── session │ │ ├── createSessionV1 │ │ │ ├── AccountInfo.java │ │ │ ├── AccountType.java │ │ │ ├── AccountsItem.java │ │ │ ├── AuthenticationStatus.java │ │ │ ├── CreateSessionV1Request.java │ │ │ ├── CreateSessionV1Response.java │ │ │ ├── FormDetailsItem.java │ │ │ ├── FormType.java │ │ │ └── ReroutingEnvironment.java │ │ ├── createSessionV2 │ │ │ ├── AccountInfo.java │ │ │ ├── AccountType.java │ │ │ ├── AccountsItem.java │ │ │ ├── AuthenticationStatus.java │ │ │ ├── CreateSessionV2Request.java │ │ │ ├── CreateSessionV2Response.java │ │ │ ├── FormDetailsItem.java │ │ │ ├── FormType.java │ │ │ └── ReroutingEnvironment.java │ │ ├── createSessionV3 │ │ │ ├── AccessTokenResponse.java │ │ │ ├── CreateSessionV3Request.java │ │ │ └── CreateSessionV3Response.java │ │ ├── encryptionKey │ │ │ └── getEncryptionKeySessionV1 │ │ │ │ └── GetEncryptionKeySessionV1Response.java │ │ ├── getSessionV1 │ │ │ └── GetSessionV1Response.java │ │ ├── refreshSessionV1 │ │ │ └── RefreshSessionV1Request.java │ │ └── updateActiveAccountV1 │ │ │ ├── UpdateActiveAccountV1Request.java │ │ │ └── UpdateActiveAccountV1Response.java │ │ ├── watchlists │ │ ├── createWatchlistV1 │ │ │ ├── CreateWatchlistV1Request.java │ │ │ ├── CreateWatchlistV1Response.java │ │ │ └── Status.java │ │ ├── deleteWatchlistMarketV1 │ │ │ ├── DeleteWatchlistMarketV1Response.java │ │ │ └── Status.java │ │ ├── deleteWatchlistV1 │ │ │ ├── DeleteWatchlistV1Response.java │ │ │ └── Status.java │ │ ├── getWatchlistByWatchlistIdV1 │ │ │ ├── GetWatchlistByWatchlistIdV1Response.java │ │ │ ├── InstrumentType.java │ │ │ ├── MarketStatus.java │ │ │ └── MarketsItem.java │ │ ├── getWatchlistsV1 │ │ │ ├── GetWatchlistsV1Response.java │ │ │ └── WatchlistsItem.java │ │ └── updateWatchlistMarketV1 │ │ │ ├── Status.java │ │ │ ├── UpdateWatchlistMarketV1Request.java │ │ │ └── UpdateWatchlistMarketV1Response.java │ │ └── workingorders │ │ ├── getWorkingOrdersV1 │ │ ├── Direction.java │ │ ├── GetWorkingOrdersV1Response.java │ │ ├── InstrumentType.java │ │ ├── MarketData.java │ │ ├── MarketStatus.java │ │ ├── RequestType.java │ │ ├── WorkingOrderData.java │ │ └── WorkingOrdersItem.java │ │ ├── getWorkingOrdersV2 │ │ ├── Direction.java │ │ ├── GetWorkingOrdersV2Response.java │ │ ├── InstrumentType.java │ │ ├── MarketData.java │ │ ├── MarketStatus.java │ │ ├── OrderType.java │ │ ├── TimeInForce.java │ │ ├── WorkingOrderData.java │ │ └── WorkingOrdersItem.java │ │ └── otc │ │ ├── createOTCWorkingOrderV1 │ │ ├── CreateOTCWorkingOrderV1Request.java │ │ ├── CreateOTCWorkingOrderV1Response.java │ │ ├── Direction.java │ │ ├── TimeInForce.java │ │ └── Type.java │ │ ├── createOTCWorkingOrderV2 │ │ ├── CreateOTCWorkingOrderV2Request.java │ │ ├── CreateOTCWorkingOrderV2Response.java │ │ ├── Direction.java │ │ ├── TimeInForce.java │ │ └── Type.java │ │ ├── deleteOTCWorkingOrderV1 │ │ ├── DeleteOTCWorkingOrderV1Request.java │ │ └── DeleteOTCWorkingOrderV1Response.java │ │ ├── deleteOTCWorkingOrderV2 │ │ └── DeleteOTCWorkingOrderV2Response.java │ │ ├── updateOTCWorkingOrderV1 │ │ ├── TimeInForce.java │ │ ├── Type.java │ │ ├── UpdateOTCWorkingOrderV1Request.java │ │ └── UpdateOTCWorkingOrderV1Response.java │ │ └── updateOTCWorkingOrderV2 │ │ ├── TimeInForce.java │ │ ├── Type.java │ │ ├── UpdateOTCWorkingOrderV2Request.java │ │ └── UpdateOTCWorkingOrderV2Response.java │ └── streaming │ ├── ConnectionListenerAdapter.java │ └── HandyTableListenerAdapter.java ├── ig-webapi-java-sample-console-ui ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── iggroup │ │ └── webapi │ │ └── samples │ │ ├── Application.java │ │ ├── BeanConfiguration.java │ │ └── PropertiesUtil.java │ └── resources │ ├── application-spring-context.xml │ ├── environment.properties │ └── logback.xml ├── ig-webapi-java-sample-console ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── iggroup │ │ └── webapi │ │ └── samples │ │ ├── Application.java │ │ ├── BeanConfiguration.java │ │ └── PropertiesUtil.java │ └── resources │ ├── application-spring-context.xml │ ├── environment.properties │ └── logback.xml └── pom.xml /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | /.idea 3 | target 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | jdk: 3 | - oraclejdk11 4 | before_install: 5 | - mvn clean 6 | 7 | -------------------------------------------------------------------------------- /ig-webapi-java-client/lib/ls-client.6.0.2.20160510.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IG-Group/ig-webapi-java-sample/c9d8bcb6b3dede7657f5689c5f4d76a910494eb5/ig-webapi-java-client/lib/ls-client.6.0.2.20160510.jar -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/AuthenticationResponseAndConversationContext.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest; 2 | 3 | 4 | import lombok.Builder; 5 | import lombok.Data; 6 | 7 | @Data 8 | @Builder 9 | public class AuthenticationResponseAndConversationContext { 10 | 11 | private ConversationContext conversationContext; 12 | private String accountId; 13 | private String lightstreamerEndpoint; 14 | } 15 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/Constants.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest; 2 | 3 | 4 | public interface Constants { 5 | 6 | public static final String APPLICATION_KEY = "X-IG-API-KEY"; 7 | public static final String CLIENT_SSO_TOKEN_NAME = "CST"; 8 | public static final String AUTHORIZATION_HEADER = "Authorization"; 9 | public static final String ACCOUNT_SSO_TOKEN_NAME = "X-SECURITY-TOKEN"; 10 | public static final String ACCOUNT_ID_HEADER = "IG-ACCOUNT-ID"; 11 | public static final String VERSION = "version"; 12 | public static final String _METHOD = "_method"; 13 | } 14 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/ConversationContext.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest; 2 | 3 | public abstract class ConversationContext { 4 | 5 | private String apiKey; 6 | 7 | public ConversationContext(String apiKey) { 8 | this.apiKey = apiKey; 9 | } 10 | 11 | public String getApiKey() { 12 | return apiKey; 13 | } 14 | 15 | public void setApiKey(String apiKey) { 16 | this.apiKey = apiKey; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/ConversationContextV2.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest; 2 | 3 | public class ConversationContextV2 extends ConversationContext { 4 | 5 | private String clientSecurityToken; 6 | private String accountSecurityToken; 7 | 8 | public ConversationContextV2(String clientSecurityToken, 9 | String accountSecurityToken, String apiKey) { 10 | super(apiKey); 11 | this.clientSecurityToken = clientSecurityToken; 12 | this.accountSecurityToken = accountSecurityToken; 13 | } 14 | 15 | public String getClientSecurityToken() { 16 | return clientSecurityToken; 17 | } 18 | 19 | public String getAccountSecurityToken() { 20 | return accountSecurityToken; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/HttpDeleteWithBody.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest; 2 | 3 | 4 | import org.apache.http.client.methods.HttpEntityEnclosingRequestBase; 5 | 6 | import java.net.URI; 7 | 8 | public class HttpDeleteWithBody extends HttpEntityEnclosingRequestBase { 9 | 10 | public HttpDeleteWithBody(String uri) { 11 | super(); 12 | setURI(URI.create(uri)); 13 | } 14 | 15 | public HttpDeleteWithBody(URI uri) { 16 | super(); 17 | setURI(uri); 18 | } 19 | 20 | public HttpDeleteWithBody() { 21 | super(); 22 | } 23 | 24 | @Override 25 | public String getMethod() { 26 | return "POST"; // POST with _method=DELETE header 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/PublicApiServiceException.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest; 2 | 3 | public class PublicApiServiceException { 4 | 5 | private String errorCode; 6 | 7 | public String getErrorCode() { 8 | return errorCode; 9 | } 10 | 11 | public void setErrorCode(String errorCode) { 12 | this.errorCode = errorCode; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/application/disable/updateApplicationV1/Status.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.application.disable.updateApplicationV1; 2 | /* 3 | Application status 4 | */ 5 | public enum Status { 6 | 7 | /* 8 | Disabled 9 | */ 10 | DISABLED, 11 | /* 12 | Enabled 13 | */ 14 | ENABLED, 15 | /* 16 | Revoked 17 | */ 18 | REVOKED 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/application/getApplicationsV1/Status.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.application.getApplicationsV1; 2 | /* 3 | Application status 4 | */ 5 | public enum Status { 6 | 7 | /* 8 | Disabled 9 | */ 10 | DISABLED, 11 | /* 12 | Enabled 13 | */ 14 | ENABLED, 15 | /* 16 | Revoked 17 | */ 18 | REVOKED 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/application/updateApplicationV1/Status.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.application.updateApplicationV1; 2 | /* 3 | Application status 4 | */ 5 | public enum Status { 6 | 7 | /* 8 | Disabled 9 | */ 10 | DISABLED, 11 | /* 12 | Enabled 13 | */ 14 | ENABLED, 15 | /* 16 | Revoked 17 | */ 18 | REVOKED 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/clientsentiment/getRelatedClientSentimentV1/GetRelatedClientSentimentV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.clientsentiment.getRelatedClientSentimentV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List of client sentiments 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetRelatedClientSentimentV1Response { 10 | 11 | /* 12 | Client sentiment list 13 | */ 14 | private java.util.List clientSentiments; 15 | 16 | public java.util.List getClientSentiments() { return clientSentiments; } 17 | public void setClientSentiments(java.util.List clientSentiments) { this.clientSentiments=clientSentiments; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/getAccountsV1/AccountType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.getAccountsV1; 2 | /* 3 | Account type 4 | */ 5 | public enum AccountType { 6 | 7 | /* 8 | CFD account 9 | */ 10 | CFD, 11 | /* 12 | Physical account 13 | */ 14 | PHYSICAL, 15 | /* 16 | Spread bet account 17 | */ 18 | SPREADBET 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/getAccountsV1/GetAccountsV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.getAccountsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetAccountsV1Response { 10 | 11 | /* 12 | List of client accounts 13 | */ 14 | private java.util.List accounts; 15 | 16 | public java.util.List getAccounts() { return accounts; } 17 | public void setAccounts(java.util.List accounts) { this.accounts=accounts; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/getAccountsV1/Status.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.getAccountsV1; 2 | /* 3 | Account status 4 | */ 5 | public enum Status { 6 | 7 | /* 8 | Disabled 9 | */ 10 | DISABLED, 11 | /* 12 | Enabled 13 | */ 14 | ENABLED, 15 | /* 16 | Suspended from dealing 17 | */ 18 | SUSPENDED_FROM_DEALING 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/getDealConfirmationV1/AffectedDealStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.getDealConfirmationV1; 2 | /* 3 | 4 | */ 5 | public enum AffectedDealStatus { 6 | 7 | /* 8 | Amended 9 | */ 10 | AMENDED, 11 | /* 12 | Deleted 13 | */ 14 | DELETED, 15 | /* 16 | Fully closed 17 | */ 18 | FULLY_CLOSED, 19 | /* 20 | Opened 21 | */ 22 | OPENED, 23 | /* 24 | Partially closed 25 | */ 26 | PARTIALLY_CLOSED 27 | } 28 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/getDealConfirmationV1/AffectedDealsItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.getDealConfirmationV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Affected deal 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class AffectedDealsItem { 10 | 11 | /* 12 | Deal identifier 13 | */ 14 | private String dealId; 15 | 16 | /* 17 | Deal status 18 | */ 19 | private AffectedDealStatus status; 20 | 21 | public String getDealId() { return dealId; } 22 | public void setDealId(String dealId) { this.dealId=dealId; } 23 | public AffectedDealStatus getStatus() { return status; } 24 | public void setStatus(AffectedDealStatus status) { this.status=status; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/getDealConfirmationV1/DealStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.getDealConfirmationV1; 2 | /* 3 | Deal status 4 | */ 5 | public enum DealStatus { 6 | 7 | /* 8 | Accepted 9 | */ 10 | ACCEPTED, 11 | /* 12 | Rejected 13 | */ 14 | REJECTED 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/getDealConfirmationV1/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.getDealConfirmationV1; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/getDealConfirmationV1/PositionStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.getDealConfirmationV1; 2 | /* 3 | Position status 4 | */ 5 | public enum PositionStatus { 6 | 7 | /* 8 | Amended 9 | */ 10 | AMENDED, 11 | /* 12 | Closed 13 | */ 14 | CLOSED, 15 | /* 16 | Deleted 17 | */ 18 | DELETED, 19 | /* 20 | Open 21 | */ 22 | OPEN, 23 | /* 24 | Partially Closed 25 | */ 26 | PARTIALLY_CLOSED 27 | } 28 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryByTimeRangeV1/GetActivityHistoryByTimeRangeV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryByTimeRangeV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetActivityHistoryByTimeRangeV1Response { 10 | 11 | /* 12 | List of activities 13 | */ 14 | private java.util.List activities; 15 | 16 | public java.util.List getActivities() { return activities; } 17 | public void setActivities(java.util.List activities) { this.activities=activities; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV1/GetActivityHistoryV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetActivityHistoryV1Response { 10 | 11 | /* 12 | List of activities 13 | */ 14 | private java.util.List activities; 15 | 16 | public java.util.List getActivities() { return activities; } 17 | public void setActivities(java.util.List activities) { this.activities=activities; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV2/GetActivityHistoryV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetActivityHistoryV2Response { 10 | 11 | /* 12 | List of activities 13 | */ 14 | private java.util.List activities; 15 | 16 | /* 17 | Metadata 18 | */ 19 | private Metadata metadata; 20 | 21 | public java.util.List getActivities() { return activities; } 22 | public void setActivities(java.util.List activities) { this.activities=activities; } 23 | public Metadata getMetadata() { return metadata; } 24 | public void setMetadata(Metadata metadata) { this.metadata=metadata; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV2/Metadata.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Paging metadata 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class Metadata { 10 | 11 | /* 12 | Size 13 | */ 14 | private int size; 15 | 16 | /* 17 | Page data 18 | */ 19 | private PageData pageData; 20 | 21 | public int getSize() { return size; } 22 | public void setSize(int size) { this.size=size; } 23 | public PageData getPageData() { return pageData; } 24 | public void setPageData(PageData pageData) { this.pageData=pageData; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV2/PageData.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Paging metadata 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class PageData { 11 | 12 | /* 13 | Page size 14 | */ 15 | private int pageSize; 16 | 17 | /* 18 | Page number 19 | */ 20 | private int pageNumber; 21 | 22 | /* 23 | Total number of pages 24 | */ 25 | private int totalPages; 26 | 27 | public int getPageSize() { return pageSize; } 28 | public void setPageSize(int pageSize) { this.pageSize=pageSize; } 29 | public int getPageNumber() { return pageNumber; } 30 | public void setPageNumber(int pageNumber) { this.pageNumber=pageNumber; } 31 | public int getTotalPages() { return totalPages; } 32 | public void setTotalPages(int totalPages) { this.totalPages=totalPages; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV3/ActionsItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Deal affected by an activity 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class ActionsItem { 10 | 11 | /* 12 | Action type 13 | */ 14 | private ActionType actionType; 15 | 16 | /* 17 | Affected deal id 18 | */ 19 | private String affectedDealId; 20 | 21 | public ActionType getActionType() { return actionType; } 22 | public void setActionType(ActionType actionType) { this.actionType=actionType; } 23 | public String getAffectedDealId() { return affectedDealId; } 24 | public void setAffectedDealId(String affectedDealId) { this.affectedDealId=affectedDealId; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV3/Channel.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV3; 2 | /* 3 | The channel which triggered the activity. 4 | */ 5 | public enum Channel { 6 | 7 | /* 8 | Dealer 9 | */ 10 | DEALER, 11 | /* 12 | Mobile 13 | */ 14 | MOBILE, 15 | /* 16 | Public FIX API 17 | */ 18 | PUBLIC_FIX_API, 19 | /* 20 | Public Web API 21 | */ 22 | PUBLIC_WEB_API, 23 | /* 24 | System 25 | */ 26 | SYSTEM, 27 | /* 28 | Web 29 | */ 30 | WEB 31 | } 32 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV3/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV3; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV3/GetActivityHistoryV3Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetActivityHistoryV3Response { 10 | 11 | /* 12 | List of activities 13 | */ 14 | private java.util.List activities; 15 | 16 | /* 17 | Metadata 18 | */ 19 | private Metadata metadata; 20 | 21 | public java.util.List getActivities() { return activities; } 22 | public void setActivities(java.util.List activities) { this.activities=activities; } 23 | public Metadata getMetadata() { return metadata; } 24 | public void setMetadata(Metadata metadata) { this.metadata=metadata; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV3/Metadata.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Paging metadata 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class Metadata { 10 | 11 | /* 12 | Paging data 13 | */ 14 | private Paging paging; 15 | 16 | public Paging getPaging() { return paging; } 17 | public void setPaging(Paging paging) { this.paging=paging; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV3/Paging.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV3; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Paging metadata 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class Paging { 11 | 12 | /* 13 | Page size 14 | */ 15 | private int size; 16 | 17 | /* 18 | Next page 19 | */ 20 | private String next; 21 | 22 | public int getSize() { return size; } 23 | public void setSize(int size) { this.size=size; } 24 | public String getNext() { return next; } 25 | public void setNext(String next) { this.next=next; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV3/Status.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV3; 2 | /* 3 | Action status 4 | */ 5 | public enum Status { 6 | 7 | /* 8 | Accepted 9 | */ 10 | ACCEPTED, 11 | /* 12 | Rejected 13 | */ 14 | REJECTED, 15 | /* 16 | Unknown 17 | */ 18 | UNKNOWN 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getActivityHistoryV3/Type.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getActivityHistoryV3; 2 | /* 3 | Activity type 4 | */ 5 | public enum Type { 6 | 7 | /* 8 | Amend stop or limit activity 9 | */ 10 | EDIT_STOP_AND_LIMIT, 11 | /* 12 | Position activity 13 | */ 14 | POSITION, 15 | /* 16 | System generated activity 17 | */ 18 | SYSTEM, 19 | /* 20 | Working order activity 21 | */ 22 | WORKING_ORDER 23 | } 24 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getTransactionHistoryByTimeRangeV1/GetTransactionHistoryByTimeRangeV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getTransactionHistoryByTimeRangeV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List of transactions 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetTransactionHistoryByTimeRangeV1Response { 10 | 11 | /* 12 | List of transactions 13 | */ 14 | private java.util.List transactions; 15 | 16 | public java.util.List getTransactions() { return transactions; } 17 | public void setTransactions(java.util.List transactions) { this.transactions=transactions; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getTransactionHistoryV1/GetTransactionHistoryV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getTransactionHistoryV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List of transactions 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetTransactionHistoryV1Response { 10 | 11 | /* 12 | List of transactions 13 | */ 14 | private java.util.List transactions; 15 | 16 | public java.util.List getTransactions() { return transactions; } 17 | public void setTransactions(java.util.List transactions) { this.transactions=transactions; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getTransactionHistoryV2/GetTransactionHistoryV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getTransactionHistoryV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List of transactions 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetTransactionHistoryV2Response { 10 | 11 | /* 12 | List of transactions 13 | */ 14 | private java.util.List transactions; 15 | 16 | /* 17 | Metadata 18 | */ 19 | private Metadata metadata; 20 | 21 | public java.util.List getTransactions() { return transactions; } 22 | public void setTransactions(java.util.List transactions) { this.transactions=transactions; } 23 | public Metadata getMetadata() { return metadata; } 24 | public void setMetadata(Metadata metadata) { this.metadata=metadata; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getTransactionHistoryV2/Metadata.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getTransactionHistoryV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Paging metadata 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class Metadata { 10 | 11 | /* 12 | Size 13 | */ 14 | private int size; 15 | 16 | /* 17 | Page data 18 | */ 19 | private PageData pageData; 20 | 21 | public int getSize() { return size; } 22 | public void setSize(int size) { this.size=size; } 23 | public PageData getPageData() { return pageData; } 24 | public void setPageData(PageData pageData) { this.pageData=pageData; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/history/getTransactionHistoryV2/PageData.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.history.getTransactionHistoryV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Paging metadata 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class PageData { 11 | 12 | /* 13 | Page size 14 | */ 15 | private int pageSize; 16 | 17 | /* 18 | Page number 19 | */ 20 | private int pageNumber; 21 | 22 | /* 23 | Total number of pages 24 | */ 25 | private int totalPages; 26 | 27 | public int getPageSize() { return pageSize; } 28 | public void setPageSize(int pageSize) { this.pageSize=pageSize; } 29 | public int getPageNumber() { return pageNumber; } 30 | public void setPageNumber(int pageNumber) { this.pageNumber=pageNumber; } 31 | public int getTotalPages() { return totalPages; } 32 | public void setTotalPages(int totalPages) { this.totalPages=totalPages; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsBySearchTermV1/GetMarketDetailsBySearchTermV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsBySearchTermV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Search markets response 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetMarketDetailsBySearchTermV1Response { 10 | 11 | /* 12 | List of markets 13 | */ 14 | private java.util.List markets; 15 | 16 | public java.util.List getMarkets() { return markets; } 17 | public void setMarkets(java.util.List markets) { this.markets=markets; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsBySearchTermV1/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsBySearchTermV1; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/ExpiryDetails.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Market expiry details 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class ExpiryDetails { 11 | 12 | /* 13 | Last dealing date 14 | */ 15 | private String lastDealingDate; 16 | 17 | /* 18 | Settlement information 19 | */ 20 | private String settlementInfo; 21 | 22 | public String getLastDealingDate() { return lastDealingDate; } 23 | public void setLastDealingDate(String lastDealingDate) { this.lastDealingDate=lastDealingDate; } 24 | public String getSettlementInfo() { return settlementInfo; } 25 | public void setSettlementInfo(String settlementInfo) { this.settlementInfo=settlementInfo; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/GetMarketDetailsListV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetMarketDetailsListV1Response { 10 | 11 | /* 12 | 13 | */ 14 | private java.util.List marketDetails; 15 | 16 | public java.util.List getMarketDetails() { return marketDetails; } 17 | public void setMarketDetails(java.util.List marketDetails) { this.marketDetails=marketDetails; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/InstrumentUnitType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | /* 3 | Unit used to qualify the size of a trade 4 | */ 5 | public enum InstrumentUnitType { 6 | 7 | /* 8 | 9 | */ 10 | AMOUNT, 11 | /* 12 | 13 | */ 14 | CONTRACTS, 15 | /* 16 | 17 | */ 18 | SHARES 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/MarginFactorUnit.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | /* 3 | describes the dimension for a dealing rule value 4 | */ 5 | public enum MarginFactorUnit { 6 | 7 | /* 8 | 9 | */ 10 | PERCENTAGE, 11 | /* 12 | 13 | */ 14 | POINTS 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/MarketDetailsItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MarketDetailsItem { 10 | 11 | /* 12 | Instrument data 13 | */ 14 | private Instrument instrument; 15 | 16 | /* 17 | Dealing rule data 18 | */ 19 | private DealingRules dealingRules; 20 | 21 | /* 22 | Market snapshot data 23 | */ 24 | private Snapshot snapshot; 25 | 26 | public Instrument getInstrument() { return instrument; } 27 | public void setInstrument(Instrument instrument) { this.instrument=instrument; } 28 | public DealingRules getDealingRules() { return dealingRules; } 29 | public void setDealingRules(DealingRules dealingRules) { this.dealingRules=dealingRules; } 30 | public Snapshot getSnapshot() { return snapshot; } 31 | public void setSnapshot(Snapshot snapshot) { this.snapshot=snapshot; } 32 | } 33 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/MarketOrderPreference.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | /* 3 | Client's market order trading preference 4 | */ 5 | public enum MarketOrderPreference { 6 | 7 | /* 8 | Market orders are allowed for the account type and instrument, and the user has enabled market orders in their preferences but decided the default state is off. 9 | */ 10 | AVAILABLE_DEFAULT_OFF, 11 | /* 12 | Market orders are allowed for the account type and instrument, and the user has enabled market orders in their preferences and has decided the default state is on. 13 | */ 14 | AVAILABLE_DEFAULT_ON, 15 | /* 16 | Market orders are not allowed for the current site and/or instrument 17 | */ 18 | NOT_AVAILABLE 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/MarketTimesItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Time range 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class MarketTimesItem { 11 | 12 | /* 13 | Open time 14 | */ 15 | private String openTime; 16 | 17 | /* 18 | Close time 19 | */ 20 | private String closeTime; 21 | 22 | public String getOpenTime() { return openTime; } 23 | public void setOpenTime(String openTime) { this.openTime=openTime; } 24 | public String getCloseTime() { return closeTime; } 25 | public void setCloseTime(String closeTime) { this.closeTime=closeTime; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/MaxStopOrLimitDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MaxStopOrLimitDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/MinControlledRiskStopDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinControlledRiskStopDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/MinDealSize.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinDealSize { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/MinNormalStopOrLimitDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinNormalStopOrLimitDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/MinStepDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinStepDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/OpeningHours.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Market open and close times 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class OpeningHours { 10 | 11 | /* 12 | List of market open and close times 13 | */ 14 | private java.util.List marketTimes; 15 | 16 | public java.util.List getMarketTimes() { return marketTimes; } 17 | public void setMarketTimes(java.util.List marketTimes) { this.marketTimes=marketTimes; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/RolloverDetails.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Market rollover details 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class RolloverDetails { 11 | 12 | /* 13 | Last rollover date 14 | */ 15 | private String lastRolloverTime; 16 | 17 | /* 18 | Rollover info 19 | */ 20 | private String rolloverInfo; 21 | 22 | public String getLastRolloverTime() { return lastRolloverTime; } 23 | public void setLastRolloverTime(String lastRolloverTime) { this.lastRolloverTime=lastRolloverTime; } 24 | public String getRolloverInfo() { return rolloverInfo; } 25 | public void setRolloverInfo(String rolloverInfo) { this.rolloverInfo=rolloverInfo; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/SlippageFactor.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Slippage factor details for a given market 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class SlippageFactor { 11 | 12 | /* 13 | Unit 14 | */ 15 | private String unit; 16 | 17 | /* 18 | Value 19 | */ 20 | private Double value; 21 | 22 | public String getUnit() { return unit; } 23 | public void setUnit(String unit) { this.unit=unit; } 24 | public Double getValue() { return value; } 25 | public void setValue(Double value) { this.value=value; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/TrailingStopsPreference.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | /* 3 | Trailing stops trading preference for the specified market 4 | */ 5 | public enum TrailingStopsPreference { 6 | 7 | /* 8 | Trailing stops are allowed for the current market 9 | */ 10 | AVAILABLE, 11 | /* 12 | Trailing stops are not allowed for the current market 13 | */ 14 | NOT_AVAILABLE 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/Type.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | /* 3 | Instrument type 4 | */ 5 | public enum Type { 6 | 7 | /* 8 | Binaries 9 | */ 10 | BINARY, 11 | /* 12 | Capped bungees 13 | */ 14 | BUNGEE_CAPPED, 15 | /* 16 | Commodity bungees 17 | */ 18 | BUNGEE_COMMODITIES, 19 | /* 20 | Currency bungees 21 | */ 22 | BUNGEE_CURRENCIES, 23 | /* 24 | Index bungees 25 | */ 26 | BUNGEE_INDICES, 27 | /* 28 | Commodities 29 | */ 30 | COMMODITIES, 31 | /* 32 | Currencies 33 | */ 34 | CURRENCIES, 35 | /* 36 | Indices 37 | */ 38 | INDICES, 39 | /* 40 | Commodity options 41 | */ 42 | OPT_COMMODITIES, 43 | /* 44 | Currency options 45 | */ 46 | OPT_CURRENCIES, 47 | /* 48 | Index options 49 | */ 50 | OPT_INDICES, 51 | /* 52 | FX options 53 | */ 54 | OPT_RATES, 55 | /* 56 | Share options 57 | */ 58 | OPT_SHARES, 59 | /* 60 | Rates 61 | */ 62 | RATES, 63 | /* 64 | Sectors 65 | */ 66 | SECTORS, 67 | /* 68 | Shares 69 | */ 70 | SHARES, 71 | /* 72 | Sprint Market 73 | */ 74 | SPRINT_MARKET, 75 | /* 76 | Test market 77 | */ 78 | TEST_MARKET, 79 | /* 80 | Unknown 81 | */ 82 | UNKNOWN 83 | } 84 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV1/Unit.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV1; 2 | /* 3 | describes the dimension for a dealing rule value 4 | */ 5 | public enum Unit { 6 | 7 | /* 8 | 9 | */ 10 | PERCENTAGE, 11 | /* 12 | 13 | */ 14 | POINTS 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/ExpiryDetails.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Market expiry details 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class ExpiryDetails { 11 | 12 | /* 13 | Last dealing date 14 | */ 15 | private String lastDealingDate; 16 | 17 | /* 18 | Settlement information 19 | */ 20 | private String settlementInfo; 21 | 22 | public String getLastDealingDate() { return lastDealingDate; } 23 | public void setLastDealingDate(String lastDealingDate) { this.lastDealingDate=lastDealingDate; } 24 | public String getSettlementInfo() { return settlementInfo; } 25 | public void setSettlementInfo(String settlementInfo) { this.settlementInfo=settlementInfo; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/GetMarketDetailsListV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetMarketDetailsListV2Response { 10 | 11 | /* 12 | 13 | */ 14 | private java.util.List marketDetails; 15 | 16 | public java.util.List getMarketDetails() { return marketDetails; } 17 | public void setMarketDetails(java.util.List marketDetails) { this.marketDetails=marketDetails; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/InstrumentUnitType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | /* 3 | Unit used to qualify the size of a trade 4 | */ 5 | public enum InstrumentUnitType { 6 | 7 | /* 8 | 9 | */ 10 | AMOUNT, 11 | /* 12 | 13 | */ 14 | CONTRACTS, 15 | /* 16 | 17 | */ 18 | SHARES 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/MarginFactorUnit.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | /* 3 | describes the dimension for a dealing rule value 4 | */ 5 | public enum MarginFactorUnit { 6 | 7 | /* 8 | 9 | */ 10 | PERCENTAGE, 11 | /* 12 | 13 | */ 14 | POINTS 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/MarketDetailsItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MarketDetailsItem { 10 | 11 | /* 12 | Instrument data 13 | */ 14 | private Instrument instrument; 15 | 16 | /* 17 | Dealing rule data 18 | */ 19 | private DealingRules dealingRules; 20 | 21 | /* 22 | Market snapshot data 23 | */ 24 | private Snapshot snapshot; 25 | 26 | public Instrument getInstrument() { return instrument; } 27 | public void setInstrument(Instrument instrument) { this.instrument=instrument; } 28 | public DealingRules getDealingRules() { return dealingRules; } 29 | public void setDealingRules(DealingRules dealingRules) { this.dealingRules=dealingRules; } 30 | public Snapshot getSnapshot() { return snapshot; } 31 | public void setSnapshot(Snapshot snapshot) { this.snapshot=snapshot; } 32 | } 33 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/MarketOrderPreference.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | /* 3 | Client's market order trading preference 4 | */ 5 | public enum MarketOrderPreference { 6 | 7 | /* 8 | Market orders are allowed for the account type and instrument, and the user has enabled market orders in their preferences but decided the default state is off. 9 | */ 10 | AVAILABLE_DEFAULT_OFF, 11 | /* 12 | Market orders are allowed for the account type and instrument, and the user has enabled market orders in their preferences and has decided the default state is on. 13 | */ 14 | AVAILABLE_DEFAULT_ON, 15 | /* 16 | Market orders are not allowed for the current site and/or instrument 17 | */ 18 | NOT_AVAILABLE 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/MarketTimesItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Time range 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class MarketTimesItem { 11 | 12 | /* 13 | Open time 14 | */ 15 | private String openTime; 16 | 17 | /* 18 | Close time 19 | */ 20 | private String closeTime; 21 | 22 | public String getOpenTime() { return openTime; } 23 | public void setOpenTime(String openTime) { this.openTime=openTime; } 24 | public String getCloseTime() { return closeTime; } 25 | public void setCloseTime(String closeTime) { this.closeTime=closeTime; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/MaxStopOrLimitDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MaxStopOrLimitDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/MinControlledRiskStopDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinControlledRiskStopDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/MinDealSize.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinDealSize { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/MinNormalStopOrLimitDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinNormalStopOrLimitDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/MinStepDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinStepDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/OpeningHours.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Market open and close times 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class OpeningHours { 10 | 11 | /* 12 | List of market open and close times 13 | */ 14 | private java.util.List marketTimes; 15 | 16 | public java.util.List getMarketTimes() { return marketTimes; } 17 | public void setMarketTimes(java.util.List marketTimes) { this.marketTimes=marketTimes; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/RolloverDetails.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Market rollover details 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class RolloverDetails { 11 | 12 | /* 13 | Last rollover date 14 | */ 15 | private String lastRolloverTime; 16 | 17 | /* 18 | Rollover info 19 | */ 20 | private String rolloverInfo; 21 | 22 | public String getLastRolloverTime() { return lastRolloverTime; } 23 | public void setLastRolloverTime(String lastRolloverTime) { this.lastRolloverTime=lastRolloverTime; } 24 | public String getRolloverInfo() { return rolloverInfo; } 25 | public void setRolloverInfo(String rolloverInfo) { this.rolloverInfo=rolloverInfo; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/SlippageFactor.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Slippage factor details for a given market 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class SlippageFactor { 11 | 12 | /* 13 | Unit 14 | */ 15 | private String unit; 16 | 17 | /* 18 | Value 19 | */ 20 | private Double value; 21 | 22 | public String getUnit() { return unit; } 23 | public void setUnit(String unit) { this.unit=unit; } 24 | public Double getValue() { return value; } 25 | public void setValue(Double value) { this.value=value; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/TrailingStopsPreference.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | /* 3 | Trailing stops trading preference for the specified market 4 | */ 5 | public enum TrailingStopsPreference { 6 | 7 | /* 8 | Trailing stops are allowed for the current market 9 | */ 10 | AVAILABLE, 11 | /* 12 | Trailing stops are not allowed for the current market 13 | */ 14 | NOT_AVAILABLE 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/Type.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | /* 3 | Instrument type 4 | */ 5 | public enum Type { 6 | 7 | /* 8 | Binaries 9 | */ 10 | BINARY, 11 | /* 12 | Capped bungees 13 | */ 14 | BUNGEE_CAPPED, 15 | /* 16 | Commodity bungees 17 | */ 18 | BUNGEE_COMMODITIES, 19 | /* 20 | Currency bungees 21 | */ 22 | BUNGEE_CURRENCIES, 23 | /* 24 | Index bungees 25 | */ 26 | BUNGEE_INDICES, 27 | /* 28 | Commodities 29 | */ 30 | COMMODITIES, 31 | /* 32 | Currencies 33 | */ 34 | CURRENCIES, 35 | /* 36 | Indices 37 | */ 38 | INDICES, 39 | /* 40 | Commodity options 41 | */ 42 | OPT_COMMODITIES, 43 | /* 44 | Currency options 45 | */ 46 | OPT_CURRENCIES, 47 | /* 48 | Index options 49 | */ 50 | OPT_INDICES, 51 | /* 52 | FX options 53 | */ 54 | OPT_RATES, 55 | /* 56 | Share options 57 | */ 58 | OPT_SHARES, 59 | /* 60 | Rates 61 | */ 62 | RATES, 63 | /* 64 | Sectors 65 | */ 66 | SECTORS, 67 | /* 68 | Shares 69 | */ 70 | SHARES, 71 | /* 72 | Sprint Market 73 | */ 74 | SPRINT_MARKET, 75 | /* 76 | Test market 77 | */ 78 | TEST_MARKET, 79 | /* 80 | Unknown 81 | */ 82 | UNKNOWN 83 | } 84 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsListV2/Unit.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsListV2; 2 | /* 3 | describes the dimension for a dealing rule value 4 | */ 5 | public enum Unit { 6 | 7 | /* 8 | 9 | */ 10 | PERCENTAGE, 11 | /* 12 | 13 | */ 14 | POINTS 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/DealingRuleUnit.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | /* 3 | describes the dimension for a dealing rule value 4 | */ 5 | public enum DealingRuleUnit { 6 | 7 | /* 8 | 9 | */ 10 | PERCENTAGE, 11 | /* 12 | 13 | */ 14 | POINTS 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/ExpiryDetails.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class ExpiryDetails { 11 | 12 | /* 13 | Last dealing date (GMT) 14 | */ 15 | private String lastDealingDate; 16 | 17 | /* 18 | Settlement information 19 | */ 20 | private String settlementInfo; 21 | 22 | public String getLastDealingDate() { return lastDealingDate; } 23 | public void setLastDealingDate(String lastDealingDate) { this.lastDealingDate=lastDealingDate; } 24 | public String getSettlementInfo() { return settlementInfo; } 25 | public void setSettlementInfo(String settlementInfo) { this.settlementInfo=settlementInfo; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/GetMarketDetailsV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetMarketDetailsV1Response { 10 | 11 | /* 12 | Instrument data 13 | */ 14 | private Instrument instrument; 15 | 16 | /* 17 | Dealing rule data 18 | */ 19 | private DealingRules dealingRules; 20 | 21 | /* 22 | Market snapshot data 23 | */ 24 | private Snapshot snapshot; 25 | 26 | public Instrument getInstrument() { return instrument; } 27 | public void setInstrument(Instrument instrument) { this.instrument=instrument; } 28 | public DealingRules getDealingRules() { return dealingRules; } 29 | public void setDealingRules(DealingRules dealingRules) { this.dealingRules=dealingRules; } 30 | public Snapshot getSnapshot() { return snapshot; } 31 | public void setSnapshot(Snapshot snapshot) { this.snapshot=snapshot; } 32 | } 33 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/InstrumentUnitType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | /* 3 | Unit used to qualify the size of a trade 4 | */ 5 | public enum InstrumentUnitType { 6 | 7 | /* 8 | 9 | */ 10 | AMOUNT, 11 | /* 12 | 13 | */ 14 | CONTRACTS, 15 | /* 16 | 17 | */ 18 | SHARES 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/MarginDepositBandsItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Deposit band 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class MarginDepositBandsItem { 11 | 12 | /* 13 | Band minimum 14 | */ 15 | private Integer min; 16 | 17 | /* 18 | Band maximum 19 | */ 20 | private Integer max; 21 | 22 | /* 23 | Margin Percentage 24 | */ 25 | private BigDecimal margin; 26 | 27 | public Integer getMin() { return min; } 28 | public void setMin(Integer min) { this.min=min; } 29 | public Integer getMax() { return max; } 30 | public void setMax(Integer max) { this.max=max; } 31 | public BigDecimal getMargin() { return margin; } 32 | public void setMargin(BigDecimal margin) { this.margin=margin; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/MarketOrderPreference.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | /* 3 | Client's market order trading preference 4 | */ 5 | public enum MarketOrderPreference { 6 | 7 | /* 8 | Market orders are allowed for the account type and instrument, and the user has enabled market orders in their preferences but decided the default state is off. 9 | */ 10 | AVAILABLE_DEFAULT_OFF, 11 | /* 12 | Market orders are allowed for the account type and instrument, and the user has enabled market orders in their preferences and has decided the default state is on. 13 | */ 14 | AVAILABLE_DEFAULT_ON, 15 | /* 16 | Market orders are not allowed for the current site and/or instrument 17 | */ 18 | NOT_AVAILABLE 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/MarketTimesItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Time range 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class MarketTimesItem { 11 | 12 | /* 13 | Open time 14 | */ 15 | private String openTime; 16 | 17 | /* 18 | Close time 19 | */ 20 | private String closeTime; 21 | 22 | public String getOpenTime() { return openTime; } 23 | public void setOpenTime(String openTime) { this.openTime=openTime; } 24 | public String getCloseTime() { return closeTime; } 25 | public void setCloseTime(String closeTime) { this.closeTime=closeTime; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/MaxStopOrLimitDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MaxStopOrLimitDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private DealingRuleUnit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public DealingRuleUnit getUnit() { return unit; } 22 | public void setUnit(DealingRuleUnit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/MinControlledRiskStopDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinControlledRiskStopDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private DealingRuleUnit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public DealingRuleUnit getUnit() { return unit; } 22 | public void setUnit(DealingRuleUnit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/MinDealSize.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinDealSize { 10 | 11 | /* 12 | Unit 13 | */ 14 | private DealingRuleUnit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public DealingRuleUnit getUnit() { return unit; } 22 | public void setUnit(DealingRuleUnit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/MinNormalStopOrLimitDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinNormalStopOrLimitDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private DealingRuleUnit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public DealingRuleUnit getUnit() { return unit; } 22 | public void setUnit(DealingRuleUnit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/MinStepDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinStepDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private DealingRuleUnit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public DealingRuleUnit getUnit() { return unit; } 22 | public void setUnit(DealingRuleUnit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/OpeningHours.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Market open and close times 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class OpeningHours { 10 | 11 | /* 12 | List of market open and close times (in the account timezone) 13 | */ 14 | private java.util.List marketTimes; 15 | 16 | public java.util.List getMarketTimes() { return marketTimes; } 17 | public void setMarketTimes(java.util.List marketTimes) { this.marketTimes=marketTimes; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/RolloverDetails.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Market rollover details 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class RolloverDetails { 11 | 12 | /* 13 | Last rollover date (GMT) 14 | */ 15 | private String lastRolloverTime; 16 | 17 | /* 18 | Rollover info 19 | */ 20 | private String rolloverInfo; 21 | 22 | public String getLastRolloverTime() { return lastRolloverTime; } 23 | public void setLastRolloverTime(String lastRolloverTime) { this.lastRolloverTime=lastRolloverTime; } 24 | public String getRolloverInfo() { return rolloverInfo; } 25 | public void setRolloverInfo(String rolloverInfo) { this.rolloverInfo=rolloverInfo; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/SlippageFactor.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Slippage factor details for a given market 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class SlippageFactor { 11 | 12 | /* 13 | Unit 14 | */ 15 | private String unit; 16 | 17 | /* 18 | Value 19 | */ 20 | private Double value; 21 | 22 | public String getUnit() { return unit; } 23 | public void setUnit(String unit) { this.unit=unit; } 24 | public Double getValue() { return value; } 25 | public void setValue(Double value) { this.value=value; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV1/Type.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV1; 2 | /* 3 | Instrument type 4 | */ 5 | public enum Type { 6 | 7 | /* 8 | Binaries 9 | */ 10 | BINARY, 11 | /* 12 | Capped bungees 13 | */ 14 | BUNGEE_CAPPED, 15 | /* 16 | Commodity bungees 17 | */ 18 | BUNGEE_COMMODITIES, 19 | /* 20 | Currency bungees 21 | */ 22 | BUNGEE_CURRENCIES, 23 | /* 24 | Index bungees 25 | */ 26 | BUNGEE_INDICES, 27 | /* 28 | Commodities 29 | */ 30 | COMMODITIES, 31 | /* 32 | Currencies 33 | */ 34 | CURRENCIES, 35 | /* 36 | Indices 37 | */ 38 | INDICES, 39 | /* 40 | Commodity options 41 | */ 42 | OPT_COMMODITIES, 43 | /* 44 | Currency options 45 | */ 46 | OPT_CURRENCIES, 47 | /* 48 | Index options 49 | */ 50 | OPT_INDICES, 51 | /* 52 | FX options 53 | */ 54 | OPT_RATES, 55 | /* 56 | Share options 57 | */ 58 | OPT_SHARES, 59 | /* 60 | Rates 61 | */ 62 | RATES, 63 | /* 64 | Sectors 65 | */ 66 | SECTORS, 67 | /* 68 | Shares 69 | */ 70 | SHARES, 71 | /* 72 | Sprint Market 73 | */ 74 | SPRINT_MARKET, 75 | /* 76 | Test market 77 | */ 78 | TEST_MARKET, 79 | /* 80 | Unknown 81 | */ 82 | UNKNOWN 83 | } 84 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/ExpiryDetails.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Market expiry details 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class ExpiryDetails { 11 | 12 | /* 13 | Last dealing date (GMT) 14 | */ 15 | private String lastDealingDate; 16 | 17 | /* 18 | Settlement information 19 | */ 20 | private String settlementInfo; 21 | 22 | public String getLastDealingDate() { return lastDealingDate; } 23 | public void setLastDealingDate(String lastDealingDate) { this.lastDealingDate=lastDealingDate; } 24 | public String getSettlementInfo() { return settlementInfo; } 25 | public void setSettlementInfo(String settlementInfo) { this.settlementInfo=settlementInfo; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/GetMarketDetailsV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetMarketDetailsV2Response { 10 | 11 | /* 12 | Instrument data 13 | */ 14 | private Instrument instrument; 15 | 16 | /* 17 | Dealing rule data 18 | */ 19 | private DealingRules dealingRules; 20 | 21 | /* 22 | Market snapshot data 23 | */ 24 | private Snapshot snapshot; 25 | 26 | public Instrument getInstrument() { return instrument; } 27 | public void setInstrument(Instrument instrument) { this.instrument=instrument; } 28 | public DealingRules getDealingRules() { return dealingRules; } 29 | public void setDealingRules(DealingRules dealingRules) { this.dealingRules=dealingRules; } 30 | public Snapshot getSnapshot() { return snapshot; } 31 | public void setSnapshot(Snapshot snapshot) { this.snapshot=snapshot; } 32 | } 33 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/InstrumentUnitType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | /* 3 | Unit used to qualify the size of a trade 4 | */ 5 | public enum InstrumentUnitType { 6 | 7 | /* 8 | 9 | */ 10 | AMOUNT, 11 | /* 12 | 13 | */ 14 | CONTRACTS, 15 | /* 16 | 17 | */ 18 | SHARES 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/MarginDepositBandsItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Deposit band 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class MarginDepositBandsItem { 11 | 12 | /* 13 | Band minimum 14 | */ 15 | private BigDecimal min; 16 | 17 | /* 18 | Band maximum 19 | */ 20 | private BigDecimal max; 21 | 22 | /* 23 | Margin Percentage 24 | */ 25 | private BigDecimal margin; 26 | 27 | /* 28 | the currency for this currency band factor calculation 29 | */ 30 | private String currency; 31 | 32 | public BigDecimal getMin() { return min; } 33 | public void setMin(BigDecimal min) { this.min=min; } 34 | public BigDecimal getMax() { return max; } 35 | public void setMax(BigDecimal max) { this.max=max; } 36 | public BigDecimal getMargin() { return margin; } 37 | public void setMargin(BigDecimal margin) { this.margin=margin; } 38 | public String getCurrency() { return currency; } 39 | public void setCurrency(String currency) { this.currency=currency; } 40 | } 41 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/MarginFactorUnit.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | /* 3 | describes the dimension for a dealing rule value 4 | */ 5 | public enum MarginFactorUnit { 6 | 7 | /* 8 | 9 | */ 10 | PERCENTAGE, 11 | /* 12 | 13 | */ 14 | POINTS 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/MarketOrderPreference.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | /* 3 | Client's market order trading preference 4 | */ 5 | public enum MarketOrderPreference { 6 | 7 | /* 8 | Market orders are allowed for the account type and instrument, and the user has enabled market orders in their preferences but decided the default state is off. 9 | */ 10 | AVAILABLE_DEFAULT_OFF, 11 | /* 12 | Market orders are allowed for the account type and instrument, and the user has enabled market orders in their preferences and has decided the default state is on. 13 | */ 14 | AVAILABLE_DEFAULT_ON, 15 | /* 16 | Market orders are not allowed for the current site and/or instrument 17 | */ 18 | NOT_AVAILABLE 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/MarketTimesItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Time range 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class MarketTimesItem { 11 | 12 | /* 13 | Open time 14 | */ 15 | private String openTime; 16 | 17 | /* 18 | Close time 19 | */ 20 | private String closeTime; 21 | 22 | public String getOpenTime() { return openTime; } 23 | public void setOpenTime(String openTime) { this.openTime=openTime; } 24 | public String getCloseTime() { return closeTime; } 25 | public void setCloseTime(String closeTime) { this.closeTime=closeTime; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/MaxStopOrLimitDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MaxStopOrLimitDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/MinControlledRiskStopDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinControlledRiskStopDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/MinDealSize.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinDealSize { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/MinNormalStopOrLimitDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinNormalStopOrLimitDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/MinStepDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinStepDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/OpeningHours.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Market open and close times 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class OpeningHours { 10 | 11 | /* 12 | List of market open and close times (in the account timezone) 13 | */ 14 | private java.util.List marketTimes; 15 | 16 | public java.util.List getMarketTimes() { return marketTimes; } 17 | public void setMarketTimes(java.util.List marketTimes) { this.marketTimes=marketTimes; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/RolloverDetails.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Market rollover details 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class RolloverDetails { 11 | 12 | /* 13 | Last rollover date (GMT) 14 | */ 15 | private String lastRolloverTime; 16 | 17 | /* 18 | Rollover info 19 | */ 20 | private String rolloverInfo; 21 | 22 | public String getLastRolloverTime() { return lastRolloverTime; } 23 | public void setLastRolloverTime(String lastRolloverTime) { this.lastRolloverTime=lastRolloverTime; } 24 | public String getRolloverInfo() { return rolloverInfo; } 25 | public void setRolloverInfo(String rolloverInfo) { this.rolloverInfo=rolloverInfo; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/SlippageFactor.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Slippage factor details for a given market 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class SlippageFactor { 11 | 12 | /* 13 | Unit 14 | */ 15 | private String unit; 16 | 17 | /* 18 | Value 19 | */ 20 | private Double value; 21 | 22 | public String getUnit() { return unit; } 23 | public void setUnit(String unit) { this.unit=unit; } 24 | public Double getValue() { return value; } 25 | public void setValue(Double value) { this.value=value; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/TrailingStopsPreference.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | /* 3 | Trailing stops trading preference for the specified market 4 | */ 5 | public enum TrailingStopsPreference { 6 | 7 | /* 8 | Trailing stops are allowed for the current market 9 | */ 10 | AVAILABLE, 11 | /* 12 | Trailing stops are not allowed for the current market 13 | */ 14 | NOT_AVAILABLE 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/Type.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | /* 3 | Instrument type 4 | */ 5 | public enum Type { 6 | 7 | /* 8 | Binaries 9 | */ 10 | BINARY, 11 | /* 12 | Capped bungees 13 | */ 14 | BUNGEE_CAPPED, 15 | /* 16 | Commodity bungees 17 | */ 18 | BUNGEE_COMMODITIES, 19 | /* 20 | Currency bungees 21 | */ 22 | BUNGEE_CURRENCIES, 23 | /* 24 | Index bungees 25 | */ 26 | BUNGEE_INDICES, 27 | /* 28 | Commodities 29 | */ 30 | COMMODITIES, 31 | /* 32 | Currencies 33 | */ 34 | CURRENCIES, 35 | /* 36 | Indices 37 | */ 38 | INDICES, 39 | /* 40 | Commodity options 41 | */ 42 | OPT_COMMODITIES, 43 | /* 44 | Currency options 45 | */ 46 | OPT_CURRENCIES, 47 | /* 48 | Index options 49 | */ 50 | OPT_INDICES, 51 | /* 52 | FX options 53 | */ 54 | OPT_RATES, 55 | /* 56 | Share options 57 | */ 58 | OPT_SHARES, 59 | /* 60 | Rates 61 | */ 62 | RATES, 63 | /* 64 | Sectors 65 | */ 66 | SECTORS, 67 | /* 68 | Shares 69 | */ 70 | SHARES, 71 | /* 72 | Sprint Market 73 | */ 74 | SPRINT_MARKET, 75 | /* 76 | Test market 77 | */ 78 | TEST_MARKET, 79 | /* 80 | Unknown 81 | */ 82 | UNKNOWN 83 | } 84 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV2/Unit.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV2; 2 | /* 3 | describes the dimension for a dealing rule value 4 | */ 5 | public enum Unit { 6 | 7 | /* 8 | 9 | */ 10 | PERCENTAGE, 11 | /* 12 | 13 | */ 14 | POINTS 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/ExpiryDetails.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Market expiry details 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class ExpiryDetails { 11 | 12 | /* 13 | Last dealing date 14 | */ 15 | private String lastDealingDate; 16 | 17 | /* 18 | Settlement information 19 | */ 20 | private String settlementInfo; 21 | 22 | public String getLastDealingDate() { return lastDealingDate; } 23 | public void setLastDealingDate(String lastDealingDate) { this.lastDealingDate=lastDealingDate; } 24 | public String getSettlementInfo() { return settlementInfo; } 25 | public void setSettlementInfo(String settlementInfo) { this.settlementInfo=settlementInfo; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/GetMarketDetailsV3Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetMarketDetailsV3Response { 10 | 11 | /* 12 | Instrument data 13 | */ 14 | private Instrument instrument; 15 | 16 | /* 17 | Dealing rule data 18 | */ 19 | private DealingRules dealingRules; 20 | 21 | /* 22 | Market snapshot data 23 | */ 24 | private Snapshot snapshot; 25 | 26 | public Instrument getInstrument() { return instrument; } 27 | public void setInstrument(Instrument instrument) { this.instrument=instrument; } 28 | public DealingRules getDealingRules() { return dealingRules; } 29 | public void setDealingRules(DealingRules dealingRules) { this.dealingRules=dealingRules; } 30 | public Snapshot getSnapshot() { return snapshot; } 31 | public void setSnapshot(Snapshot snapshot) { this.snapshot=snapshot; } 32 | } 33 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/InstrumentUnitType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | /* 3 | Unit used to qualify the size of a trade 4 | */ 5 | public enum InstrumentUnitType { 6 | 7 | /* 8 | 9 | */ 10 | AMOUNT, 11 | /* 12 | 13 | */ 14 | CONTRACTS, 15 | /* 16 | 17 | */ 18 | SHARES 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/MarginDepositBandsItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Deposit band 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class MarginDepositBandsItem { 11 | 12 | /* 13 | Band minimum 14 | */ 15 | private BigDecimal min; 16 | 17 | /* 18 | Band maximum 19 | */ 20 | private BigDecimal max; 21 | 22 | /* 23 | Margin Percentage 24 | */ 25 | private BigDecimal margin; 26 | 27 | /* 28 | the currency for this currency band factor calculation 29 | */ 30 | private String currency; 31 | 32 | public BigDecimal getMin() { return min; } 33 | public void setMin(BigDecimal min) { this.min=min; } 34 | public BigDecimal getMax() { return max; } 35 | public void setMax(BigDecimal max) { this.max=max; } 36 | public BigDecimal getMargin() { return margin; } 37 | public void setMargin(BigDecimal margin) { this.margin=margin; } 38 | public String getCurrency() { return currency; } 39 | public void setCurrency(String currency) { this.currency=currency; } 40 | } 41 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/MarginFactorUnit.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | /* 3 | describes the dimension for a dealing rule value 4 | */ 5 | public enum MarginFactorUnit { 6 | 7 | /* 8 | 9 | */ 10 | PERCENTAGE, 11 | /* 12 | 13 | */ 14 | POINTS 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/MarketOrderPreference.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | /* 3 | Client's market order trading preference 4 | */ 5 | public enum MarketOrderPreference { 6 | 7 | /* 8 | Market orders are allowed for the account type and instrument, and the user has enabled market orders in their preferences but decided the default state is off. 9 | */ 10 | AVAILABLE_DEFAULT_OFF, 11 | /* 12 | Market orders are allowed for the account type and instrument, and the user has enabled market orders in their preferences and has decided the default state is on. 13 | */ 14 | AVAILABLE_DEFAULT_ON, 15 | /* 16 | Market orders are not allowed for the current site and/or instrument 17 | */ 18 | NOT_AVAILABLE 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/MarketTimesItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Time range 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class MarketTimesItem { 11 | 12 | /* 13 | Open time 14 | */ 15 | private String openTime; 16 | 17 | /* 18 | Close time 19 | */ 20 | private String closeTime; 21 | 22 | public String getOpenTime() { return openTime; } 23 | public void setOpenTime(String openTime) { this.openTime=openTime; } 24 | public String getCloseTime() { return closeTime; } 25 | public void setCloseTime(String closeTime) { this.closeTime=closeTime; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/MaxStopOrLimitDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MaxStopOrLimitDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/MinControlledRiskStopDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinControlledRiskStopDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/MinDealSize.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinDealSize { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/MinNormalStopOrLimitDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinNormalStopOrLimitDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/MinStepDistance.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Dealing rule 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class MinStepDistance { 10 | 11 | /* 12 | Unit 13 | */ 14 | private Unit unit; 15 | 16 | /* 17 | Value 18 | */ 19 | private Double value; 20 | 21 | public Unit getUnit() { return unit; } 22 | public void setUnit(Unit unit) { this.unit=unit; } 23 | public Double getValue() { return value; } 24 | public void setValue(Double value) { this.value=value; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/OpeningHours.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Market open and close times 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class OpeningHours { 10 | 11 | /* 12 | List of market open and close times 13 | */ 14 | private java.util.List marketTimes; 15 | 16 | public java.util.List getMarketTimes() { return marketTimes; } 17 | public void setMarketTimes(java.util.List marketTimes) { this.marketTimes=marketTimes; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/RolloverDetails.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Market rollover details 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class RolloverDetails { 11 | 12 | /* 13 | Last rollover date 14 | */ 15 | private String lastRolloverTime; 16 | 17 | /* 18 | Rollover info 19 | */ 20 | private String rolloverInfo; 21 | 22 | public String getLastRolloverTime() { return lastRolloverTime; } 23 | public void setLastRolloverTime(String lastRolloverTime) { this.lastRolloverTime=lastRolloverTime; } 24 | public String getRolloverInfo() { return rolloverInfo; } 25 | public void setRolloverInfo(String rolloverInfo) { this.rolloverInfo=rolloverInfo; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/SlippageFactor.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Slippage factor details for a given market 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class SlippageFactor { 11 | 12 | /* 13 | Unit 14 | */ 15 | private String unit; 16 | 17 | /* 18 | Value 19 | */ 20 | private Double value; 21 | 22 | public String getUnit() { return unit; } 23 | public void setUnit(String unit) { this.unit=unit; } 24 | public Double getValue() { return value; } 25 | public void setValue(Double value) { this.value=value; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/TrailingStopsPreference.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | /* 3 | Trailing stops trading preference for the specified market 4 | */ 5 | public enum TrailingStopsPreference { 6 | 7 | /* 8 | Trailing stops are allowed for the current market 9 | */ 10 | AVAILABLE, 11 | /* 12 | Trailing stops are not allowed for the current market 13 | */ 14 | NOT_AVAILABLE 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/Type.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | /* 3 | Instrument type 4 | */ 5 | public enum Type { 6 | 7 | /* 8 | Binaries 9 | */ 10 | BINARY, 11 | /* 12 | Capped bungees 13 | */ 14 | BUNGEE_CAPPED, 15 | /* 16 | Commodity bungees 17 | */ 18 | BUNGEE_COMMODITIES, 19 | /* 20 | Currency bungees 21 | */ 22 | BUNGEE_CURRENCIES, 23 | /* 24 | Index bungees 25 | */ 26 | BUNGEE_INDICES, 27 | /* 28 | Commodities 29 | */ 30 | COMMODITIES, 31 | /* 32 | Currencies 33 | */ 34 | CURRENCIES, 35 | /* 36 | Indices 37 | */ 38 | INDICES, 39 | /* 40 | Commodity options 41 | */ 42 | OPT_COMMODITIES, 43 | /* 44 | Currency options 45 | */ 46 | OPT_CURRENCIES, 47 | /* 48 | Index options 49 | */ 50 | OPT_INDICES, 51 | /* 52 | FX options 53 | */ 54 | OPT_RATES, 55 | /* 56 | Share options 57 | */ 58 | OPT_SHARES, 59 | /* 60 | Rates 61 | */ 62 | RATES, 63 | /* 64 | Sectors 65 | */ 66 | SECTORS, 67 | /* 68 | Shares 69 | */ 70 | SHARES, 71 | /* 72 | Sprint Market 73 | */ 74 | SPRINT_MARKET, 75 | /* 76 | Test market 77 | */ 78 | TEST_MARKET, 79 | /* 80 | Unknown 81 | */ 82 | UNKNOWN 83 | } 84 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/getMarketDetailsV3/Unit.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.getMarketDetailsV3; 2 | /* 3 | describes the dimension for a dealing rule value 4 | */ 5 | public enum Unit { 6 | 7 | /* 8 | 9 | */ 10 | PERCENTAGE, 11 | /* 12 | 13 | */ 14 | POINTS 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/navigation/getMarketNavigationNodeV1/GetMarketNavigationNodeV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.navigation.getMarketNavigationNodeV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Market hierarchy node 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetMarketNavigationNodeV1Response { 10 | 11 | /* 12 | Child market hierarchy nodes 13 | */ 14 | private java.util.List nodes; 15 | 16 | /* 17 | List of markets (applicable only to leaf nodes of the hierarchy tree) 18 | */ 19 | private java.util.List markets; 20 | 21 | public java.util.List getNodes() { return nodes; } 22 | public void setNodes(java.util.List nodes) { this.nodes=nodes; } 23 | public java.util.List getMarkets() { return markets; } 24 | public void setMarkets(java.util.List markets) { this.markets=markets; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/navigation/getMarketNavigationNodeV1/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.navigation.getMarketNavigationNodeV1; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/navigation/getMarketNavigationNodeV1/NodesItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.navigation.getMarketNavigationNodeV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Market hierarchy node 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class NodesItem { 11 | 12 | /* 13 | Node identifier 14 | */ 15 | private String id; 16 | 17 | /* 18 | Node name 19 | */ 20 | private String name; 21 | 22 | public String getId() { return id; } 23 | public void setId(String id) { this.id=id; } 24 | public String getName() { return name; } 25 | public void setName(String name) { this.name=name; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/navigation/getMarketNavigationRootV1/GetMarketNavigationRootV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.navigation.getMarketNavigationRootV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Market hierarchy node 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetMarketNavigationRootV1Response { 10 | 11 | /* 12 | Child market hierarchy nodes 13 | */ 14 | private java.util.List nodes; 15 | 16 | /* 17 | List of markets (applicable only to leaf nodes of the hierarchy tree) 18 | */ 19 | private java.util.List markets; 20 | 21 | public java.util.List getNodes() { return nodes; } 22 | public void setNodes(java.util.List nodes) { this.nodes=nodes; } 23 | public java.util.List getMarkets() { return markets; } 24 | public void setMarkets(java.util.List markets) { this.markets=markets; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/navigation/getMarketNavigationRootV1/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.navigation.getMarketNavigationRootV1; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/markets/navigation/getMarketNavigationRootV1/NodesItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.markets.navigation.getMarketNavigationRootV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Market hierarchy node 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class NodesItem { 11 | 12 | /* 13 | Node identifier 14 | */ 15 | private String id; 16 | 17 | /* 18 | Node name 19 | */ 20 | private String name; 21 | 22 | public String getId() { return id; } 23 | public void setId(String id) { this.id=id; } 24 | public String getName() { return name; } 25 | public void setName(String name) { this.name=name; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionByDealIdV1/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionByDealIdV1; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionByDealIdV1/GetPositionByDealIdV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionByDealIdV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Open position data 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetPositionByDealIdV1Response { 10 | 11 | /* 12 | Open position data 13 | */ 14 | private Position position; 15 | 16 | /* 17 | Market data 18 | */ 19 | private Market market; 20 | 21 | public Position getPosition() { return position; } 22 | public void setPosition(Position position) { this.position=position; } 23 | public Market getMarket() { return market; } 24 | public void setMarket(Market market) { this.market=market; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionByDealIdV1/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionByDealIdV1; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionByDealIdV2/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionByDealIdV2; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionByDealIdV2/GetPositionByDealIdV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionByDealIdV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Open position data 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetPositionByDealIdV2Response { 10 | 11 | /* 12 | Open position data 13 | */ 14 | private Position position; 15 | 16 | /* 17 | Market data 18 | */ 19 | private Market market; 20 | 21 | public Position getPosition() { return position; } 22 | public void setPosition(Position position) { this.position=position; } 23 | public Market getMarket() { return market; } 24 | public void setMarket(Market market) { this.market=market; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionByDealIdV2/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionByDealIdV2; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionsV1/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionsV1; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionsV1/GetPositionsV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetPositionsV1Response { 10 | 11 | /* 12 | List of positions 13 | */ 14 | private java.util.List positions; 15 | 16 | public java.util.List getPositions() { return positions; } 17 | public void setPositions(java.util.List positions) { this.positions=positions; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionsV1/InstrumentType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionsV1; 2 | /* 3 | Instrument type 4 | */ 5 | public enum InstrumentType { 6 | 7 | /* 8 | Binaries 9 | */ 10 | BINARY, 11 | /* 12 | Capped bungees 13 | */ 14 | BUNGEE_CAPPED, 15 | /* 16 | Commodity bungees 17 | */ 18 | BUNGEE_COMMODITIES, 19 | /* 20 | Currency bungees 21 | */ 22 | BUNGEE_CURRENCIES, 23 | /* 24 | Index bungees 25 | */ 26 | BUNGEE_INDICES, 27 | /* 28 | Commodities 29 | */ 30 | COMMODITIES, 31 | /* 32 | Currencies 33 | */ 34 | CURRENCIES, 35 | /* 36 | Indices 37 | */ 38 | INDICES, 39 | /* 40 | Commodity options 41 | */ 42 | OPT_COMMODITIES, 43 | /* 44 | Currency options 45 | */ 46 | OPT_CURRENCIES, 47 | /* 48 | Index options 49 | */ 50 | OPT_INDICES, 51 | /* 52 | FX options 53 | */ 54 | OPT_RATES, 55 | /* 56 | Share options 57 | */ 58 | OPT_SHARES, 59 | /* 60 | Rates 61 | */ 62 | RATES, 63 | /* 64 | Sectors 65 | */ 66 | SECTORS, 67 | /* 68 | Shares 69 | */ 70 | SHARES, 71 | /* 72 | Sprint Market 73 | */ 74 | SPRINT_MARKET, 75 | /* 76 | Test market 77 | */ 78 | TEST_MARKET, 79 | /* 80 | Unknown 81 | */ 82 | UNKNOWN 83 | } 84 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionsV1/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionsV1; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionsV1/PositionsItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Open position data 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class PositionsItem { 10 | 11 | /* 12 | Open position data 13 | */ 14 | private Position position; 15 | 16 | /* 17 | Market data 18 | */ 19 | private Market market; 20 | 21 | public Position getPosition() { return position; } 22 | public void setPosition(Position position) { this.position=position; } 23 | public Market getMarket() { return market; } 24 | public void setMarket(Market market) { this.market=market; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionsV2/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionsV2; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionsV2/GetPositionsV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionsV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetPositionsV2Response { 10 | 11 | /* 12 | List of positions 13 | */ 14 | private java.util.List positions; 15 | 16 | public java.util.List getPositions() { return positions; } 17 | public void setPositions(java.util.List positions) { this.positions=positions; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionsV2/InstrumentType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionsV2; 2 | /* 3 | Instrument type 4 | */ 5 | public enum InstrumentType { 6 | 7 | /* 8 | Binaries 9 | */ 10 | BINARY, 11 | /* 12 | Capped bungees 13 | */ 14 | BUNGEE_CAPPED, 15 | /* 16 | Commodity bungees 17 | */ 18 | BUNGEE_COMMODITIES, 19 | /* 20 | Currency bungees 21 | */ 22 | BUNGEE_CURRENCIES, 23 | /* 24 | Index bungees 25 | */ 26 | BUNGEE_INDICES, 27 | /* 28 | Commodities 29 | */ 30 | COMMODITIES, 31 | /* 32 | Currencies 33 | */ 34 | CURRENCIES, 35 | /* 36 | Indices 37 | */ 38 | INDICES, 39 | /* 40 | Commodity options 41 | */ 42 | OPT_COMMODITIES, 43 | /* 44 | Currency options 45 | */ 46 | OPT_CURRENCIES, 47 | /* 48 | Index options 49 | */ 50 | OPT_INDICES, 51 | /* 52 | FX options 53 | */ 54 | OPT_RATES, 55 | /* 56 | Share options 57 | */ 58 | OPT_SHARES, 59 | /* 60 | Rates 61 | */ 62 | RATES, 63 | /* 64 | Sectors 65 | */ 66 | SECTORS, 67 | /* 68 | Shares 69 | */ 70 | SHARES, 71 | /* 72 | Sprint Market 73 | */ 74 | SPRINT_MARKET, 75 | /* 76 | Test market 77 | */ 78 | TEST_MARKET, 79 | /* 80 | Unknown 81 | */ 82 | UNKNOWN 83 | } 84 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionsV2/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionsV2; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/getPositionsV2/PositionsItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.getPositionsV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Open position data 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class PositionsItem { 10 | 11 | /* 12 | Open position data 13 | */ 14 | private Position position; 15 | 16 | /* 17 | Market data 18 | */ 19 | private Market market; 20 | 21 | public Position getPosition() { return position; } 22 | public void setPosition(Position position) { this.position=position; } 23 | public Market getMarket() { return market; } 24 | public void setMarket(Market market) { this.market=market; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/closeOTCPositionV1/CloseOTCPositionV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.closeOTCPositionV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Close position response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class CloseOTCPositionV1Response { 11 | 12 | /* 13 | Deal reference 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/closeOTCPositionV1/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.closeOTCPositionV1; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/closeOTCPositionV1/OrderType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.closeOTCPositionV1; 2 | /* 3 | Describes the order level model to be used for a position operation 4 | */ 5 | public enum OrderType { 6 | 7 | /* 8 | Limit orders get executed at the price seen by IG at the moment of booking a trade. A limit determines the level 9 | at which the order or the remainder of the order will be rejected. 10 | */ 11 | LIMIT, 12 | /* 13 | Market orders get executed at the price seen by the IG at the time of booking the trade. 14 | A level cannot be specified. Not applicable to BINARY instruments 15 | */ 16 | MARKET, 17 | /* 18 | Quote orders get executed at the specified level. 19 | The level has to be accompanied by a valid quote id. This type is only available subject to agreement with IG. 20 | */ 21 | QUOTE 22 | } 23 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/closeOTCPositionV1/TimeInForce.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.closeOTCPositionV1; 2 | /* 3 | The time in force determines the order fill strategy. 4 | */ 5 | public enum TimeInForce { 6 | 7 | /* 8 | Execute and eliminate 9 | */ 10 | EXECUTE_AND_ELIMINATE, 11 | /* 12 | Fill or kill 13 | */ 14 | FILL_OR_KILL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/createOTCPositionV1/CreateOTCPositionV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.createOTCPositionV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Create position response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class CreateOTCPositionV1Response { 11 | 12 | /* 13 | Deal reference of the transaction 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/createOTCPositionV1/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.createOTCPositionV1; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/createOTCPositionV1/OrderType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.createOTCPositionV1; 2 | /* 3 | Describes the order level model to be used for a position operation 4 | */ 5 | public enum OrderType { 6 | 7 | /* 8 | Limit orders get executed at the price seen by IG at the moment of booking a trade. A limit determines the level 9 | at which the order or the remainder of the order will be rejected. 10 | */ 11 | LIMIT, 12 | /* 13 | Market orders get executed at the price seen by the IG at the time of booking the trade. 14 | A level cannot be specified. Not applicable to BINARY instruments 15 | */ 16 | MARKET, 17 | /* 18 | Quote orders get executed at the specified level. 19 | The level has to be accompanied by a valid quote id. This type is only available subject to agreement with IG. 20 | */ 21 | QUOTE 22 | } 23 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/createOTCPositionV2/CreateOTCPositionV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.createOTCPositionV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Create position response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class CreateOTCPositionV2Response { 11 | 12 | /* 13 | Deal reference of the transaction 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/createOTCPositionV2/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.createOTCPositionV2; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/createOTCPositionV2/OrderType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.createOTCPositionV2; 2 | /* 3 | Describes the order level model to be used for a position operation 4 | */ 5 | public enum OrderType { 6 | 7 | /* 8 | Limit orders get executed at the price seen by IG at the moment of booking a trade. A limit determines the level 9 | at which the order or the remainder of the order will be rejected. 10 | */ 11 | LIMIT, 12 | /* 13 | Market orders get executed at the price seen by the IG at the time of booking the trade. 14 | A level cannot be specified. Not applicable to BINARY instruments 15 | */ 16 | MARKET, 17 | /* 18 | Quote orders get executed at the specified level. 19 | The level has to be accompanied by a valid quote id. This type is only available subject to agreement with IG. 20 | */ 21 | QUOTE 22 | } 23 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/createOTCPositionV2/TimeInForce.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.createOTCPositionV2; 2 | /* 3 | The time in force determines the order fill strategy. 4 | */ 5 | public enum TimeInForce { 6 | 7 | /* 8 | Execute and eliminate 9 | */ 10 | EXECUTE_AND_ELIMINATE, 11 | /* 12 | Fill or kill 13 | */ 14 | FILL_OR_KILL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/updateOTCPositionV1/UpdateOTCPositionV1Request.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.updateOTCPositionV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Edit position request data 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class UpdateOTCPositionV1Request { 11 | 12 | /* 13 | Stop level 14 | */ 15 | private BigDecimal stopLevel; 16 | 17 | /* 18 | Limit level 19 | */ 20 | private BigDecimal limitLevel; 21 | 22 | public BigDecimal getStopLevel() { return stopLevel; } 23 | public void setStopLevel(BigDecimal stopLevel) { this.stopLevel=stopLevel; } 24 | public BigDecimal getLimitLevel() { return limitLevel; } 25 | public void setLimitLevel(BigDecimal limitLevel) { this.limitLevel=limitLevel; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/updateOTCPositionV1/UpdateOTCPositionV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.updateOTCPositionV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Edit position response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class UpdateOTCPositionV1Response { 11 | 12 | /* 13 | Deal reference 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/otc/updateOTCPositionV2/UpdateOTCPositionV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.otc.updateOTCPositionV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Edit position response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class UpdateOTCPositionV2Response { 11 | 12 | /* 13 | Deal reference 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/sprintmarkets/createSprintMarketPositionV1/CreateSprintMarketPositionV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.sprintmarkets.createSprintMarketPositionV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Create position response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class CreateSprintMarketPositionV1Response { 11 | 12 | /* 13 | Deal reference of the transaction 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/sprintmarkets/createSprintMarketPositionV1/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.sprintmarkets.createSprintMarketPositionV1; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/sprintmarkets/createSprintMarketPositionV1/ExpiryPeriod.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.sprintmarkets.createSprintMarketPositionV1; 2 | /* 3 | Sprint market expiry period 4 | */ 5 | public enum ExpiryPeriod { 6 | 7 | /* 8 | 5 minutes 9 | */ 10 | FIVE_MINUTES, 11 | /* 12 | 1 minute 13 | */ 14 | ONE_MINUTE, 15 | /* 16 | 60 minutes 17 | */ 18 | SIXTY_MINUTES, 19 | /* 20 | 20 minutes 21 | */ 22 | TWENTY_MINUTES, 23 | /* 24 | 2 minutes 25 | */ 26 | TWO_MINUTES 27 | } 28 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/sprintmarkets/getSprintMarketPositionsV1/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.sprintmarkets.getSprintMarketPositionsV1; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/sprintmarkets/getSprintMarketPositionsV1/GetSprintMarketPositionsV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.sprintmarkets.getSprintMarketPositionsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | A list of sprint market positions 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetSprintMarketPositionsV1Response { 10 | 11 | /* 12 | Sprint market positions 13 | */ 14 | private java.util.List sprintMarketPositions; 15 | 16 | public java.util.List getSprintMarketPositions() { return sprintMarketPositions; } 17 | public void setSprintMarketPositions(java.util.List sprintMarketPositions) { this.sprintMarketPositions=sprintMarketPositions; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/sprintmarkets/getSprintMarketPositionsV1/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.sprintmarkets.getSprintMarketPositionsV1; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/sprintmarkets/getSprintMarketPositionsV2/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.sprintmarkets.getSprintMarketPositionsV2; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/sprintmarkets/getSprintMarketPositionsV2/GetSprintMarketPositionsV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.sprintmarkets.getSprintMarketPositionsV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | A list of sprint market positions 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetSprintMarketPositionsV2Response { 10 | 11 | /* 12 | Sprint market positions 13 | */ 14 | private java.util.List sprintMarketPositions; 15 | 16 | public java.util.List getSprintMarketPositions() { return sprintMarketPositions; } 17 | public void setSprintMarketPositions(java.util.List sprintMarketPositions) { this.sprintMarketPositions=sprintMarketPositions; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/positions/sprintmarkets/getSprintMarketPositionsV2/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.positions.sprintmarkets.getSprintMarketPositionsV2; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV1/ClosePrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class ClosePrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV1/GetPricesByDateRangeV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List of prices 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetPricesByDateRangeV1Response { 10 | 11 | /* 12 | Price list 13 | */ 14 | private java.util.List prices; 15 | 16 | /* 17 | the instrument type of this instrument 18 | */ 19 | private InstrumentType instrumentType; 20 | 21 | /* 22 | Historical price data allowance 23 | */ 24 | private Allowance allowance; 25 | 26 | public java.util.List getPrices() { return prices; } 27 | public void setPrices(java.util.List prices) { this.prices=prices; } 28 | public InstrumentType getInstrumentType() { return instrumentType; } 29 | public void setInstrumentType(InstrumentType instrumentType) { this.instrumentType=instrumentType; } 30 | public Allowance getAllowance() { return allowance; } 31 | public void setAllowance(Allowance allowance) { this.allowance=allowance; } 32 | } 33 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV1/HighPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class HighPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV1/InstrumentType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV1; 2 | /* 3 | Instrument type 4 | */ 5 | public enum InstrumentType { 6 | 7 | /* 8 | Binaries 9 | */ 10 | BINARY, 11 | /* 12 | Capped bungees 13 | */ 14 | BUNGEE_CAPPED, 15 | /* 16 | Commodity bungees 17 | */ 18 | BUNGEE_COMMODITIES, 19 | /* 20 | Currency bungees 21 | */ 22 | BUNGEE_CURRENCIES, 23 | /* 24 | Index bungees 25 | */ 26 | BUNGEE_INDICES, 27 | /* 28 | Commodities 29 | */ 30 | COMMODITIES, 31 | /* 32 | Currencies 33 | */ 34 | CURRENCIES, 35 | /* 36 | Indices 37 | */ 38 | INDICES, 39 | /* 40 | Commodity options 41 | */ 42 | OPT_COMMODITIES, 43 | /* 44 | Currency options 45 | */ 46 | OPT_CURRENCIES, 47 | /* 48 | Index options 49 | */ 50 | OPT_INDICES, 51 | /* 52 | FX options 53 | */ 54 | OPT_RATES, 55 | /* 56 | Share options 57 | */ 58 | OPT_SHARES, 59 | /* 60 | Rates 61 | */ 62 | RATES, 63 | /* 64 | Sectors 65 | */ 66 | SECTORS, 67 | /* 68 | Shares 69 | */ 70 | SHARES, 71 | /* 72 | Sprint Market 73 | */ 74 | SPRINT_MARKET, 75 | /* 76 | Test market 77 | */ 78 | TEST_MARKET, 79 | /* 80 | Unknown 81 | */ 82 | UNKNOWN 83 | } 84 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV1/LowPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class LowPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV1/OpenPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class OpenPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV2/ClosePrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class ClosePrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV2/GetPricesByDateRangeV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List of prices 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetPricesByDateRangeV2Response { 10 | 11 | /* 12 | Price list 13 | */ 14 | private java.util.List prices; 15 | 16 | /* 17 | the instrument type of this instrument 18 | */ 19 | private InstrumentType instrumentType; 20 | 21 | /* 22 | Historical price data allowance 23 | */ 24 | private Allowance allowance; 25 | 26 | public java.util.List getPrices() { return prices; } 27 | public void setPrices(java.util.List prices) { this.prices=prices; } 28 | public InstrumentType getInstrumentType() { return instrumentType; } 29 | public void setInstrumentType(InstrumentType instrumentType) { this.instrumentType=instrumentType; } 30 | public Allowance getAllowance() { return allowance; } 31 | public void setAllowance(Allowance allowance) { this.allowance=allowance; } 32 | } 33 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV2/HighPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class HighPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV2/InstrumentType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV2; 2 | /* 3 | Instrument type 4 | */ 5 | public enum InstrumentType { 6 | 7 | /* 8 | Binaries 9 | */ 10 | BINARY, 11 | /* 12 | Capped bungees 13 | */ 14 | BUNGEE_CAPPED, 15 | /* 16 | Commodity bungees 17 | */ 18 | BUNGEE_COMMODITIES, 19 | /* 20 | Currency bungees 21 | */ 22 | BUNGEE_CURRENCIES, 23 | /* 24 | Index bungees 25 | */ 26 | BUNGEE_INDICES, 27 | /* 28 | Commodities 29 | */ 30 | COMMODITIES, 31 | /* 32 | Currencies 33 | */ 34 | CURRENCIES, 35 | /* 36 | Indices 37 | */ 38 | INDICES, 39 | /* 40 | Commodity options 41 | */ 42 | OPT_COMMODITIES, 43 | /* 44 | Currency options 45 | */ 46 | OPT_CURRENCIES, 47 | /* 48 | Index options 49 | */ 50 | OPT_INDICES, 51 | /* 52 | FX options 53 | */ 54 | OPT_RATES, 55 | /* 56 | Share options 57 | */ 58 | OPT_SHARES, 59 | /* 60 | Rates 61 | */ 62 | RATES, 63 | /* 64 | Sectors 65 | */ 66 | SECTORS, 67 | /* 68 | Shares 69 | */ 70 | SHARES, 71 | /* 72 | Sprint Market 73 | */ 74 | SPRINT_MARKET, 75 | /* 76 | Test market 77 | */ 78 | TEST_MARKET, 79 | /* 80 | Unknown 81 | */ 82 | UNKNOWN 83 | } 84 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV2/LowPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class LowPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByDateRangeV2/OpenPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByDateRangeV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class OpenPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByNumberOfPointsV1/ClosePrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByNumberOfPointsV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class ClosePrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByNumberOfPointsV1/GetPricesByNumberOfPointsV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByNumberOfPointsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List of prices 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetPricesByNumberOfPointsV1Response { 10 | 11 | /* 12 | Price list 13 | */ 14 | private java.util.List prices; 15 | 16 | /* 17 | the instrument type of this instrument 18 | */ 19 | private InstrumentType instrumentType; 20 | 21 | /* 22 | Historical price data allowance 23 | */ 24 | private Allowance allowance; 25 | 26 | public java.util.List getPrices() { return prices; } 27 | public void setPrices(java.util.List prices) { this.prices=prices; } 28 | public InstrumentType getInstrumentType() { return instrumentType; } 29 | public void setInstrumentType(InstrumentType instrumentType) { this.instrumentType=instrumentType; } 30 | public Allowance getAllowance() { return allowance; } 31 | public void setAllowance(Allowance allowance) { this.allowance=allowance; } 32 | } 33 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByNumberOfPointsV1/HighPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByNumberOfPointsV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class HighPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByNumberOfPointsV1/LowPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByNumberOfPointsV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class LowPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByNumberOfPointsV1/OpenPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByNumberOfPointsV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class OpenPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByNumberOfPointsV2/ClosePrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByNumberOfPointsV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class ClosePrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByNumberOfPointsV2/GetPricesByNumberOfPointsV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByNumberOfPointsV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List of prices 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetPricesByNumberOfPointsV2Response { 10 | 11 | /* 12 | Price list 13 | */ 14 | private java.util.List prices; 15 | 16 | /* 17 | the instrument type of this instrument 18 | */ 19 | private InstrumentType instrumentType; 20 | 21 | /* 22 | Historical price data allowance 23 | */ 24 | private Allowance allowance; 25 | 26 | public java.util.List getPrices() { return prices; } 27 | public void setPrices(java.util.List prices) { this.prices=prices; } 28 | public InstrumentType getInstrumentType() { return instrumentType; } 29 | public void setInstrumentType(InstrumentType instrumentType) { this.instrumentType=instrumentType; } 30 | public Allowance getAllowance() { return allowance; } 31 | public void setAllowance(Allowance allowance) { this.allowance=allowance; } 32 | } 33 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByNumberOfPointsV2/HighPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByNumberOfPointsV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class HighPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByNumberOfPointsV2/LowPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByNumberOfPointsV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class LowPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesByNumberOfPointsV2/OpenPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesByNumberOfPointsV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class OpenPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesV3/ClosePrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesV3; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class ClosePrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesV3/GetPricesV3Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List of prices 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetPricesV3Response { 10 | 11 | /* 12 | Price list 13 | */ 14 | private java.util.List prices; 15 | 16 | /* 17 | the instrument type of this instrument 18 | */ 19 | private InstrumentType instrumentType; 20 | 21 | /* 22 | Metadata 23 | */ 24 | private Metadata metadata; 25 | 26 | public java.util.List getPrices() { return prices; } 27 | public void setPrices(java.util.List prices) { this.prices=prices; } 28 | public InstrumentType getInstrumentType() { return instrumentType; } 29 | public void setInstrumentType(InstrumentType instrumentType) { this.instrumentType=instrumentType; } 30 | public Metadata getMetadata() { return metadata; } 31 | public void setMetadata(Metadata metadata) { this.metadata=metadata; } 32 | } 33 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesV3/HighPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesV3; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class HighPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesV3/InstrumentType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesV3; 2 | /* 3 | Instrument type 4 | */ 5 | public enum InstrumentType { 6 | 7 | /* 8 | Binaries 9 | */ 10 | BINARY, 11 | /* 12 | Capped bungees 13 | */ 14 | BUNGEE_CAPPED, 15 | /* 16 | Commodity bungees 17 | */ 18 | BUNGEE_COMMODITIES, 19 | /* 20 | Currency bungees 21 | */ 22 | BUNGEE_CURRENCIES, 23 | /* 24 | Index bungees 25 | */ 26 | BUNGEE_INDICES, 27 | /* 28 | Commodities 29 | */ 30 | COMMODITIES, 31 | /* 32 | Currencies 33 | */ 34 | CURRENCIES, 35 | /* 36 | Indices 37 | */ 38 | INDICES, 39 | /* 40 | Commodity options 41 | */ 42 | OPT_COMMODITIES, 43 | /* 44 | Currency options 45 | */ 46 | OPT_CURRENCIES, 47 | /* 48 | Index options 49 | */ 50 | OPT_INDICES, 51 | /* 52 | FX options 53 | */ 54 | OPT_RATES, 55 | /* 56 | Share options 57 | */ 58 | OPT_SHARES, 59 | /* 60 | Rates 61 | */ 62 | RATES, 63 | /* 64 | Sectors 65 | */ 66 | SECTORS, 67 | /* 68 | Shares 69 | */ 70 | SHARES, 71 | /* 72 | Sprint Market 73 | */ 74 | SPRINT_MARKET, 75 | /* 76 | Test market 77 | */ 78 | TEST_MARKET, 79 | /* 80 | Unknown 81 | */ 82 | UNKNOWN 83 | } 84 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesV3/LowPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesV3; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class LowPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesV3/Metadata.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesV3; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Response metadata data. 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class Metadata { 10 | 11 | /* 12 | Historical price data allowance 13 | */ 14 | private Allowance allowance; 15 | 16 | public Allowance getAllowance() { return allowance; } 17 | public void setAllowance(Allowance allowance) { this.allowance=allowance; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/prices/getPricesV3/OpenPrice.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.prices.getPricesV3; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Price 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class OpenPrice { 11 | 12 | /* 13 | Bid price 14 | */ 15 | private BigDecimal bid; 16 | 17 | /* 18 | Ask price 19 | */ 20 | private BigDecimal ask; 21 | 22 | /* 23 | Last traded price. This will generally be null for non exchange-traded instruments 24 | */ 25 | private BigDecimal lastTraded; 26 | 27 | public BigDecimal getBid() { return bid; } 28 | public void setBid(BigDecimal bid) { this.bid=bid; } 29 | public BigDecimal getAsk() { return ask; } 30 | public void setAsk(BigDecimal ask) { this.ask=ask; } 31 | public BigDecimal getLastTraded() { return lastTraded; } 32 | public void setLastTraded(BigDecimal lastTraded) { this.lastTraded=lastTraded; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/createSessionV1/AccountType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.createSessionV1; 2 | /* 3 | Account type 4 | */ 5 | public enum AccountType { 6 | 7 | /* 8 | CFD account 9 | */ 10 | CFD, 11 | /* 12 | Physical account 13 | */ 14 | PHYSICAL, 15 | /* 16 | Spread bet account 17 | */ 18 | SPREADBET 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/createSessionV1/CreateSessionV1Request.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.createSessionV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Client login credentials 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class CreateSessionV1Request { 11 | 12 | /* 13 | Client login identifier 14 | */ 15 | private String identifier; 16 | 17 | /* 18 | Client login password 19 | */ 20 | private String password; 21 | 22 | /* 23 | Whether the password has been sent encrypted. 24 | */ 25 | private Boolean encryptedPassword; 26 | 27 | public String getIdentifier() { return identifier; } 28 | public void setIdentifier(String identifier) { this.identifier=identifier; } 29 | public String getPassword() { return password; } 30 | public void setPassword(String password) { this.password=password; } 31 | public Boolean getEncryptedPassword() { return encryptedPassword; } 32 | public void setEncryptedPassword(Boolean encryptedPassword) { this.encryptedPassword=encryptedPassword; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/createSessionV1/FormType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.createSessionV1; 2 | /* 3 | Types of Form 4 | */ 5 | public enum FormType { 6 | 7 | /* 8 | Better customer agreement form type 9 | */ 10 | BCA, 11 | /* 12 | Know your client form type 13 | */ 14 | KYC 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/createSessionV1/ReroutingEnvironment.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.createSessionV1; 2 | /* 3 | Describes the environment to be used as the rerouting destination 4 | */ 5 | public enum ReroutingEnvironment { 6 | 7 | /* 8 | 9 | */ 10 | DEMO, 11 | /* 12 | 13 | */ 14 | LIVE, 15 | /* 16 | 17 | */ 18 | TEST, 19 | /* 20 | 21 | */ 22 | UAT 23 | } 24 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/createSessionV2/AccountType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.createSessionV2; 2 | /* 3 | Account type 4 | */ 5 | public enum AccountType { 6 | 7 | /* 8 | CFD account 9 | */ 10 | CFD, 11 | /* 12 | Physical account 13 | */ 14 | PHYSICAL, 15 | /* 16 | Spread bet account 17 | */ 18 | SPREADBET 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/createSessionV2/CreateSessionV2Request.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.createSessionV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Client login credentials 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class CreateSessionV2Request { 11 | 12 | /* 13 | Client login identifier 14 | */ 15 | private String identifier; 16 | 17 | /* 18 | Client login password 19 | */ 20 | private String password; 21 | 22 | /* 23 | Whether the password has been sent encrypted. 24 | */ 25 | private Boolean encryptedPassword; 26 | 27 | public String getIdentifier() { return identifier; } 28 | public void setIdentifier(String identifier) { this.identifier=identifier; } 29 | public String getPassword() { return password; } 30 | public void setPassword(String password) { this.password=password; } 31 | public Boolean getEncryptedPassword() { return encryptedPassword; } 32 | public void setEncryptedPassword(Boolean encryptedPassword) { this.encryptedPassword=encryptedPassword; } 33 | } 34 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/createSessionV2/FormType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.createSessionV2; 2 | /* 3 | Types of Form 4 | */ 5 | public enum FormType { 6 | 7 | /* 8 | Better customer agreement form type 9 | */ 10 | BCA, 11 | /* 12 | Know your client form type 13 | */ 14 | KYC 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/createSessionV2/ReroutingEnvironment.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.createSessionV2; 2 | /* 3 | Describes the environment to be used as the rerouting destination 4 | */ 5 | public enum ReroutingEnvironment { 6 | 7 | /* 8 | 9 | */ 10 | DEMO, 11 | /* 12 | 13 | */ 14 | LIVE, 15 | /* 16 | 17 | */ 18 | TEST, 19 | /* 20 | 21 | */ 22 | UAT 23 | } 24 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/createSessionV3/AccessTokenResponse.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.createSessionV3; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class AccessTokenResponse { 7 | private String access_token; 8 | private String refresh_token; 9 | private String scope; 10 | private String token_type; 11 | private String expires_in; 12 | } 13 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/createSessionV3/CreateSessionV3Request.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.createSessionV3; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class CreateSessionV3Request { 7 | private String identifier; 8 | private String password; 9 | } 10 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/createSessionV3/CreateSessionV3Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.createSessionV3; 2 | 3 | import com.iggroup.webapi.samples.client.rest.dto.session.createSessionV2.AccountType; 4 | import lombok.Data; 5 | 6 | @Data 7 | public class CreateSessionV3Response { 8 | private AccountType accountType; 9 | private String clientId; 10 | private String accountId; 11 | private int timezoneOffset; 12 | private String lightstreamerEndpoint; 13 | private AccessTokenResponse oauthToken; 14 | } 15 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/encryptionKey/getEncryptionKeySessionV1/GetEncryptionKeySessionV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.encryptionKey.getEncryptionKeySessionV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | The encryption key to use in order to send the user password in an encrypted form 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class GetEncryptionKeySessionV1Response { 11 | 12 | /* 13 | Encryption key in Base 64 format 14 | */ 15 | private String encryptionKey; 16 | 17 | /* 18 | Current timestamp in milliseconds since epoch 19 | */ 20 | private Long timeStamp; 21 | 22 | public String getEncryptionKey() { return encryptionKey; } 23 | public void setEncryptionKey(String encryptionKey) { this.encryptionKey=encryptionKey; } 24 | public Long getTimeStamp() { return timeStamp; } 25 | public void setTimeStamp(Long timeStamp) { this.timeStamp=timeStamp; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/getSessionV1/GetSessionV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.getSessionV1; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class GetSessionV1Response { 7 | private String clientId; 8 | private String accountId; 9 | private int timezoneOffset; 10 | private String locale; 11 | private String currency; 12 | private String lightstreamerEndpoint; 13 | } 14 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/refreshSessionV1/RefreshSessionV1Request.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.refreshSessionV1; 2 | 3 | import lombok.Builder; 4 | import lombok.Data; 5 | 6 | @Data 7 | @Builder 8 | public class RefreshSessionV1Request { 9 | 10 | private String refresh_token; 11 | } 12 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/session/updateActiveAccountV1/UpdateActiveAccountV1Request.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.session.updateActiveAccountV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Account switch request 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class UpdateActiveAccountV1Request { 11 | 12 | /* 13 | The identifier of the account being switched to 14 | */ 15 | private String accountId; 16 | 17 | /* 18 | True if the specified account is to be set as the new default account. 19 | Omitting this argument results in the default account not being changed 20 | */ 21 | private Boolean defaultAccount; 22 | 23 | public String getAccountId() { return accountId; } 24 | public void setAccountId(String accountId) { this.accountId=accountId; } 25 | public Boolean getDefaultAccount() { return defaultAccount; } 26 | public void setDefaultAccount(Boolean defaultAccount) { this.defaultAccount=defaultAccount; } 27 | } 28 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/createWatchlistV1/CreateWatchlistV1Request.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.createWatchlistV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Create watchlist request 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class CreateWatchlistV1Request { 11 | 12 | /* 13 | Watchlist name 14 | */ 15 | private String name; 16 | 17 | /* 18 | List of market epics to be associated to this new watchlist 19 | */ 20 | private java.util.Set epics; 21 | 22 | public String getName() { return name; } 23 | public void setName(String name) { this.name=name; } 24 | public java.util.Set getEpics() { return epics; } 25 | public void setEpics(java.util.Set epics) { this.epics=epics; } 26 | } 27 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/createWatchlistV1/CreateWatchlistV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.createWatchlistV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Create watchlist response 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class CreateWatchlistV1Response { 10 | 11 | /* 12 | Identifier of the watchlist just created, if successful 13 | */ 14 | private String watchlistId; 15 | 16 | /* 17 | Result status of the watchlist creation request 18 | */ 19 | private Status status; 20 | 21 | public String getWatchlistId() { return watchlistId; } 22 | public void setWatchlistId(String watchlistId) { this.watchlistId=watchlistId; } 23 | public Status getStatus() { return status; } 24 | public void setStatus(Status status) { this.status=status; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/createWatchlistV1/Status.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.createWatchlistV1; 2 | /* 3 | Status 4 | */ 5 | public enum Status { 6 | 7 | /* 8 | Success 9 | */ 10 | SUCCESS, 11 | /* 12 | Partially successful 13 | */ 14 | SUCCESS_NOT_ALL_INSTRUMENTS_ADDED 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/deleteWatchlistMarketV1/DeleteWatchlistMarketV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.deleteWatchlistMarketV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class DeleteWatchlistMarketV1Response { 10 | 11 | /* 12 | Status 13 | */ 14 | private Status status; 15 | 16 | public Status getStatus() { return status; } 17 | public void setStatus(Status status) { this.status=status; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/deleteWatchlistMarketV1/Status.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.deleteWatchlistMarketV1; 2 | /* 3 | Status 4 | */ 5 | public enum Status { 6 | 7 | /* 8 | Success 9 | */ 10 | SUCCESS 11 | } 12 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/deleteWatchlistV1/DeleteWatchlistV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.deleteWatchlistV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Delete watchlist response 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class DeleteWatchlistV1Response { 10 | 11 | /* 12 | Status 13 | */ 14 | private Status status; 15 | 16 | public Status getStatus() { return status; } 17 | public void setStatus(Status status) { this.status=status; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/deleteWatchlistV1/Status.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.deleteWatchlistV1; 2 | /* 3 | Status 4 | */ 5 | public enum Status { 6 | 7 | /* 8 | Success 9 | */ 10 | SUCCESS 11 | } 12 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/getWatchlistByWatchlistIdV1/GetWatchlistByWatchlistIdV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.getWatchlistByWatchlistIdV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List watchlists response 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetWatchlistByWatchlistIdV1Response { 10 | 11 | /* 12 | List of watchlist markets 13 | */ 14 | private java.util.List markets; 15 | 16 | public java.util.List getMarkets() { return markets; } 17 | public void setMarkets(java.util.List markets) { this.markets=markets; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/getWatchlistByWatchlistIdV1/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.getWatchlistByWatchlistIdV1; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/getWatchlistsV1/GetWatchlistsV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.getWatchlistsV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List watchlists response 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetWatchlistsV1Response { 10 | 11 | /* 12 | List of watchlists 13 | */ 14 | private java.util.List watchlists; 15 | 16 | public java.util.List getWatchlists() { return watchlists; } 17 | public void setWatchlists(java.util.List watchlists) { this.watchlists=watchlists; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/updateWatchlistMarketV1/Status.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.updateWatchlistMarketV1; 2 | /* 3 | Status 4 | */ 5 | public enum Status { 6 | 7 | /* 8 | Success 9 | */ 10 | SUCCESS 11 | } 12 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/updateWatchlistMarketV1/UpdateWatchlistMarketV1Request.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.updateWatchlistMarketV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Add instrument to watchlist request 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class UpdateWatchlistMarketV1Request { 11 | 12 | /* 13 | Instrument epic identifier 14 | */ 15 | private String epic; 16 | 17 | public String getEpic() { return epic; } 18 | public void setEpic(String epic) { this.epic=epic; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/watchlists/updateWatchlistMarketV1/UpdateWatchlistMarketV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.watchlists.updateWatchlistMarketV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | Add instrument to watchlist response 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class UpdateWatchlistMarketV1Response { 10 | 11 | /* 12 | Status 13 | */ 14 | private Status status; 15 | 16 | public Status getStatus() { return status; } 17 | public void setStatus(Status status) { this.status=status; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/getWorkingOrdersV1/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.getWorkingOrdersV1; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/getWorkingOrdersV1/GetWorkingOrdersV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.getWorkingOrdersV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List working orders response 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetWorkingOrdersV1Response { 10 | 11 | /* 12 | List of working orders 13 | */ 14 | private java.util.List workingOrders; 15 | 16 | public java.util.List getWorkingOrders() { return workingOrders; } 17 | public void setWorkingOrders(java.util.List workingOrders) { this.workingOrders=workingOrders; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/getWorkingOrdersV1/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.getWorkingOrdersV1; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/getWorkingOrdersV1/RequestType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.getWorkingOrdersV1; 2 | /* 3 | Working order request type 4 | */ 5 | public enum RequestType { 6 | 7 | /* 8 | Limit order 9 | */ 10 | LIMIT_ORDER, 11 | /* 12 | Stop order 13 | */ 14 | STOP_ORDER 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/getWorkingOrdersV1/WorkingOrdersItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.getWorkingOrdersV1; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class WorkingOrdersItem { 10 | 11 | /* 12 | 13 | */ 14 | private WorkingOrderData workingOrderData; 15 | 16 | /* 17 | 18 | */ 19 | private MarketData marketData; 20 | 21 | public WorkingOrderData getWorkingOrderData() { return workingOrderData; } 22 | public void setWorkingOrderData(WorkingOrderData workingOrderData) { this.workingOrderData=workingOrderData; } 23 | public MarketData getMarketData() { return marketData; } 24 | public void setMarketData(MarketData marketData) { this.marketData=marketData; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/getWorkingOrdersV2/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.getWorkingOrdersV2; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/getWorkingOrdersV2/GetWorkingOrdersV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.getWorkingOrdersV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | List working orders response 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class GetWorkingOrdersV2Response { 10 | 11 | /* 12 | List of working orders 13 | */ 14 | private java.util.List workingOrders; 15 | 16 | public java.util.List getWorkingOrders() { return workingOrders; } 17 | public void setWorkingOrders(java.util.List workingOrders) { this.workingOrders=workingOrders; } 18 | } 19 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/getWorkingOrdersV2/MarketStatus.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.getWorkingOrdersV2; 2 | /* 3 | Describes the current status of a given market 4 | */ 5 | public enum MarketStatus { 6 | 7 | /* 8 | Closed 9 | */ 10 | CLOSED, 11 | /* 12 | Open for edits 13 | */ 14 | EDITS_ONLY, 15 | /* 16 | Offline 17 | */ 18 | OFFLINE, 19 | /* 20 | In auction mode 21 | */ 22 | ON_AUCTION, 23 | /* 24 | In no-edits mode 25 | */ 26 | ON_AUCTION_NO_EDITS, 27 | /* 28 | Suspended 29 | */ 30 | SUSPENDED, 31 | /* 32 | Open for trades 33 | */ 34 | TRADEABLE 35 | } 36 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/getWorkingOrdersV2/OrderType.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.getWorkingOrdersV2; 2 | /* 3 | Working order type 4 | */ 5 | public enum OrderType { 6 | 7 | /* 8 | Limit working order 9 | */ 10 | LIMIT, 11 | /* 12 | Stop working order 13 | */ 14 | STOP 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/getWorkingOrdersV2/TimeInForce.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.getWorkingOrdersV2; 2 | /* 3 | Describes the type of time in force for a given order 4 | */ 5 | public enum TimeInForce { 6 | 7 | /* 8 | Good until cancelled 9 | */ 10 | GOOD_TILL_CANCELLED, 11 | /* 12 | Good until specified date 13 | */ 14 | GOOD_TILL_DATE 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/getWorkingOrdersV2/WorkingOrdersItem.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.getWorkingOrdersV2; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | /* 6 | 7 | */ 8 | @JsonIgnoreProperties(ignoreUnknown = true) 9 | public class WorkingOrdersItem { 10 | 11 | /* 12 | 13 | */ 14 | private WorkingOrderData workingOrderData; 15 | 16 | /* 17 | 18 | */ 19 | private MarketData marketData; 20 | 21 | public WorkingOrderData getWorkingOrderData() { return workingOrderData; } 22 | public void setWorkingOrderData(WorkingOrderData workingOrderData) { this.workingOrderData=workingOrderData; } 23 | public MarketData getMarketData() { return marketData; } 24 | public void setMarketData(MarketData marketData) { this.marketData=marketData; } 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/createOTCWorkingOrderV1/CreateOTCWorkingOrderV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.createOTCWorkingOrderV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Create working order response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class CreateOTCWorkingOrderV1Response { 11 | 12 | /* 13 | Deal reference of the transaction 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/createOTCWorkingOrderV1/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.createOTCWorkingOrderV1; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/createOTCWorkingOrderV1/TimeInForce.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.createOTCWorkingOrderV1; 2 | /* 3 | Time in force 4 | */ 5 | public enum TimeInForce { 6 | 7 | /* 8 | Good until cancelled 9 | */ 10 | GOOD_TILL_CANCELLED, 11 | /* 12 | Good until specified date 13 | */ 14 | GOOD_TILL_DATE 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/createOTCWorkingOrderV1/Type.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.createOTCWorkingOrderV1; 2 | /* 3 | Working order type 4 | */ 5 | public enum Type { 6 | 7 | /* 8 | Limit working order 9 | */ 10 | LIMIT, 11 | /* 12 | Stop working order 13 | */ 14 | STOP 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/createOTCWorkingOrderV2/CreateOTCWorkingOrderV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.createOTCWorkingOrderV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Create working order response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class CreateOTCWorkingOrderV2Response { 11 | 12 | /* 13 | Deal reference of the transaction 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/createOTCWorkingOrderV2/Direction.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.createOTCWorkingOrderV2; 2 | /* 3 | Deal direction 4 | */ 5 | public enum Direction { 6 | 7 | /* 8 | Buy 9 | */ 10 | BUY, 11 | /* 12 | Sell 13 | */ 14 | SELL 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/createOTCWorkingOrderV2/TimeInForce.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.createOTCWorkingOrderV2; 2 | /* 3 | Time in force 4 | */ 5 | public enum TimeInForce { 6 | 7 | /* 8 | Good until cancelled 9 | */ 10 | GOOD_TILL_CANCELLED, 11 | /* 12 | Good until specified date 13 | */ 14 | GOOD_TILL_DATE 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/createOTCWorkingOrderV2/Type.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.createOTCWorkingOrderV2; 2 | /* 3 | Working order type 4 | */ 5 | public enum Type { 6 | 7 | /* 8 | Limit working order 9 | */ 10 | LIMIT, 11 | /* 12 | Stop working order 13 | */ 14 | STOP 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/deleteOTCWorkingOrderV1/DeleteOTCWorkingOrderV1Request.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.deleteOTCWorkingOrderV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Delete working order request. 8 | N.B.: This request requires a payload with no request attributes (e.g. empty json string: {} ) 9 | */ 10 | @JsonIgnoreProperties(ignoreUnknown = true) 11 | public class DeleteOTCWorkingOrderV1Request { 12 | 13 | } 14 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/deleteOTCWorkingOrderV1/DeleteOTCWorkingOrderV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.deleteOTCWorkingOrderV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Delete working order response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class DeleteOTCWorkingOrderV1Response { 11 | 12 | /* 13 | Deal reference of the transaction 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/deleteOTCWorkingOrderV2/DeleteOTCWorkingOrderV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.deleteOTCWorkingOrderV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Delete working order response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class DeleteOTCWorkingOrderV2Response { 11 | 12 | /* 13 | Deal reference of the transaction 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/updateOTCWorkingOrderV1/TimeInForce.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.updateOTCWorkingOrderV1; 2 | /* 3 | Time in force 4 | */ 5 | public enum TimeInForce { 6 | 7 | /* 8 | Good until cancelled 9 | */ 10 | GOOD_TILL_CANCELLED, 11 | /* 12 | Good until specified date 13 | */ 14 | GOOD_TILL_DATE 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/updateOTCWorkingOrderV1/Type.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.updateOTCWorkingOrderV1; 2 | /* 3 | Working order type 4 | */ 5 | public enum Type { 6 | 7 | /* 8 | Limit working order 9 | */ 10 | LIMIT, 11 | /* 12 | Stop working order 13 | */ 14 | STOP 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/updateOTCWorkingOrderV1/UpdateOTCWorkingOrderV1Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.updateOTCWorkingOrderV1; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Edit working order response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class UpdateOTCWorkingOrderV1Response { 11 | 12 | /* 13 | Deal reference of the transaction 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/updateOTCWorkingOrderV2/TimeInForce.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.updateOTCWorkingOrderV2; 2 | /* 3 | Time in force 4 | */ 5 | public enum TimeInForce { 6 | 7 | /* 8 | Good until cancelled 9 | */ 10 | GOOD_TILL_CANCELLED, 11 | /* 12 | Good until specified date 13 | */ 14 | GOOD_TILL_DATE 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/updateOTCWorkingOrderV2/Type.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.updateOTCWorkingOrderV2; 2 | /* 3 | Working order type 4 | */ 5 | public enum Type { 6 | 7 | /* 8 | Limit working order 9 | */ 10 | LIMIT, 11 | /* 12 | Stop working order 13 | */ 14 | STOP 15 | } 16 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/rest/dto/workingorders/otc/updateOTCWorkingOrderV2/UpdateOTCWorkingOrderV2Response.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.rest.dto.workingorders.otc.updateOTCWorkingOrderV2; 2 | 3 | import java.math.BigDecimal; 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 5 | 6 | /* 7 | Edit working order response 8 | */ 9 | @JsonIgnoreProperties(ignoreUnknown = true) 10 | public class UpdateOTCWorkingOrderV2Response { 11 | 12 | /* 13 | Deal reference of the transaction 14 | */ 15 | private String dealReference; 16 | 17 | public String getDealReference() { return dealReference; } 18 | public void setDealReference(String dealReference) { this.dealReference=dealReference; } 19 | } 20 | -------------------------------------------------------------------------------- /ig-webapi-java-client/src/main/java/com/iggroup/webapi/samples/client/streaming/HandyTableListenerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples.client.streaming; 2 | 3 | import com.lightstreamer.ls_client.HandyTableListener; 4 | import com.lightstreamer.ls_client.SubscribedTableKey; 5 | import com.lightstreamer.ls_client.UpdateInfo; 6 | 7 | public class HandyTableListenerAdapter implements HandyTableListener { 8 | 9 | private SubscribedTableKey subscribedTableKey; 10 | 11 | @Override 12 | public void onUpdate(int i, String s, UpdateInfo updateInfo) { 13 | } 14 | 15 | @Override 16 | public void onSnapshotEnd(int i, String s) { 17 | } 18 | 19 | @Override 20 | public void onRawUpdatesLost(int i, String s, int i2) { 21 | } 22 | 23 | @Override 24 | public void onUnsubscr(int i, String s) { 25 | } 26 | 27 | @Override 28 | public void onUnsubscrAll() { 29 | } 30 | 31 | public SubscribedTableKey getSubscribedTableKey() { 32 | return subscribedTableKey; 33 | } 34 | 35 | public void setSubscribedTableKey(SubscribedTableKey subscribedTableKey) { 36 | this.subscribedTableKey = subscribedTableKey; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /ig-webapi-java-sample-console-ui/src/main/java/com/iggroup/webapi/samples/BeanConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples; 2 | 3 | import org.apache.http.client.HttpClient; 4 | import org.apache.http.impl.client.HttpClients; 5 | import org.springframework.beans.factory.annotation.Qualifier; 6 | import org.springframework.context.annotation.Bean; 7 | import org.springframework.context.annotation.Configuration; 8 | import org.springframework.context.annotation.ImportResource; 9 | 10 | @Configuration 11 | @ImportResource(value = "application-spring-context.xml") 12 | public class BeanConfiguration { 13 | 14 | @Bean 15 | public HttpClient httpClient() { 16 | return HttpClients.createDefault(); 17 | } 18 | 19 | @Bean 20 | @Qualifier(value = "ig.api.domain.URL") 21 | public String igApiDomainURL() { 22 | return PropertiesUtil.getProperty("environment.URL"); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-sample-console-ui/src/main/resources/environment.properties: -------------------------------------------------------------------------------- 1 | ig.api.domain.URL = https://demo-api.ig.com/gateway/deal 2 | -------------------------------------------------------------------------------- /ig-webapi-java-sample-console-ui/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %msg%n 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ig-webapi-java-sample-console/src/main/java/com/iggroup/webapi/samples/BeanConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.iggroup.webapi.samples; 2 | 3 | import org.apache.http.client.HttpClient; 4 | import org.apache.http.impl.client.HttpClients; 5 | import org.springframework.beans.factory.annotation.Qualifier; 6 | import org.springframework.context.annotation.Bean; 7 | import org.springframework.context.annotation.Configuration; 8 | import org.springframework.context.annotation.ImportResource; 9 | 10 | @Configuration 11 | @ImportResource(value = "application-spring-context.xml") 12 | public class BeanConfiguration { 13 | 14 | @Bean 15 | public HttpClient httpClient() { 16 | return HttpClients.createDefault(); 17 | } 18 | 19 | @Bean 20 | @Qualifier(value = "ig.api.domain.URL") 21 | public String igApiDomainURL() { 22 | return PropertiesUtil.getProperty("environment.URL"); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /ig-webapi-java-sample-console/src/main/resources/environment.properties: -------------------------------------------------------------------------------- 1 | ig.api.domain.URL = https://demo-api.ig.com/gateway/deal 2 | -------------------------------------------------------------------------------- /ig-webapi-java-sample-console/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %msg%n 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | --------------------------------------------------------------------------------