target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test public void testAsByteBuffer() throws Exception { String expectedData = "hello world"; Document document = XpathUtils.documentFrom(DOCUMENT); ByteBuffer byteBuffer = XpathUtils.asByteBuffer("Foo/Blob", document); assertEquals(expectedData.length(), byteBuffer.limit()); String data = new String(byteBuffer.array(), StringUtils.UTF8); assertEquals(expectedData, data); assertEquals(null, XpathUtils.asByteBuffer("Foo/Empty", document)); }
public static ByteBuffer asByteBuffer(String expression, Node node) throws XPathExpressionException { String base64EncodedString = evaluateAsString(expression, node); if (isEmptyString(base64EncodedString)) return null; if (!isEmpty(node)) { byte[] decodedBytes = Base64.decode(base64EncodedString); return ByteBuffer.wrap(decodedBytes); } return null; }
XpathUtils { public static ByteBuffer asByteBuffer(String expression, Node node) throws XPathExpressionException { String base64EncodedString = evaluateAsString(expression, node); if (isEmptyString(base64EncodedString)) return null; if (!isEmpty(node)) { byte[] decodedBytes = Base64.decode(base64EncodedString); return ByteBuffer.wrap(decodedBytes); } return null; } }
XpathUtils { public static ByteBuffer asByteBuffer(String expression, Node node) throws XPathExpressionException { String base64EncodedString = evaluateAsString(expression, node); if (isEmptyString(base64EncodedString)) return null; if (!isEmpty(node)) { byte[] decodedBytes = Base64.decode(base64EncodedString); return ByteBuffer.wrap(decodedBytes); } return null; } }
XpathUtils { public static ByteBuffer asByteBuffer(String expression, Node node) throws XPathExpressionException { String base64EncodedString = evaluateAsString(expression, node); if (isEmptyString(base64EncodedString)) return null; if (!isEmpty(node)) { byte[] decodedBytes = Base64.decode(base64EncodedString); return ByteBuffer.wrap(decodedBytes); } return null; } static Document documentFrom(InputStream is); static Document documentFrom(String xml); static Document documentFrom(URL url); static Double asDouble(String expression, Node node); static String asString(String expression, Node node); static Integer asInteger(String expression, Node node); static Boolean asBoolean(String expression, Node node); static Float asFloat(String expression, Node node); static Long asLong(String expression, Node node); static Byte asByte(String expression, Node node); static Date asDate(String expression, Node node); static ByteBuffer asByteBuffer(String expression, Node node); static boolean isEmpty(Node node); static int nodeLength(NodeList list); static Node asNode(String nodeName, Node node); static XPath xpath(); }
XpathUtils { public static ByteBuffer asByteBuffer(String expression, Node node) throws XPathExpressionException { String base64EncodedString = evaluateAsString(expression, node); if (isEmptyString(base64EncodedString)) return null; if (!isEmpty(node)) { byte[] decodedBytes = Base64.decode(base64EncodedString); return ByteBuffer.wrap(decodedBytes); } return null; } static Document documentFrom(InputStream is); static Document documentFrom(String xml); static Document documentFrom(URL url); static Double asDouble(String expression, Node node); static String asString(String expression, Node node); static Integer asInteger(String expression, Node node); static Boolean asBoolean(String expression, Node node); static Float asFloat(String expression, Node node); static Long asLong(String expression, Node node); static Byte asByte(String expression, Node node); static Date asDate(String expression, Node node); static ByteBuffer asByteBuffer(String expression, Node node); static boolean isEmpty(Node node); static int nodeLength(NodeList list); static Node asNode(String nodeName, Node node); static XPath xpath(); }
@Test public void testGetRegionsForService() { List<Region> regions = RegionUtils.getRegionsForService(ServiceAbbreviations.SimpleDB); assertEquals(regions.size(), 8); boolean usEast1 = false; boolean usWest1 = false; for (Region curr : regions) { if (curr.getName().equalsIgnoreCase("us-east-1")) { usEast1 = true; assertEquals(curr.getServiceEndpoint(ServiceAbbreviations.SimpleDB), "sdb.amazonaws.com"); } if (curr.getName().equalsIgnoreCase("us-west-1")) usWest1 = true; } assertTrue(usEast1); assertTrue(usWest1); }
@SuppressWarnings("checkstyle:hiddenfield") public static synchronized List<Region> getRegionsForService(String serviceAbbreviation) { List<Region> regions = new LinkedList<Region>(); for (Region r : getRegions()) { if (r.isServiceSupported(serviceAbbreviation)) { regions.add(r); } } return regions; }
RegionUtils { @SuppressWarnings("checkstyle:hiddenfield") public static synchronized List<Region> getRegionsForService(String serviceAbbreviation) { List<Region> regions = new LinkedList<Region>(); for (Region r : getRegions()) { if (r.isServiceSupported(serviceAbbreviation)) { regions.add(r); } } return regions; } }
RegionUtils { @SuppressWarnings("checkstyle:hiddenfield") public static synchronized List<Region> getRegionsForService(String serviceAbbreviation) { List<Region> regions = new LinkedList<Region>(); for (Region r : getRegions()) { if (r.isServiceSupported(serviceAbbreviation)) { regions.add(r); } } return regions; } }
RegionUtils { @SuppressWarnings("checkstyle:hiddenfield") public static synchronized List<Region> getRegionsForService(String serviceAbbreviation) { List<Region> regions = new LinkedList<Region>(); for (Region r : getRegions()) { if (r.isServiceSupported(serviceAbbreviation)) { regions.add(r); } } return regions; } static synchronized List<Region> getRegions(); @SuppressWarnings("checkstyle:hiddenfield") static synchronized List<Region> getRegionsForService(String serviceAbbreviation); static Region getRegion(String regionName); static Region getRegionByEndpoint(String endpoint); static synchronized void init(); }
RegionUtils { @SuppressWarnings("checkstyle:hiddenfield") public static synchronized List<Region> getRegionsForService(String serviceAbbreviation) { List<Region> regions = new LinkedList<Region>(); for (Region r : getRegions()) { if (r.isServiceSupported(serviceAbbreviation)) { regions.add(r); } } return regions; } static synchronized List<Region> getRegions(); @SuppressWarnings("checkstyle:hiddenfield") static synchronized List<Region> getRegionsForService(String serviceAbbreviation); static Region getRegion(String regionName); static Region getRegionByEndpoint(String endpoint); static synchronized void init(); }
@Test public void emptyClient() { final AmazonWebServiceClient client = new AmazonWebServiceClient(new ClientConfiguration()) { }; try { client.getServiceName(); } catch (final IllegalStateException exception) { } }
public String getServiceName() { return getServiceNameIntern(); }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); static final boolean LOGGING_AWS_REQUEST_METRIC; }
@Test public void testOverrideSigner() { final ClientConfiguration config = new ClientConfiguration(); config.setSignerOverride("QueryStringSignerType"); final AmazonTestClient client = new AmazonTestClient(config); Assert.assertTrue(client.getSigner() instanceof QueryStringSigner); }
protected Signer getSigner() { return signer; }
AmazonWebServiceClient { protected Signer getSigner() { return signer; } }
AmazonWebServiceClient { protected Signer getSigner() { return signer; } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); }
AmazonWebServiceClient { protected Signer getSigner() { return signer; } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); }
AmazonWebServiceClient { protected Signer getSigner() { return signer; } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); static final boolean LOGGING_AWS_REQUEST_METRIC; }
@Test public void setServiceNameIntern() { final AmazonTestClient client = new AmazonTestClient(); assertEquals(client.getServiceName(), client.getServiceNameIntern()); final String serviceNameOverride = "foo"; assertFalse(serviceNameOverride.equals(client.getServiceName())); client.setServiceNameIntern(serviceNameOverride); assertEquals(serviceNameOverride, client.getServiceName()); }
@SuppressWarnings("checkstyle:hiddenfield") public final void setServiceNameIntern(final String serviceName) { this.serviceName = serviceName; }
AmazonWebServiceClient { @SuppressWarnings("checkstyle:hiddenfield") public final void setServiceNameIntern(final String serviceName) { this.serviceName = serviceName; } }
AmazonWebServiceClient { @SuppressWarnings("checkstyle:hiddenfield") public final void setServiceNameIntern(final String serviceName) { this.serviceName = serviceName; } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); }
AmazonWebServiceClient { @SuppressWarnings("checkstyle:hiddenfield") public final void setServiceNameIntern(final String serviceName) { this.serviceName = serviceName; } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); }
AmazonWebServiceClient { @SuppressWarnings("checkstyle:hiddenfield") public final void setServiceNameIntern(final String serviceName) { this.serviceName = serviceName; } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); static final boolean LOGGING_AWS_REQUEST_METRIC; }
@Test public void testGetServiceNameWithExplicitInternalConfiguration() { final AmazonSimpleDBClient testClient = new AmazonSimpleDBClient(); assertEquals(testClient.getServiceName(), "sdb"); }
public String getServiceName() { return getServiceNameIntern(); }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); static final boolean LOGGING_AWS_REQUEST_METRIC; }
@Test public void testGetServiceNameWithAWSPrefix() { final AWSTestClient testClient = new AWSTestClient(); assertEquals(testClient.getServiceName(), "test"); }
public String getServiceName() { return getServiceNameIntern(); }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); }
AmazonWebServiceClient { public String getServiceName() { return getServiceNameIntern(); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); static final boolean LOGGING_AWS_REQUEST_METRIC; }
@Test public void testSetEndpoint() throws URISyntaxException { final AmazonTestClient client = new AmazonTestClient(); client.setEndpoint("http: assertEquals(client.endpoint, new URI("http: }
public void setEndpoint(final String endpoint) { final URI uri = toURI(endpoint); @SuppressWarnings("checkstyle:hiddenfield") final Signer signer = computeSignerByURI(uri, signerRegionOverride, false); synchronized (this) { this.endpoint = uri; this.signer = signer; } }
AmazonWebServiceClient { public void setEndpoint(final String endpoint) { final URI uri = toURI(endpoint); @SuppressWarnings("checkstyle:hiddenfield") final Signer signer = computeSignerByURI(uri, signerRegionOverride, false); synchronized (this) { this.endpoint = uri; this.signer = signer; } } }
AmazonWebServiceClient { public void setEndpoint(final String endpoint) { final URI uri = toURI(endpoint); @SuppressWarnings("checkstyle:hiddenfield") final Signer signer = computeSignerByURI(uri, signerRegionOverride, false); synchronized (this) { this.endpoint = uri; this.signer = signer; } } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); }
AmazonWebServiceClient { public void setEndpoint(final String endpoint) { final URI uri = toURI(endpoint); @SuppressWarnings("checkstyle:hiddenfield") final Signer signer = computeSignerByURI(uri, signerRegionOverride, false); synchronized (this) { this.endpoint = uri; this.signer = signer; } } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); }
AmazonWebServiceClient { public void setEndpoint(final String endpoint) { final URI uri = toURI(endpoint); @SuppressWarnings("checkstyle:hiddenfield") final Signer signer = computeSignerByURI(uri, signerRegionOverride, false); synchronized (this) { this.endpoint = uri; this.signer = signer; } } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); static final boolean LOGGING_AWS_REQUEST_METRIC; }
@Test public void testSetSignerRegionOverride() { final AmazonTestClient client = new AmazonTestClient(); client.setSignerRegionOverride("test"); assertEquals(client.getSignerRegionOverride(), "test"); }
@SuppressWarnings("checkstyle:hiddenfield") public final void setSignerRegionOverride(final String signerRegionOverride) { final Signer signer = computeSignerByURI(endpoint, signerRegionOverride, true); synchronized (this) { this.signer = signer; this.signerRegionOverride = signerRegionOverride; } }
AmazonWebServiceClient { @SuppressWarnings("checkstyle:hiddenfield") public final void setSignerRegionOverride(final String signerRegionOverride) { final Signer signer = computeSignerByURI(endpoint, signerRegionOverride, true); synchronized (this) { this.signer = signer; this.signerRegionOverride = signerRegionOverride; } } }
AmazonWebServiceClient { @SuppressWarnings("checkstyle:hiddenfield") public final void setSignerRegionOverride(final String signerRegionOverride) { final Signer signer = computeSignerByURI(endpoint, signerRegionOverride, true); synchronized (this) { this.signer = signer; this.signerRegionOverride = signerRegionOverride; } } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); }
AmazonWebServiceClient { @SuppressWarnings("checkstyle:hiddenfield") public final void setSignerRegionOverride(final String signerRegionOverride) { final Signer signer = computeSignerByURI(endpoint, signerRegionOverride, true); synchronized (this) { this.signer = signer; this.signerRegionOverride = signerRegionOverride; } } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); }
AmazonWebServiceClient { @SuppressWarnings("checkstyle:hiddenfield") public final void setSignerRegionOverride(final String signerRegionOverride) { final Signer signer = computeSignerByURI(endpoint, signerRegionOverride, true); synchronized (this) { this.signer = signer; this.signerRegionOverride = signerRegionOverride; } } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); static final boolean LOGGING_AWS_REQUEST_METRIC; }
@Test public void testCreateExecutionContextWithAmazonWebServiceRequest() { final AmazonWebServiceRequest awsr = new TestRequest(); final AmazonTestClient client = new AmazonTestClient(); final ExecutionContext ec = client.createExecutionContext(awsr); assertEquals(client.requestHandler2s, ec.getRequestHandler2s()); }
protected ExecutionContext createExecutionContext(final AmazonWebServiceRequest req) { final boolean isMetricsEnabled = isRequestMetricsEnabled(req) || isProfilingEnabled(); return new ExecutionContext(requestHandler2s, isMetricsEnabled, this); }
AmazonWebServiceClient { protected ExecutionContext createExecutionContext(final AmazonWebServiceRequest req) { final boolean isMetricsEnabled = isRequestMetricsEnabled(req) || isProfilingEnabled(); return new ExecutionContext(requestHandler2s, isMetricsEnabled, this); } }
AmazonWebServiceClient { protected ExecutionContext createExecutionContext(final AmazonWebServiceRequest req) { final boolean isMetricsEnabled = isRequestMetricsEnabled(req) || isProfilingEnabled(); return new ExecutionContext(requestHandler2s, isMetricsEnabled, this); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); }
AmazonWebServiceClient { protected ExecutionContext createExecutionContext(final AmazonWebServiceRequest req) { final boolean isMetricsEnabled = isRequestMetricsEnabled(req) || isProfilingEnabled(); return new ExecutionContext(requestHandler2s, isMetricsEnabled, this); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); }
AmazonWebServiceClient { protected ExecutionContext createExecutionContext(final AmazonWebServiceRequest req) { final boolean isMetricsEnabled = isRequestMetricsEnabled(req) || isProfilingEnabled(); return new ExecutionContext(requestHandler2s, isMetricsEnabled, this); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); static final boolean LOGGING_AWS_REQUEST_METRIC; }
@Test public void testCreateExecutionContextWithRequest() { final AmazonWebServiceRequest awsr = new TestRequest(); final Request<String> req = new DefaultRequest<String>(awsr, "test"); final AmazonTestClient client = new AmazonTestClient(); final ExecutionContext ec = client.createExecutionContext(req); assertEquals(client.requestHandler2s, ec.getRequestHandler2s()); }
protected ExecutionContext createExecutionContext(final AmazonWebServiceRequest req) { final boolean isMetricsEnabled = isRequestMetricsEnabled(req) || isProfilingEnabled(); return new ExecutionContext(requestHandler2s, isMetricsEnabled, this); }
AmazonWebServiceClient { protected ExecutionContext createExecutionContext(final AmazonWebServiceRequest req) { final boolean isMetricsEnabled = isRequestMetricsEnabled(req) || isProfilingEnabled(); return new ExecutionContext(requestHandler2s, isMetricsEnabled, this); } }
AmazonWebServiceClient { protected ExecutionContext createExecutionContext(final AmazonWebServiceRequest req) { final boolean isMetricsEnabled = isRequestMetricsEnabled(req) || isProfilingEnabled(); return new ExecutionContext(requestHandler2s, isMetricsEnabled, this); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); }
AmazonWebServiceClient { protected ExecutionContext createExecutionContext(final AmazonWebServiceRequest req) { final boolean isMetricsEnabled = isRequestMetricsEnabled(req) || isProfilingEnabled(); return new ExecutionContext(requestHandler2s, isMetricsEnabled, this); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); }
AmazonWebServiceClient { protected ExecutionContext createExecutionContext(final AmazonWebServiceRequest req) { final boolean isMetricsEnabled = isRequestMetricsEnabled(req) || isProfilingEnabled(); return new ExecutionContext(requestHandler2s, isMetricsEnabled, this); } protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final RequestMetricCollector requestMetricCollector); protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient); @Deprecated protected AmazonWebServiceClient( final ClientConfiguration clientConfiguration, final HttpClient httpClient, final RequestMetricCollector requestMetricCollector); void setEndpoint(final String endpoint); String getEndpoint(); String getEndpointPrefix(); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setEndpoint(final String endpoint, final String serviceName, final String regionId); @SuppressWarnings("checkstyle:hiddenfield") Signer getSignerByURI(final URI uri); @SuppressWarnings("checkstyle:hiddenfield") void setRegion(final Region region); @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setConfiguration(final ClientConfiguration clientConfiguration); void shutdown(); @Deprecated void addRequestHandler(final RequestHandler requestHandler); void addRequestHandler(final RequestHandler2 requestHandler2); @Deprecated void removeRequestHandler(final RequestHandler requestHandler); void removeRequestHandler(final RequestHandler2 requestHandler2); void setTimeOffset(final int timeOffset); @SuppressWarnings("checkstyle:hiddenfield") AmazonWebServiceClient withTimeOffset(final int timeOffset); int getTimeOffset(); @Deprecated RequestMetricCollector getRequestMetricsCollector(); String getServiceName(); @SuppressWarnings("checkstyle:hiddenfield") final void setServiceNameIntern(final String serviceName); final String getSignerRegionOverride(); @SuppressWarnings("checkstyle:hiddenfield") final void setSignerRegionOverride(final String signerRegionOverride); static final boolean LOGGING_AWS_REQUEST_METRIC; }
@Test public void testSetUserAgentDefault() { ClientConfiguration config = new ClientConfiguration(); client = new AmazonHttpClient(config); final Request<?> request = new DefaultRequest<String>("ServiceName"); client.setUserAgent(request); String userAgent = request.getHeaders().get("User-Agent"); assertEquals("same user agent", ClientConfiguration.DEFAULT_USER_AGENT, userAgent); }
void setUserAgent(Request<?> request) { String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; final AmazonWebServiceRequest awsreq = request.getOriginalRequest(); if (awsreq != null) { final RequestClientOptions opts = awsreq.getRequestClientOptions(); if (opts != null) { final String userAgentMarker = opts.getClientMarker(Marker.USER_AGENT); if (userAgentMarker != null) { userAgent = createUserAgentString(userAgent, userAgentMarker); } } } if (!ClientConfiguration.DEFAULT_USER_AGENT.equals(config.getUserAgent())) { userAgent = createUserAgentString(userAgent, config.getUserAgent()); } request.addHeader(HEADER_USER_AGENT, userAgent); }
AmazonHttpClient { void setUserAgent(Request<?> request) { String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; final AmazonWebServiceRequest awsreq = request.getOriginalRequest(); if (awsreq != null) { final RequestClientOptions opts = awsreq.getRequestClientOptions(); if (opts != null) { final String userAgentMarker = opts.getClientMarker(Marker.USER_AGENT); if (userAgentMarker != null) { userAgent = createUserAgentString(userAgent, userAgentMarker); } } } if (!ClientConfiguration.DEFAULT_USER_AGENT.equals(config.getUserAgent())) { userAgent = createUserAgentString(userAgent, config.getUserAgent()); } request.addHeader(HEADER_USER_AGENT, userAgent); } }
AmazonHttpClient { void setUserAgent(Request<?> request) { String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; final AmazonWebServiceRequest awsreq = request.getOriginalRequest(); if (awsreq != null) { final RequestClientOptions opts = awsreq.getRequestClientOptions(); if (opts != null) { final String userAgentMarker = opts.getClientMarker(Marker.USER_AGENT); if (userAgentMarker != null) { userAgent = createUserAgentString(userAgent, userAgentMarker); } } } if (!ClientConfiguration.DEFAULT_USER_AGENT.equals(config.getUserAgent())) { userAgent = createUserAgentString(userAgent, config.getUserAgent()); } request.addHeader(HEADER_USER_AGENT, userAgent); } AmazonHttpClient(ClientConfiguration config); @Deprecated AmazonHttpClient(ClientConfiguration config, RequestMetricCollector requestMetricCollector); AmazonHttpClient(ClientConfiguration config, HttpClient httpClient); @Deprecated AmazonHttpClient(ClientConfiguration config, HttpClient httpClient, RequestMetricCollector requestMetricCollector); }
AmazonHttpClient { void setUserAgent(Request<?> request) { String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; final AmazonWebServiceRequest awsreq = request.getOriginalRequest(); if (awsreq != null) { final RequestClientOptions opts = awsreq.getRequestClientOptions(); if (opts != null) { final String userAgentMarker = opts.getClientMarker(Marker.USER_AGENT); if (userAgentMarker != null) { userAgent = createUserAgentString(userAgent, userAgentMarker); } } } if (!ClientConfiguration.DEFAULT_USER_AGENT.equals(config.getUserAgent())) { userAgent = createUserAgentString(userAgent, config.getUserAgent()); } request.addHeader(HEADER_USER_AGENT, userAgent); } AmazonHttpClient(ClientConfiguration config); @Deprecated AmazonHttpClient(ClientConfiguration config, RequestMetricCollector requestMetricCollector); AmazonHttpClient(ClientConfiguration config, HttpClient httpClient); @Deprecated AmazonHttpClient(ClientConfiguration config, HttpClient httpClient, RequestMetricCollector requestMetricCollector); @Deprecated ResponseMetadata getResponseMetadataForRequest(AmazonWebServiceRequest request); Response<T> execute(Request<?> request, HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler, HttpResponseHandler<AmazonServiceException> errorResponseHandler, ExecutionContext executionContext); void shutdown(); RequestMetricCollector getRequestMetricCollector(); }
AmazonHttpClient { void setUserAgent(Request<?> request) { String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; final AmazonWebServiceRequest awsreq = request.getOriginalRequest(); if (awsreq != null) { final RequestClientOptions opts = awsreq.getRequestClientOptions(); if (opts != null) { final String userAgentMarker = opts.getClientMarker(Marker.USER_AGENT); if (userAgentMarker != null) { userAgent = createUserAgentString(userAgent, userAgentMarker); } } } if (!ClientConfiguration.DEFAULT_USER_AGENT.equals(config.getUserAgent())) { userAgent = createUserAgentString(userAgent, config.getUserAgent()); } request.addHeader(HEADER_USER_AGENT, userAgent); } AmazonHttpClient(ClientConfiguration config); @Deprecated AmazonHttpClient(ClientConfiguration config, RequestMetricCollector requestMetricCollector); AmazonHttpClient(ClientConfiguration config, HttpClient httpClient); @Deprecated AmazonHttpClient(ClientConfiguration config, HttpClient httpClient, RequestMetricCollector requestMetricCollector); @Deprecated ResponseMetadata getResponseMetadataForRequest(AmazonWebServiceRequest request); Response<T> execute(Request<?> request, HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler, HttpResponseHandler<AmazonServiceException> errorResponseHandler, ExecutionContext executionContext); void shutdown(); RequestMetricCollector getRequestMetricCollector(); }
@Test public void testSetUserAgentCustom() { String versionInfoUserAgent = ClientConfiguration.DEFAULT_USER_AGENT; String customUserAgent = "custom_user_agent"; String requestUserAgent = "request_user_agent"; String targetUserAgent = versionInfoUserAgent + " " + requestUserAgent + " " + customUserAgent; AmazonWebServiceRequest originalRequest = new AmazonWebServiceRequest() { }; RequestClientOptions opts = originalRequest.getRequestClientOptions(); opts.appendUserAgent("request_user_agent"); ClientConfiguration config = new ClientConfiguration(); config.setUserAgent("custom_user_agent"); client = new AmazonHttpClient(config); final Request<?> request = new DefaultRequest<String>(originalRequest, "ServiceName"); client.setUserAgent(request); String userAgent = request.getHeaders().get("User-Agent"); assertEquals("same user agent", targetUserAgent, userAgent); }
void setUserAgent(Request<?> request) { String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; final AmazonWebServiceRequest awsreq = request.getOriginalRequest(); if (awsreq != null) { final RequestClientOptions opts = awsreq.getRequestClientOptions(); if (opts != null) { final String userAgentMarker = opts.getClientMarker(Marker.USER_AGENT); if (userAgentMarker != null) { userAgent = createUserAgentString(userAgent, userAgentMarker); } } } if (!ClientConfiguration.DEFAULT_USER_AGENT.equals(config.getUserAgent())) { userAgent = createUserAgentString(userAgent, config.getUserAgent()); } request.addHeader(HEADER_USER_AGENT, userAgent); }
AmazonHttpClient { void setUserAgent(Request<?> request) { String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; final AmazonWebServiceRequest awsreq = request.getOriginalRequest(); if (awsreq != null) { final RequestClientOptions opts = awsreq.getRequestClientOptions(); if (opts != null) { final String userAgentMarker = opts.getClientMarker(Marker.USER_AGENT); if (userAgentMarker != null) { userAgent = createUserAgentString(userAgent, userAgentMarker); } } } if (!ClientConfiguration.DEFAULT_USER_AGENT.equals(config.getUserAgent())) { userAgent = createUserAgentString(userAgent, config.getUserAgent()); } request.addHeader(HEADER_USER_AGENT, userAgent); } }
AmazonHttpClient { void setUserAgent(Request<?> request) { String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; final AmazonWebServiceRequest awsreq = request.getOriginalRequest(); if (awsreq != null) { final RequestClientOptions opts = awsreq.getRequestClientOptions(); if (opts != null) { final String userAgentMarker = opts.getClientMarker(Marker.USER_AGENT); if (userAgentMarker != null) { userAgent = createUserAgentString(userAgent, userAgentMarker); } } } if (!ClientConfiguration.DEFAULT_USER_AGENT.equals(config.getUserAgent())) { userAgent = createUserAgentString(userAgent, config.getUserAgent()); } request.addHeader(HEADER_USER_AGENT, userAgent); } AmazonHttpClient(ClientConfiguration config); @Deprecated AmazonHttpClient(ClientConfiguration config, RequestMetricCollector requestMetricCollector); AmazonHttpClient(ClientConfiguration config, HttpClient httpClient); @Deprecated AmazonHttpClient(ClientConfiguration config, HttpClient httpClient, RequestMetricCollector requestMetricCollector); }
AmazonHttpClient { void setUserAgent(Request<?> request) { String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; final AmazonWebServiceRequest awsreq = request.getOriginalRequest(); if (awsreq != null) { final RequestClientOptions opts = awsreq.getRequestClientOptions(); if (opts != null) { final String userAgentMarker = opts.getClientMarker(Marker.USER_AGENT); if (userAgentMarker != null) { userAgent = createUserAgentString(userAgent, userAgentMarker); } } } if (!ClientConfiguration.DEFAULT_USER_AGENT.equals(config.getUserAgent())) { userAgent = createUserAgentString(userAgent, config.getUserAgent()); } request.addHeader(HEADER_USER_AGENT, userAgent); } AmazonHttpClient(ClientConfiguration config); @Deprecated AmazonHttpClient(ClientConfiguration config, RequestMetricCollector requestMetricCollector); AmazonHttpClient(ClientConfiguration config, HttpClient httpClient); @Deprecated AmazonHttpClient(ClientConfiguration config, HttpClient httpClient, RequestMetricCollector requestMetricCollector); @Deprecated ResponseMetadata getResponseMetadataForRequest(AmazonWebServiceRequest request); Response<T> execute(Request<?> request, HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler, HttpResponseHandler<AmazonServiceException> errorResponseHandler, ExecutionContext executionContext); void shutdown(); RequestMetricCollector getRequestMetricCollector(); }
AmazonHttpClient { void setUserAgent(Request<?> request) { String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; final AmazonWebServiceRequest awsreq = request.getOriginalRequest(); if (awsreq != null) { final RequestClientOptions opts = awsreq.getRequestClientOptions(); if (opts != null) { final String userAgentMarker = opts.getClientMarker(Marker.USER_AGENT); if (userAgentMarker != null) { userAgent = createUserAgentString(userAgent, userAgentMarker); } } } if (!ClientConfiguration.DEFAULT_USER_AGENT.equals(config.getUserAgent())) { userAgent = createUserAgentString(userAgent, config.getUserAgent()); } request.addHeader(HEADER_USER_AGENT, userAgent); } AmazonHttpClient(ClientConfiguration config); @Deprecated AmazonHttpClient(ClientConfiguration config, RequestMetricCollector requestMetricCollector); AmazonHttpClient(ClientConfiguration config, HttpClient httpClient); @Deprecated AmazonHttpClient(ClientConfiguration config, HttpClient httpClient, RequestMetricCollector requestMetricCollector); @Deprecated ResponseMetadata getResponseMetadataForRequest(AmazonWebServiceRequest request); Response<T> execute(Request<?> request, HttpResponseHandler<AmazonWebServiceResponse<T>> responseHandler, HttpResponseHandler<AmazonServiceException> errorResponseHandler, ExecutionContext executionContext); void shutdown(); RequestMetricCollector getRequestMetricCollector(); }
@Test public void testContextUserAgent() { final String contextUserAgent = "context_user_agent"; context.setContextUserAgent(contextUserAgent); final HttpRequest httpRequest = factory.createHttpRequest(request, clientConfiguration, context); final String userAgent = httpRequest.getHeaders().get(HttpHeader.USER_AGENT); assertTrue("context user agent", userAgent.endsWith(contextUserAgent)); }
public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context); }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context); }
@Test public void testHeaders() { final HttpRequest httpRequest = factory.createHttpRequest(request, clientConfiguration, context); final Map<String, String> headers = httpRequest.getHeaders(); assertNotNull(headers.get(HttpHeader.HOST)); assertNotNull(headers.get(HttpHeader.CONTENT_TYPE)); }
public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context); }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context); }
@Test public void testEnableCompression() { clientConfiguration.withEnableGzip(true); final HttpRequest httpRequest = factory.createHttpRequest(request, clientConfiguration, context); final Map<String, String> headers = httpRequest.getHeaders(); assertEquals("accept encoding is gzip", "gzip", headers.get("Accept-Encoding")); }
public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context); }
HttpRequestFactory { public HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context) { final URI endpoint = request.getEndpoint(); String uri = HttpUtils.appendUri(endpoint.toString(), request.getResourcePath(), true); final String encodedParams = HttpUtils.encodeParameters(request); HttpMethodName method = request.getHttpMethod(); final boolean requestHasNoPayload = request.getContent() != null; final boolean requestIsPost = method == HttpMethodName.POST; final boolean putParamsInUri = !requestIsPost || requestHasNoPayload; if (encodedParams != null && putParamsInUri) { uri += "?" + encodedParams; } final Map<String, String> headers = new HashMap<String, String>(); configureHeaders(headers, request, context, clientConfiguration); InputStream is = request.getContent(); if (method == HttpMethodName.PATCH) { method = HttpMethodName.POST; headers.put("X-HTTP-Method-Override", HttpMethodName.PATCH.toString()); } if (method == HttpMethodName.POST) { if (request.getContent() == null && encodedParams != null) { final byte[] contentBytes = encodedParams.getBytes(StringUtils.UTF8); is = new ByteArrayInputStream(contentBytes); headers.put("Content-Length", String.valueOf(contentBytes.length)); } } if (clientConfiguration.isEnableGzip() && headers.get("Accept-Encoding") == null) { headers.put("Accept-Encoding", "gzip"); } else { headers.put("Accept-Encoding", "identity"); } final HttpRequest httpRequest = new HttpRequest(method.toString(), URI.create(uri), headers, is); httpRequest.setStreaming(request.isStreaming()); return httpRequest; } HttpRequest createHttpRequest(Request<?> request, ClientConfiguration clientConfiguration, ExecutionContext context); }
@Test public void wrapOnce() { ClientConnectionRequest wrapped = ClientConnectionRequestFactory.wrap(noop); assertTrue(wrapped instanceof Wrapped); }
static ClientConnectionRequest wrap(ClientConnectionRequest orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); return (ClientConnectionRequest) Proxy.newProxyInstance( ClientConnectionRequestFactory.class.getClassLoader(), INTERFACES, new Handler(orig)); }
ClientConnectionRequestFactory { static ClientConnectionRequest wrap(ClientConnectionRequest orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); return (ClientConnectionRequest) Proxy.newProxyInstance( ClientConnectionRequestFactory.class.getClassLoader(), INTERFACES, new Handler(orig)); } }
ClientConnectionRequestFactory { static ClientConnectionRequest wrap(ClientConnectionRequest orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); return (ClientConnectionRequest) Proxy.newProxyInstance( ClientConnectionRequestFactory.class.getClassLoader(), INTERFACES, new Handler(orig)); } }
ClientConnectionRequestFactory { static ClientConnectionRequest wrap(ClientConnectionRequest orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); return (ClientConnectionRequest) Proxy.newProxyInstance( ClientConnectionRequestFactory.class.getClassLoader(), INTERFACES, new Handler(orig)); } }
ClientConnectionRequestFactory { static ClientConnectionRequest wrap(ClientConnectionRequest orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); return (ClientConnectionRequest) Proxy.newProxyInstance( ClientConnectionRequestFactory.class.getClassLoader(), INTERFACES, new Handler(orig)); } }
@Test(expected = IllegalArgumentException.class) public void wrapTwice() { ClientConnectionRequest wrapped = ClientConnectionRequestFactory.wrap(noop); ClientConnectionRequestFactory.wrap(wrapped); }
static ClientConnectionRequest wrap(ClientConnectionRequest orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); return (ClientConnectionRequest) Proxy.newProxyInstance( ClientConnectionRequestFactory.class.getClassLoader(), INTERFACES, new Handler(orig)); }
ClientConnectionRequestFactory { static ClientConnectionRequest wrap(ClientConnectionRequest orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); return (ClientConnectionRequest) Proxy.newProxyInstance( ClientConnectionRequestFactory.class.getClassLoader(), INTERFACES, new Handler(orig)); } }
ClientConnectionRequestFactory { static ClientConnectionRequest wrap(ClientConnectionRequest orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); return (ClientConnectionRequest) Proxy.newProxyInstance( ClientConnectionRequestFactory.class.getClassLoader(), INTERFACES, new Handler(orig)); } }
ClientConnectionRequestFactory { static ClientConnectionRequest wrap(ClientConnectionRequest orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); return (ClientConnectionRequest) Proxy.newProxyInstance( ClientConnectionRequestFactory.class.getClassLoader(), INTERFACES, new Handler(orig)); } }
ClientConnectionRequestFactory { static ClientConnectionRequest wrap(ClientConnectionRequest orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); return (ClientConnectionRequest) Proxy.newProxyInstance( ClientConnectionRequestFactory.class.getClassLoader(), INTERFACES, new Handler(orig)); } }
@Test public void wrapOnce() { ClientConnectionManager wrapped = ClientConnectionManagerFactory.wrap(noop); assertTrue(wrapped instanceof Wrapped); }
public static ClientConnectionManager wrap(ClientConnectionManager orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); final Class<?>[] interfaces = new Class<?>[] { ClientConnectionManager.class, Wrapped.class }; return (ClientConnectionManager) Proxy.newProxyInstance( ClientConnectionManagerFactory.class.getClassLoader(), interfaces, new Handler(orig)); }
ClientConnectionManagerFactory { public static ClientConnectionManager wrap(ClientConnectionManager orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); final Class<?>[] interfaces = new Class<?>[] { ClientConnectionManager.class, Wrapped.class }; return (ClientConnectionManager) Proxy.newProxyInstance( ClientConnectionManagerFactory.class.getClassLoader(), interfaces, new Handler(orig)); } }
ClientConnectionManagerFactory { public static ClientConnectionManager wrap(ClientConnectionManager orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); final Class<?>[] interfaces = new Class<?>[] { ClientConnectionManager.class, Wrapped.class }; return (ClientConnectionManager) Proxy.newProxyInstance( ClientConnectionManagerFactory.class.getClassLoader(), interfaces, new Handler(orig)); } }
ClientConnectionManagerFactory { public static ClientConnectionManager wrap(ClientConnectionManager orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); final Class<?>[] interfaces = new Class<?>[] { ClientConnectionManager.class, Wrapped.class }; return (ClientConnectionManager) Proxy.newProxyInstance( ClientConnectionManagerFactory.class.getClassLoader(), interfaces, new Handler(orig)); } static ClientConnectionManager wrap(ClientConnectionManager orig); }
ClientConnectionManagerFactory { public static ClientConnectionManager wrap(ClientConnectionManager orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); final Class<?>[] interfaces = new Class<?>[] { ClientConnectionManager.class, Wrapped.class }; return (ClientConnectionManager) Proxy.newProxyInstance( ClientConnectionManagerFactory.class.getClassLoader(), interfaces, new Handler(orig)); } static ClientConnectionManager wrap(ClientConnectionManager orig); }
@Test(expected = IllegalArgumentException.class) public void wrapTwice() { ClientConnectionManager wrapped = ClientConnectionManagerFactory.wrap(noop); ClientConnectionManagerFactory.wrap(wrapped); }
public static ClientConnectionManager wrap(ClientConnectionManager orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); final Class<?>[] interfaces = new Class<?>[] { ClientConnectionManager.class, Wrapped.class }; return (ClientConnectionManager) Proxy.newProxyInstance( ClientConnectionManagerFactory.class.getClassLoader(), interfaces, new Handler(orig)); }
ClientConnectionManagerFactory { public static ClientConnectionManager wrap(ClientConnectionManager orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); final Class<?>[] interfaces = new Class<?>[] { ClientConnectionManager.class, Wrapped.class }; return (ClientConnectionManager) Proxy.newProxyInstance( ClientConnectionManagerFactory.class.getClassLoader(), interfaces, new Handler(orig)); } }
ClientConnectionManagerFactory { public static ClientConnectionManager wrap(ClientConnectionManager orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); final Class<?>[] interfaces = new Class<?>[] { ClientConnectionManager.class, Wrapped.class }; return (ClientConnectionManager) Proxy.newProxyInstance( ClientConnectionManagerFactory.class.getClassLoader(), interfaces, new Handler(orig)); } }
ClientConnectionManagerFactory { public static ClientConnectionManager wrap(ClientConnectionManager orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); final Class<?>[] interfaces = new Class<?>[] { ClientConnectionManager.class, Wrapped.class }; return (ClientConnectionManager) Proxy.newProxyInstance( ClientConnectionManagerFactory.class.getClassLoader(), interfaces, new Handler(orig)); } static ClientConnectionManager wrap(ClientConnectionManager orig); }
ClientConnectionManagerFactory { public static ClientConnectionManager wrap(ClientConnectionManager orig) { if (orig instanceof Wrapped) throw new IllegalArgumentException(); final Class<?>[] interfaces = new Class<?>[] { ClientConnectionManager.class, Wrapped.class }; return (ClientConnectionManager) Proxy.newProxyInstance( ClientConnectionManagerFactory.class.getClassLoader(), interfaces, new Handler(orig)); } static ClientConnectionManager wrap(ClientConnectionManager orig); }
@Test public void testHandleWithNoCRC32() throws Exception { ByteArrayInputStream bais = new ByteArrayInputStream( "{\"key\" :\"Content\"}".getBytes(StringUtils.UTF8)); HttpResponse response = new HttpResponse.Builder().statusText("testResponse") .statusCode(200).header("testKey", "testValue").content(bais).build(); Unmarshaller<String, JsonUnmarshallerContext> unmarshaller = new Unmarshaller<String, JsonUnmarshallerContext>() { @Override public String unmarshall(JsonUnmarshallerContext in) throws Exception { in.getReader().beginObject(); in.getReader().nextName(); return in.getReader().nextString(); } }; JsonResponseHandler<String> toTest = new JsonResponseHandler<String>(unmarshaller); AmazonWebServiceResponse<String> awsResponse = toTest.handle(response); assertEquals(awsResponse.getResult(), "Content"); }
@Override public AmazonWebServiceResponse<T> handle(HttpResponse response) throws Exception { log.trace("Parsing service response JSON"); final String crc32Checksum = response.getHeaders().get("x-amz-crc32"); CRC32ChecksumCalculatingInputStream crc32ChecksumInputStream = null; InputStream content = response.getRawContent(); if (content == null) { content = new ByteArrayInputStream("{}".getBytes(StringUtils.UTF8)); } log.debug("CRC32Checksum = " + crc32Checksum); log.debug("content encoding = " + response.getHeaders().get("Content-Encoding")); if (crc32Checksum != null) { crc32ChecksumInputStream = new CRC32ChecksumCalculatingInputStream(content); if ("gzip".equals(response.getHeaders().get("Content-Encoding"))) { content = new GZIPInputStream(crc32ChecksumInputStream); } else { content = crc32ChecksumInputStream; } } final AwsJsonReader jsonReader = JsonUtils.getJsonReader(new InputStreamReader(content, StringUtils.UTF8)); try { final AmazonWebServiceResponse<T> awsResponse = new AmazonWebServiceResponse<T>(); final JsonUnmarshallerContext unmarshallerContext = new JsonUnmarshallerContext(jsonReader, response); final T result = responseUnmarshaller.unmarshall(unmarshallerContext); if (crc32Checksum != null) { final long serverSideCRC = Long.parseLong(crc32Checksum); final long clientSideCRC = crc32ChecksumInputStream.getCRC32Checksum(); if (clientSideCRC != serverSideCRC) { throw new CRC32MismatchException( "Client calculated crc32 checksum didn't match that calculated by server side"); } } awsResponse.setResult(result); final Map<String, String> metadata = new HashMap<String, String>(); metadata.put(ResponseMetadata.AWS_REQUEST_ID, response.getHeaders().get("x-amzn-RequestId")); awsResponse.setResponseMetadata(new ResponseMetadata(metadata)); log.trace("Done parsing service response"); return awsResponse; } finally { if (!needsConnectionLeftOpen) { try { jsonReader.close(); } catch (final IOException e) { log.warn("Error closing json parser", e); } } } }
JsonResponseHandler implements HttpResponseHandler<AmazonWebServiceResponse<T>> { @Override public AmazonWebServiceResponse<T> handle(HttpResponse response) throws Exception { log.trace("Parsing service response JSON"); final String crc32Checksum = response.getHeaders().get("x-amz-crc32"); CRC32ChecksumCalculatingInputStream crc32ChecksumInputStream = null; InputStream content = response.getRawContent(); if (content == null) { content = new ByteArrayInputStream("{}".getBytes(StringUtils.UTF8)); } log.debug("CRC32Checksum = " + crc32Checksum); log.debug("content encoding = " + response.getHeaders().get("Content-Encoding")); if (crc32Checksum != null) { crc32ChecksumInputStream = new CRC32ChecksumCalculatingInputStream(content); if ("gzip".equals(response.getHeaders().get("Content-Encoding"))) { content = new GZIPInputStream(crc32ChecksumInputStream); } else { content = crc32ChecksumInputStream; } } final AwsJsonReader jsonReader = JsonUtils.getJsonReader(new InputStreamReader(content, StringUtils.UTF8)); try { final AmazonWebServiceResponse<T> awsResponse = new AmazonWebServiceResponse<T>(); final JsonUnmarshallerContext unmarshallerContext = new JsonUnmarshallerContext(jsonReader, response); final T result = responseUnmarshaller.unmarshall(unmarshallerContext); if (crc32Checksum != null) { final long serverSideCRC = Long.parseLong(crc32Checksum); final long clientSideCRC = crc32ChecksumInputStream.getCRC32Checksum(); if (clientSideCRC != serverSideCRC) { throw new CRC32MismatchException( "Client calculated crc32 checksum didn't match that calculated by server side"); } } awsResponse.setResult(result); final Map<String, String> metadata = new HashMap<String, String>(); metadata.put(ResponseMetadata.AWS_REQUEST_ID, response.getHeaders().get("x-amzn-RequestId")); awsResponse.setResponseMetadata(new ResponseMetadata(metadata)); log.trace("Done parsing service response"); return awsResponse; } finally { if (!needsConnectionLeftOpen) { try { jsonReader.close(); } catch (final IOException e) { log.warn("Error closing json parser", e); } } } } }
JsonResponseHandler implements HttpResponseHandler<AmazonWebServiceResponse<T>> { @Override public AmazonWebServiceResponse<T> handle(HttpResponse response) throws Exception { log.trace("Parsing service response JSON"); final String crc32Checksum = response.getHeaders().get("x-amz-crc32"); CRC32ChecksumCalculatingInputStream crc32ChecksumInputStream = null; InputStream content = response.getRawContent(); if (content == null) { content = new ByteArrayInputStream("{}".getBytes(StringUtils.UTF8)); } log.debug("CRC32Checksum = " + crc32Checksum); log.debug("content encoding = " + response.getHeaders().get("Content-Encoding")); if (crc32Checksum != null) { crc32ChecksumInputStream = new CRC32ChecksumCalculatingInputStream(content); if ("gzip".equals(response.getHeaders().get("Content-Encoding"))) { content = new GZIPInputStream(crc32ChecksumInputStream); } else { content = crc32ChecksumInputStream; } } final AwsJsonReader jsonReader = JsonUtils.getJsonReader(new InputStreamReader(content, StringUtils.UTF8)); try { final AmazonWebServiceResponse<T> awsResponse = new AmazonWebServiceResponse<T>(); final JsonUnmarshallerContext unmarshallerContext = new JsonUnmarshallerContext(jsonReader, response); final T result = responseUnmarshaller.unmarshall(unmarshallerContext); if (crc32Checksum != null) { final long serverSideCRC = Long.parseLong(crc32Checksum); final long clientSideCRC = crc32ChecksumInputStream.getCRC32Checksum(); if (clientSideCRC != serverSideCRC) { throw new CRC32MismatchException( "Client calculated crc32 checksum didn't match that calculated by server side"); } } awsResponse.setResult(result); final Map<String, String> metadata = new HashMap<String, String>(); metadata.put(ResponseMetadata.AWS_REQUEST_ID, response.getHeaders().get("x-amzn-RequestId")); awsResponse.setResponseMetadata(new ResponseMetadata(metadata)); log.trace("Done parsing service response"); return awsResponse; } finally { if (!needsConnectionLeftOpen) { try { jsonReader.close(); } catch (final IOException e) { log.warn("Error closing json parser", e); } } } } JsonResponseHandler(Unmarshaller<T, JsonUnmarshallerContext> responseUnmarshaller); }
JsonResponseHandler implements HttpResponseHandler<AmazonWebServiceResponse<T>> { @Override public AmazonWebServiceResponse<T> handle(HttpResponse response) throws Exception { log.trace("Parsing service response JSON"); final String crc32Checksum = response.getHeaders().get("x-amz-crc32"); CRC32ChecksumCalculatingInputStream crc32ChecksumInputStream = null; InputStream content = response.getRawContent(); if (content == null) { content = new ByteArrayInputStream("{}".getBytes(StringUtils.UTF8)); } log.debug("CRC32Checksum = " + crc32Checksum); log.debug("content encoding = " + response.getHeaders().get("Content-Encoding")); if (crc32Checksum != null) { crc32ChecksumInputStream = new CRC32ChecksumCalculatingInputStream(content); if ("gzip".equals(response.getHeaders().get("Content-Encoding"))) { content = new GZIPInputStream(crc32ChecksumInputStream); } else { content = crc32ChecksumInputStream; } } final AwsJsonReader jsonReader = JsonUtils.getJsonReader(new InputStreamReader(content, StringUtils.UTF8)); try { final AmazonWebServiceResponse<T> awsResponse = new AmazonWebServiceResponse<T>(); final JsonUnmarshallerContext unmarshallerContext = new JsonUnmarshallerContext(jsonReader, response); final T result = responseUnmarshaller.unmarshall(unmarshallerContext); if (crc32Checksum != null) { final long serverSideCRC = Long.parseLong(crc32Checksum); final long clientSideCRC = crc32ChecksumInputStream.getCRC32Checksum(); if (clientSideCRC != serverSideCRC) { throw new CRC32MismatchException( "Client calculated crc32 checksum didn't match that calculated by server side"); } } awsResponse.setResult(result); final Map<String, String> metadata = new HashMap<String, String>(); metadata.put(ResponseMetadata.AWS_REQUEST_ID, response.getHeaders().get("x-amzn-RequestId")); awsResponse.setResponseMetadata(new ResponseMetadata(metadata)); log.trace("Done parsing service response"); return awsResponse; } finally { if (!needsConnectionLeftOpen) { try { jsonReader.close(); } catch (final IOException e) { log.warn("Error closing json parser", e); } } } } JsonResponseHandler(Unmarshaller<T, JsonUnmarshallerContext> responseUnmarshaller); @Override AmazonWebServiceResponse<T> handle(HttpResponse response); @Override boolean needsConnectionLeftOpen(); }
JsonResponseHandler implements HttpResponseHandler<AmazonWebServiceResponse<T>> { @Override public AmazonWebServiceResponse<T> handle(HttpResponse response) throws Exception { log.trace("Parsing service response JSON"); final String crc32Checksum = response.getHeaders().get("x-amz-crc32"); CRC32ChecksumCalculatingInputStream crc32ChecksumInputStream = null; InputStream content = response.getRawContent(); if (content == null) { content = new ByteArrayInputStream("{}".getBytes(StringUtils.UTF8)); } log.debug("CRC32Checksum = " + crc32Checksum); log.debug("content encoding = " + response.getHeaders().get("Content-Encoding")); if (crc32Checksum != null) { crc32ChecksumInputStream = new CRC32ChecksumCalculatingInputStream(content); if ("gzip".equals(response.getHeaders().get("Content-Encoding"))) { content = new GZIPInputStream(crc32ChecksumInputStream); } else { content = crc32ChecksumInputStream; } } final AwsJsonReader jsonReader = JsonUtils.getJsonReader(new InputStreamReader(content, StringUtils.UTF8)); try { final AmazonWebServiceResponse<T> awsResponse = new AmazonWebServiceResponse<T>(); final JsonUnmarshallerContext unmarshallerContext = new JsonUnmarshallerContext(jsonReader, response); final T result = responseUnmarshaller.unmarshall(unmarshallerContext); if (crc32Checksum != null) { final long serverSideCRC = Long.parseLong(crc32Checksum); final long clientSideCRC = crc32ChecksumInputStream.getCRC32Checksum(); if (clientSideCRC != serverSideCRC) { throw new CRC32MismatchException( "Client calculated crc32 checksum didn't match that calculated by server side"); } } awsResponse.setResult(result); final Map<String, String> metadata = new HashMap<String, String>(); metadata.put(ResponseMetadata.AWS_REQUEST_ID, response.getHeaders().get("x-amzn-RequestId")); awsResponse.setResponseMetadata(new ResponseMetadata(metadata)); log.trace("Done parsing service response"); return awsResponse; } finally { if (!needsConnectionLeftOpen) { try { jsonReader.close(); } catch (final IOException e) { log.warn("Error closing json parser", e); } } } } JsonResponseHandler(Unmarshaller<T, JsonUnmarshallerContext> responseUnmarshaller); @Override AmazonWebServiceResponse<T> handle(HttpResponse response); @Override boolean needsConnectionLeftOpen(); @SuppressWarnings({"checkstyle:constantname", "checkstyle:visibilitymodifier"}) public boolean needsConnectionLeftOpen; }
@Test public void testHandleWithNullContent() throws Exception { HttpResponse response = new HttpResponse.Builder().statusText("testResponse") .statusCode(200).header("testKey", "testValue").content(null).build(); Unmarshaller<String, JsonUnmarshallerContext> unmarshaller = new Unmarshaller<String, JsonUnmarshallerContext>() { @Override public String unmarshall(JsonUnmarshallerContext in) throws Exception { in.getReader().beginObject(); assertFalse(in.getReader().hasNext()); return "NullContent"; } }; JsonResponseHandler<String> toTest = new JsonResponseHandler<String>(unmarshaller); AmazonWebServiceResponse<String> awsResponse = toTest.handle(response); assertEquals(awsResponse.getResult(), "NullContent"); }
@Override public AmazonWebServiceResponse<T> handle(HttpResponse response) throws Exception { log.trace("Parsing service response JSON"); final String crc32Checksum = response.getHeaders().get("x-amz-crc32"); CRC32ChecksumCalculatingInputStream crc32ChecksumInputStream = null; InputStream content = response.getRawContent(); if (content == null) { content = new ByteArrayInputStream("{}".getBytes(StringUtils.UTF8)); } log.debug("CRC32Checksum = " + crc32Checksum); log.debug("content encoding = " + response.getHeaders().get("Content-Encoding")); if (crc32Checksum != null) { crc32ChecksumInputStream = new CRC32ChecksumCalculatingInputStream(content); if ("gzip".equals(response.getHeaders().get("Content-Encoding"))) { content = new GZIPInputStream(crc32ChecksumInputStream); } else { content = crc32ChecksumInputStream; } } final AwsJsonReader jsonReader = JsonUtils.getJsonReader(new InputStreamReader(content, StringUtils.UTF8)); try { final AmazonWebServiceResponse<T> awsResponse = new AmazonWebServiceResponse<T>(); final JsonUnmarshallerContext unmarshallerContext = new JsonUnmarshallerContext(jsonReader, response); final T result = responseUnmarshaller.unmarshall(unmarshallerContext); if (crc32Checksum != null) { final long serverSideCRC = Long.parseLong(crc32Checksum); final long clientSideCRC = crc32ChecksumInputStream.getCRC32Checksum(); if (clientSideCRC != serverSideCRC) { throw new CRC32MismatchException( "Client calculated crc32 checksum didn't match that calculated by server side"); } } awsResponse.setResult(result); final Map<String, String> metadata = new HashMap<String, String>(); metadata.put(ResponseMetadata.AWS_REQUEST_ID, response.getHeaders().get("x-amzn-RequestId")); awsResponse.setResponseMetadata(new ResponseMetadata(metadata)); log.trace("Done parsing service response"); return awsResponse; } finally { if (!needsConnectionLeftOpen) { try { jsonReader.close(); } catch (final IOException e) { log.warn("Error closing json parser", e); } } } }
JsonResponseHandler implements HttpResponseHandler<AmazonWebServiceResponse<T>> { @Override public AmazonWebServiceResponse<T> handle(HttpResponse response) throws Exception { log.trace("Parsing service response JSON"); final String crc32Checksum = response.getHeaders().get("x-amz-crc32"); CRC32ChecksumCalculatingInputStream crc32ChecksumInputStream = null; InputStream content = response.getRawContent(); if (content == null) { content = new ByteArrayInputStream("{}".getBytes(StringUtils.UTF8)); } log.debug("CRC32Checksum = " + crc32Checksum); log.debug("content encoding = " + response.getHeaders().get("Content-Encoding")); if (crc32Checksum != null) { crc32ChecksumInputStream = new CRC32ChecksumCalculatingInputStream(content); if ("gzip".equals(response.getHeaders().get("Content-Encoding"))) { content = new GZIPInputStream(crc32ChecksumInputStream); } else { content = crc32ChecksumInputStream; } } final AwsJsonReader jsonReader = JsonUtils.getJsonReader(new InputStreamReader(content, StringUtils.UTF8)); try { final AmazonWebServiceResponse<T> awsResponse = new AmazonWebServiceResponse<T>(); final JsonUnmarshallerContext unmarshallerContext = new JsonUnmarshallerContext(jsonReader, response); final T result = responseUnmarshaller.unmarshall(unmarshallerContext); if (crc32Checksum != null) { final long serverSideCRC = Long.parseLong(crc32Checksum); final long clientSideCRC = crc32ChecksumInputStream.getCRC32Checksum(); if (clientSideCRC != serverSideCRC) { throw new CRC32MismatchException( "Client calculated crc32 checksum didn't match that calculated by server side"); } } awsResponse.setResult(result); final Map<String, String> metadata = new HashMap<String, String>(); metadata.put(ResponseMetadata.AWS_REQUEST_ID, response.getHeaders().get("x-amzn-RequestId")); awsResponse.setResponseMetadata(new ResponseMetadata(metadata)); log.trace("Done parsing service response"); return awsResponse; } finally { if (!needsConnectionLeftOpen) { try { jsonReader.close(); } catch (final IOException e) { log.warn("Error closing json parser", e); } } } } }
JsonResponseHandler implements HttpResponseHandler<AmazonWebServiceResponse<T>> { @Override public AmazonWebServiceResponse<T> handle(HttpResponse response) throws Exception { log.trace("Parsing service response JSON"); final String crc32Checksum = response.getHeaders().get("x-amz-crc32"); CRC32ChecksumCalculatingInputStream crc32ChecksumInputStream = null; InputStream content = response.getRawContent(); if (content == null) { content = new ByteArrayInputStream("{}".getBytes(StringUtils.UTF8)); } log.debug("CRC32Checksum = " + crc32Checksum); log.debug("content encoding = " + response.getHeaders().get("Content-Encoding")); if (crc32Checksum != null) { crc32ChecksumInputStream = new CRC32ChecksumCalculatingInputStream(content); if ("gzip".equals(response.getHeaders().get("Content-Encoding"))) { content = new GZIPInputStream(crc32ChecksumInputStream); } else { content = crc32ChecksumInputStream; } } final AwsJsonReader jsonReader = JsonUtils.getJsonReader(new InputStreamReader(content, StringUtils.UTF8)); try { final AmazonWebServiceResponse<T> awsResponse = new AmazonWebServiceResponse<T>(); final JsonUnmarshallerContext unmarshallerContext = new JsonUnmarshallerContext(jsonReader, response); final T result = responseUnmarshaller.unmarshall(unmarshallerContext); if (crc32Checksum != null) { final long serverSideCRC = Long.parseLong(crc32Checksum); final long clientSideCRC = crc32ChecksumInputStream.getCRC32Checksum(); if (clientSideCRC != serverSideCRC) { throw new CRC32MismatchException( "Client calculated crc32 checksum didn't match that calculated by server side"); } } awsResponse.setResult(result); final Map<String, String> metadata = new HashMap<String, String>(); metadata.put(ResponseMetadata.AWS_REQUEST_ID, response.getHeaders().get("x-amzn-RequestId")); awsResponse.setResponseMetadata(new ResponseMetadata(metadata)); log.trace("Done parsing service response"); return awsResponse; } finally { if (!needsConnectionLeftOpen) { try { jsonReader.close(); } catch (final IOException e) { log.warn("Error closing json parser", e); } } } } JsonResponseHandler(Unmarshaller<T, JsonUnmarshallerContext> responseUnmarshaller); }
JsonResponseHandler implements HttpResponseHandler<AmazonWebServiceResponse<T>> { @Override public AmazonWebServiceResponse<T> handle(HttpResponse response) throws Exception { log.trace("Parsing service response JSON"); final String crc32Checksum = response.getHeaders().get("x-amz-crc32"); CRC32ChecksumCalculatingInputStream crc32ChecksumInputStream = null; InputStream content = response.getRawContent(); if (content == null) { content = new ByteArrayInputStream("{}".getBytes(StringUtils.UTF8)); } log.debug("CRC32Checksum = " + crc32Checksum); log.debug("content encoding = " + response.getHeaders().get("Content-Encoding")); if (crc32Checksum != null) { crc32ChecksumInputStream = new CRC32ChecksumCalculatingInputStream(content); if ("gzip".equals(response.getHeaders().get("Content-Encoding"))) { content = new GZIPInputStream(crc32ChecksumInputStream); } else { content = crc32ChecksumInputStream; } } final AwsJsonReader jsonReader = JsonUtils.getJsonReader(new InputStreamReader(content, StringUtils.UTF8)); try { final AmazonWebServiceResponse<T> awsResponse = new AmazonWebServiceResponse<T>(); final JsonUnmarshallerContext unmarshallerContext = new JsonUnmarshallerContext(jsonReader, response); final T result = responseUnmarshaller.unmarshall(unmarshallerContext); if (crc32Checksum != null) { final long serverSideCRC = Long.parseLong(crc32Checksum); final long clientSideCRC = crc32ChecksumInputStream.getCRC32Checksum(); if (clientSideCRC != serverSideCRC) { throw new CRC32MismatchException( "Client calculated crc32 checksum didn't match that calculated by server side"); } } awsResponse.setResult(result); final Map<String, String> metadata = new HashMap<String, String>(); metadata.put(ResponseMetadata.AWS_REQUEST_ID, response.getHeaders().get("x-amzn-RequestId")); awsResponse.setResponseMetadata(new ResponseMetadata(metadata)); log.trace("Done parsing service response"); return awsResponse; } finally { if (!needsConnectionLeftOpen) { try { jsonReader.close(); } catch (final IOException e) { log.warn("Error closing json parser", e); } } } } JsonResponseHandler(Unmarshaller<T, JsonUnmarshallerContext> responseUnmarshaller); @Override AmazonWebServiceResponse<T> handle(HttpResponse response); @Override boolean needsConnectionLeftOpen(); }
JsonResponseHandler implements HttpResponseHandler<AmazonWebServiceResponse<T>> { @Override public AmazonWebServiceResponse<T> handle(HttpResponse response) throws Exception { log.trace("Parsing service response JSON"); final String crc32Checksum = response.getHeaders().get("x-amz-crc32"); CRC32ChecksumCalculatingInputStream crc32ChecksumInputStream = null; InputStream content = response.getRawContent(); if (content == null) { content = new ByteArrayInputStream("{}".getBytes(StringUtils.UTF8)); } log.debug("CRC32Checksum = " + crc32Checksum); log.debug("content encoding = " + response.getHeaders().get("Content-Encoding")); if (crc32Checksum != null) { crc32ChecksumInputStream = new CRC32ChecksumCalculatingInputStream(content); if ("gzip".equals(response.getHeaders().get("Content-Encoding"))) { content = new GZIPInputStream(crc32ChecksumInputStream); } else { content = crc32ChecksumInputStream; } } final AwsJsonReader jsonReader = JsonUtils.getJsonReader(new InputStreamReader(content, StringUtils.UTF8)); try { final AmazonWebServiceResponse<T> awsResponse = new AmazonWebServiceResponse<T>(); final JsonUnmarshallerContext unmarshallerContext = new JsonUnmarshallerContext(jsonReader, response); final T result = responseUnmarshaller.unmarshall(unmarshallerContext); if (crc32Checksum != null) { final long serverSideCRC = Long.parseLong(crc32Checksum); final long clientSideCRC = crc32ChecksumInputStream.getCRC32Checksum(); if (clientSideCRC != serverSideCRC) { throw new CRC32MismatchException( "Client calculated crc32 checksum didn't match that calculated by server side"); } } awsResponse.setResult(result); final Map<String, String> metadata = new HashMap<String, String>(); metadata.put(ResponseMetadata.AWS_REQUEST_ID, response.getHeaders().get("x-amzn-RequestId")); awsResponse.setResponseMetadata(new ResponseMetadata(metadata)); log.trace("Done parsing service response"); return awsResponse; } finally { if (!needsConnectionLeftOpen) { try { jsonReader.close(); } catch (final IOException e) { log.warn("Error closing json parser", e); } } } } JsonResponseHandler(Unmarshaller<T, JsonUnmarshallerContext> responseUnmarshaller); @Override AmazonWebServiceResponse<T> handle(HttpResponse response); @Override boolean needsConnectionLeftOpen(); @SuppressWarnings({"checkstyle:constantname", "checkstyle:visibilitymodifier"}) public boolean needsConnectionLeftOpen; }
@Test public void testJsonToMap() { Map<String, String> map = JsonUtils.jsonToMap(JSON_STRING); assertEquals("string value", "string", map.get("string")); assertEquals("long value", "123", map.get("long")); assertEquals("double value", "123.45", map.get("double")); assertEquals("null value", null, map.get("null")); assertEquals("true value", "true", map.get("true")); assertEquals("false value", "false", map.get("false")); assertEquals("encoding", "Chloë", map.get("encoding")); assertNull("array is ignored", map.get("array")); assertNull("object is ignored", map.get("object")); }
@SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
@Test public void testEmptyMapToJson() { Map<String, String> source = new HashMap<String, String>(); assertEquals("empty map", "{}", JsonUtils.mapToString(source)); }
public static String mapToString(Map<String, String> map) { if (map == null || map.isEmpty()) { return "{}"; } try { StringWriter out = new StringWriter(); AwsJsonWriter writer = getJsonWriter(out); writer.beginObject(); for (Map.Entry<String, String> entry : map.entrySet()) { writer.name(entry.getKey()).value(entry.getValue()); } writer.endObject(); writer.close(); return out.toString(); } catch (IOException e) { throw new AmazonClientException("Unable to serialize to JSON String.", e); } }
JsonUtils { public static String mapToString(Map<String, String> map) { if (map == null || map.isEmpty()) { return "{}"; } try { StringWriter out = new StringWriter(); AwsJsonWriter writer = getJsonWriter(out); writer.beginObject(); for (Map.Entry<String, String> entry : map.entrySet()) { writer.name(entry.getKey()).value(entry.getValue()); } writer.endObject(); writer.close(); return out.toString(); } catch (IOException e) { throw new AmazonClientException("Unable to serialize to JSON String.", e); } } }
JsonUtils { public static String mapToString(Map<String, String> map) { if (map == null || map.isEmpty()) { return "{}"; } try { StringWriter out = new StringWriter(); AwsJsonWriter writer = getJsonWriter(out); writer.beginObject(); for (Map.Entry<String, String> entry : map.entrySet()) { writer.name(entry.getKey()).value(entry.getValue()); } writer.endObject(); writer.close(); return out.toString(); } catch (IOException e) { throw new AmazonClientException("Unable to serialize to JSON String.", e); } } }
JsonUtils { public static String mapToString(Map<String, String> map) { if (map == null || map.isEmpty()) { return "{}"; } try { StringWriter out = new StringWriter(); AwsJsonWriter writer = getJsonWriter(out); writer.beginObject(); for (Map.Entry<String, String> entry : map.entrySet()) { writer.name(entry.getKey()).value(entry.getValue()); } writer.endObject(); writer.close(); return out.toString(); } catch (IOException e) { throw new AmazonClientException("Unable to serialize to JSON String.", e); } } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
JsonUtils { public static String mapToString(Map<String, String> map) { if (map == null || map.isEmpty()) { return "{}"; } try { StringWriter out = new StringWriter(); AwsJsonWriter writer = getJsonWriter(out); writer.beginObject(); for (Map.Entry<String, String> entry : map.entrySet()) { writer.name(entry.getKey()).value(entry.getValue()); } writer.endObject(); writer.close(); return out.toString(); } catch (IOException e) { throw new AmazonClientException("Unable to serialize to JSON String.", e); } } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
@Test public void testNullJsonToMap() { String nullStr = null; Map<String, String> map = JsonUtils.jsonToMap(nullStr); assertNotNull("map isn't null", map); assertTrue("map is empty", map.isEmpty()); }
@SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
@Test public void testEmptyJsonToMap() { String json = ""; Map<String, String> map = JsonUtils.jsonToMap(json); assertTrue("empty string", map.isEmpty()); }
@SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
JsonUtils { @SuppressWarnings("unchecked") public static Map<String, String> jsonToMap(Reader in) { AwsJsonReader reader = getJsonReader(in); try { if (reader.peek() == null) { return Collections.EMPTY_MAP; } Map<String, String> map = new HashMap<String, String>(); reader.beginObject(); while (reader.hasNext()) { String key = reader.nextName(); if (reader.isContainer()) { reader.skipValue(); } else { map.put(key, reader.nextString()); } } reader.endObject(); reader.close(); return Collections.unmodifiableMap(map); } catch (IOException e) { throw new AmazonClientException("Unable to parse JSON String.", e); } } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
@Test public void testJsonReader() throws IOException { AwsJsonReader reader = JsonUtils.getJsonReader(new StringReader(JSON_STRING)); reader.beginObject(); assertTrue("has properties", reader.hasNext()); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("string")) { assertTrue("VALUE_STRING", AwsJsonToken.VALUE_STRING == reader.peek()); assertEquals("string value", "string", reader.nextString()); } else if (name.equals("long")) { assertTrue("VALUE_NUMBER", AwsJsonToken.VALUE_NUMBER == reader.peek()); assertEquals("long value", "123", reader.nextString()); } else if (name.equals("double")) { assertTrue("VALUE_NUMBER", AwsJsonToken.VALUE_NUMBER == reader.peek()); assertEquals("double value", "123.45", reader.nextString()); } else if (name.equals("null")) { assertTrue("VALUE_NULL", AwsJsonToken.VALUE_NULL == reader.peek()); assertNull("null value", reader.nextString()); } else if (name.equals("true")) { assertTrue("VALUE_BOOLEAN", AwsJsonToken.VALUE_BOOLEAN == reader.peek()); assertEquals("true value", "true", reader.nextString()); } else if (name.equals("false")) { assertTrue("VALUE_BOOLEAN", AwsJsonToken.VALUE_BOOLEAN == reader.peek()); assertEquals("false value", "false", reader.nextString()); } else if (name.equals("encoding")) { assertTrue("VALUE_STRING", AwsJsonToken.VALUE_STRING == reader.peek()); assertEquals("encoding", "Chloë", reader.nextString()); } else if (name.equals("array")) { assertTrue("BEGIN_ARRAY", AwsJsonToken.BEGIN_ARRAY == reader.peek()); reader.beginArray(); assertTrue("has next", reader.hasNext()); assertEquals("string value", "string", reader.nextString()); assertEquals("long value", "123", reader.nextString()); assertEquals("double value", "123.45", reader.nextString()); assertNull("null value", reader.nextString()); assertEquals("true value", "true", reader.nextString()); assertEquals("false value", "false", reader.nextString()); reader.endArray(); } else if (name.equals("object")) { assertTrue("BEGIN_OBJECT", AwsJsonToken.BEGIN_OBJECT == reader.peek()); reader.beginObject(); assertFalse("empty object", reader.hasNext()); reader.endObject(); } else { fail("should not reach here"); } } reader.endObject(); }
public static AwsJsonReader getJsonReader(Reader in) { if (factory == null) { throw new IllegalStateException("Json engine is unavailable."); } return factory.getJsonReader(in); }
JsonUtils { public static AwsJsonReader getJsonReader(Reader in) { if (factory == null) { throw new IllegalStateException("Json engine is unavailable."); } return factory.getJsonReader(in); } }
JsonUtils { public static AwsJsonReader getJsonReader(Reader in) { if (factory == null) { throw new IllegalStateException("Json engine is unavailable."); } return factory.getJsonReader(in); } }
JsonUtils { public static AwsJsonReader getJsonReader(Reader in) { if (factory == null) { throw new IllegalStateException("Json engine is unavailable."); } return factory.getJsonReader(in); } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
JsonUtils { public static AwsJsonReader getJsonReader(Reader in) { if (factory == null) { throw new IllegalStateException("Json engine is unavailable."); } return factory.getJsonReader(in); } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
@Test public void testJsonWriter() throws IOException { StringWriter out = new StringWriter(); AwsJsonWriter writer = JsonUtils.getJsonWriter(out); writer.beginObject() .name("string").value("string") .name("long").value(123) .name("double").value(123.45) .name("null").value() .name("true").value(true) .name("false").value(false) .name("encoding").value("Chloë") .name("array").beginArray() .value("string").value(123).value(123.45).value().value(true).value(false) .endArray() .name("object").beginObject().endObject() .endObject().close(); String json = out.toString(); assertEquals("same json", JSON_STRING, json); }
public static AwsJsonWriter getJsonWriter(Writer out) { if (factory == null) { throw new IllegalStateException("Json engine is unavailable."); } return factory.getJsonWriter(out); }
JsonUtils { public static AwsJsonWriter getJsonWriter(Writer out) { if (factory == null) { throw new IllegalStateException("Json engine is unavailable."); } return factory.getJsonWriter(out); } }
JsonUtils { public static AwsJsonWriter getJsonWriter(Writer out) { if (factory == null) { throw new IllegalStateException("Json engine is unavailable."); } return factory.getJsonWriter(out); } }
JsonUtils { public static AwsJsonWriter getJsonWriter(Writer out) { if (factory == null) { throw new IllegalStateException("Json engine is unavailable."); } return factory.getJsonWriter(out); } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
JsonUtils { public static AwsJsonWriter getJsonWriter(Writer out) { if (factory == null) { throw new IllegalStateException("Json engine is unavailable."); } return factory.getJsonWriter(out); } static void setJsonEngine(JsonEngine jsonEngine); static AwsJsonReader getJsonReader(Reader in); static AwsJsonWriter getJsonWriter(Writer out); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(Reader in); @SuppressWarnings("unchecked") static Map<String, String> jsonToMap(String json); static String mapToString(Map<String, String> map); }
@Test public void getVersion() { assertEquals("2.6.20", VersionInfoUtils.getVersion()); }
public static String getVersion() { return version; }
VersionInfoUtils { public static String getVersion() { return version; } }
VersionInfoUtils { public static String getVersion() { return version; } }
VersionInfoUtils { public static String getVersion() { return version; } static String getVersion(); static String getPlatform(); static String getUserAgent(); }
VersionInfoUtils { public static String getVersion() { return version; } static String getVersion(); static String getPlatform(); static String getUserAgent(); }
@Test public void rate_should_return_1_when_period_is_100_and_time_is_201() { ConcretePeriodicRateGenerator periodicRateGenerator = new ConcretePeriodicRateGenerator(100); double rate = periodicRateGenerator.getRate(TimeUnit.SECONDS.toNanos(201)); Assert.assertEquals(1d, rate, DELTA); }
@Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); @Override double getRate(long time); }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); @Override double getRate(long time); }
@Test public void rate_should_return_0_when_period_is_50_and_time_is_150() { ConcretePeriodicRateGenerator periodicRateGenerator = new ConcretePeriodicRateGenerator(50); double rate = periodicRateGenerator.getRate(TimeUnit.SECONDS.toNanos(150)); Assert.assertEquals(0d, rate, DELTA); }
@Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); @Override double getRate(long time); }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); @Override double getRate(long time); }
@Test public void rate_should_return_60_when_period_is_10_and_time_is_16() { ConcretePeriodicRateGenerator periodicRateGenerator = new ConcretePeriodicRateGenerator(10); double rate = periodicRateGenerator.getRate(TimeUnit.SECONDS.toNanos(16)); Assert.assertEquals(60d, rate, DELTA); }
@Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); @Override double getRate(long time); }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); @Override double getRate(long time); }
@Test public void rate_should_return_99_when_period_is_100_and_time_is_399() { ConcretePeriodicRateGenerator periodicRateGenerator = new ConcretePeriodicRateGenerator(100); double rate = periodicRateGenerator.getRate(TimeUnit.SECONDS.toNanos(399)); Assert.assertEquals(99d, rate, DELTA); }
@Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); @Override double getRate(long time); }
PeriodicRateGenerator implements RateGenerator { @Override public double getRate(long time) { double valueInPeriod = normalizeValue(time); double result = rateFunction(valueInPeriod); LOGGER.trace("rateFunction returned: {} for value: {}", result, valueInPeriod); return result < 0 ? 0d : result; } PeriodicRateGenerator(long periodInSeconds); @Override double getRate(long time); }
@Test(timeout = DEFAULT_TEST_TIMEOUT) public void loadGenerator_should_be_terminated_when_dataSource_has_no_next_element() { LoadGenerator<Integer> loadGenerator = new LoadGenerator<>(new DataSource<Integer>() { @Override public boolean hasNext(long time) { return false; } @Override public Integer getNext(long time) { return 123; } }, new ConstantRateGenerator(1000), (x) -> { }); loadGenerator.run(); }
public void run() { try { checkState(); LOGGER.info("Load generator started."); long beginning = System.nanoTime(); long previous = beginning; infiniteWhile: while (true) { if (terminate.get()) { LOGGER.info("Termination signal detected. Terminating load generator..."); break; } long now = System.nanoTime(); long fromBeginning = now - beginning; long elapsed = now - previous; double rate = rateGenerator.getRate(fromBeginning); long normalizedRate = normalizeRate(elapsed, rate); if (normalizedRate > 0) { previous += calculateConsumedTime(normalizedRate, rate); } for (int i = 0; i < normalizedRate; i++) { if (!dataSource.hasNext(fromBeginning)) { LOGGER.info("Reached end of data source. Terminating load generator..."); terminate.set(true); break infiniteWhile; } T data = dataSource.getNext(fromBeginning); worker.accept(data); } } LOGGER.info("Load generator terminated."); } catch (Exception e) { LOGGER.error("Terminating load generator due to error. Error: ", e); } }
LoadGenerator { public void run() { try { checkState(); LOGGER.info("Load generator started."); long beginning = System.nanoTime(); long previous = beginning; infiniteWhile: while (true) { if (terminate.get()) { LOGGER.info("Termination signal detected. Terminating load generator..."); break; } long now = System.nanoTime(); long fromBeginning = now - beginning; long elapsed = now - previous; double rate = rateGenerator.getRate(fromBeginning); long normalizedRate = normalizeRate(elapsed, rate); if (normalizedRate > 0) { previous += calculateConsumedTime(normalizedRate, rate); } for (int i = 0; i < normalizedRate; i++) { if (!dataSource.hasNext(fromBeginning)) { LOGGER.info("Reached end of data source. Terminating load generator..."); terminate.set(true); break infiniteWhile; } T data = dataSource.getNext(fromBeginning); worker.accept(data); } } LOGGER.info("Load generator terminated."); } catch (Exception e) { LOGGER.error("Terminating load generator due to error. Error: ", e); } } }
LoadGenerator { public void run() { try { checkState(); LOGGER.info("Load generator started."); long beginning = System.nanoTime(); long previous = beginning; infiniteWhile: while (true) { if (terminate.get()) { LOGGER.info("Termination signal detected. Terminating load generator..."); break; } long now = System.nanoTime(); long fromBeginning = now - beginning; long elapsed = now - previous; double rate = rateGenerator.getRate(fromBeginning); long normalizedRate = normalizeRate(elapsed, rate); if (normalizedRate > 0) { previous += calculateConsumedTime(normalizedRate, rate); } for (int i = 0; i < normalizedRate; i++) { if (!dataSource.hasNext(fromBeginning)) { LOGGER.info("Reached end of data source. Terminating load generator..."); terminate.set(true); break infiniteWhile; } T data = dataSource.getNext(fromBeginning); worker.accept(data); } } LOGGER.info("Load generator terminated."); } catch (Exception e) { LOGGER.error("Terminating load generator due to error. Error: ", e); } } LoadGenerator(DataSource<T> dataSource, RateGenerator rateGenerator, Consumer<T> worker); }
LoadGenerator { public void run() { try { checkState(); LOGGER.info("Load generator started."); long beginning = System.nanoTime(); long previous = beginning; infiniteWhile: while (true) { if (terminate.get()) { LOGGER.info("Termination signal detected. Terminating load generator..."); break; } long now = System.nanoTime(); long fromBeginning = now - beginning; long elapsed = now - previous; double rate = rateGenerator.getRate(fromBeginning); long normalizedRate = normalizeRate(elapsed, rate); if (normalizedRate > 0) { previous += calculateConsumedTime(normalizedRate, rate); } for (int i = 0; i < normalizedRate; i++) { if (!dataSource.hasNext(fromBeginning)) { LOGGER.info("Reached end of data source. Terminating load generator..."); terminate.set(true); break infiniteWhile; } T data = dataSource.getNext(fromBeginning); worker.accept(data); } } LOGGER.info("Load generator terminated."); } catch (Exception e) { LOGGER.error("Terminating load generator due to error. Error: ", e); } } LoadGenerator(DataSource<T> dataSource, RateGenerator rateGenerator, Consumer<T> worker); void run(); void terminate(); }
LoadGenerator { public void run() { try { checkState(); LOGGER.info("Load generator started."); long beginning = System.nanoTime(); long previous = beginning; infiniteWhile: while (true) { if (terminate.get()) { LOGGER.info("Termination signal detected. Terminating load generator..."); break; } long now = System.nanoTime(); long fromBeginning = now - beginning; long elapsed = now - previous; double rate = rateGenerator.getRate(fromBeginning); long normalizedRate = normalizeRate(elapsed, rate); if (normalizedRate > 0) { previous += calculateConsumedTime(normalizedRate, rate); } for (int i = 0; i < normalizedRate; i++) { if (!dataSource.hasNext(fromBeginning)) { LOGGER.info("Reached end of data source. Terminating load generator..."); terminate.set(true); break infiniteWhile; } T data = dataSource.getNext(fromBeginning); worker.accept(data); } } LOGGER.info("Load generator terminated."); } catch (Exception e) { LOGGER.error("Terminating load generator due to error. Error: ", e); } } LoadGenerator(DataSource<T> dataSource, RateGenerator rateGenerator, Consumer<T> worker); void run(); void terminate(); }
@Test(timeout = 2000) public void should_not_take_value_from_queue_when_value_is_not_put() throws InterruptedException { LinkedEvictingBlockingQueue<Integer> queue = new LinkedEvictingBlockingQueue<>(); Thread takeFromQueueThread = newStartedThread(() -> { try { queue.take(); } catch (InterruptedException e) { } }); Thread.sleep(1000); Assert.assertTrue(takeFromQueueThread.isAlive()); takeFromQueueThread.interrupt(); }
public T take() throws InterruptedException { final ReentrantLock lock = this.lock; lock.lock(); try { T x; while ((x = unlinkFromHead()) == null) notEmpty.await(); return x; } finally { lock.unlock(); } }
LinkedEvictingBlockingQueue { public T take() throws InterruptedException { final ReentrantLock lock = this.lock; lock.lock(); try { T x; while ((x = unlinkFromHead()) == null) notEmpty.await(); return x; } finally { lock.unlock(); } } }
LinkedEvictingBlockingQueue { public T take() throws InterruptedException { final ReentrantLock lock = this.lock; lock.lock(); try { T x; while ((x = unlinkFromHead()) == null) notEmpty.await(); return x; } finally { lock.unlock(); } } LinkedEvictingBlockingQueue(); LinkedEvictingBlockingQueue(boolean dropFromHead); LinkedEvictingBlockingQueue(boolean dropFromHead, int capacity); }
LinkedEvictingBlockingQueue { public T take() throws InterruptedException { final ReentrantLock lock = this.lock; lock.lock(); try { T x; while ((x = unlinkFromHead()) == null) notEmpty.await(); return x; } finally { lock.unlock(); } } LinkedEvictingBlockingQueue(); LinkedEvictingBlockingQueue(boolean dropFromHead); LinkedEvictingBlockingQueue(boolean dropFromHead, int capacity); T put(T e); T take(); int size(); }
LinkedEvictingBlockingQueue { public T take() throws InterruptedException { final ReentrantLock lock = this.lock; lock.lock(); try { T x; while ((x = unlinkFromHead()) == null) notEmpty.await(); return x; } finally { lock.unlock(); } } LinkedEvictingBlockingQueue(); LinkedEvictingBlockingQueue(boolean dropFromHead); LinkedEvictingBlockingQueue(boolean dropFromHead, int capacity); T put(T e); T take(); int size(); }
@Test(timeout = 3000) public void should_not_block_thread_when_delegate_of_asyncWorker_is_blocking() throws Exception { RateGenerator rg = new ConstantRateGenerator(10); Object lock = new Object(); AtomicInteger delegateInvokeCount = new AtomicInteger(); Worker<Integer> delegate = (x, y, z) -> { synchronized (lock) { delegateInvokeCount.incrementAndGet(); } }; DataSource<Integer> ds = new DataSource<Integer>() { private int i = 0; @Override public boolean hasNext(long time) { return i < 10; } @Override public Integer getNext(long time) { return i++; } }; InternalWorker<Integer> w = new InternalWorker<>(delegate, 4, true, null, 4); LoadGenerator<Integer> lg = new LoadGenerator<>(ds, rg, w); synchronized (lock) { lg.run(); } w.close(); }
@Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } InternalWorker(Worker<T> delegate, int queueCapacity); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount, ThreadFactory threadFactory); }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } InternalWorker(Worker<T> delegate, int queueCapacity); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount, ThreadFactory threadFactory); @Override void accept(T message); @Override void close(); MetricRegistry getMetricRegistry(); }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } InternalWorker(Worker<T> delegate, int queueCapacity); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount, ThreadFactory threadFactory); @Override void accept(T message); @Override void close(); MetricRegistry getMetricRegistry(); }
@Test(timeout = 3000) public void should_drop_packet_from_head_of_the_queue_when_queue_is_full_and_dropFromHead_is_true() throws Exception { RateGenerator rg = new ConstantRateGenerator(10); CountDownLatch countDownLatch = new CountDownLatch(6); CountDownLatch dsCountDownLatch = new CountDownLatch(3); Object lock = new Object(); AtomicInteger delegateInvokeCount = new AtomicInteger(); Worker<Integer> delegate = (x, y, z) -> { dsCountDownLatch.countDown(); synchronized (lock) { delegateInvokeCount.addAndGet(x); countDownLatch.countDown(); } }; DataSource<Integer> ds = new DataSource<Integer>() { private int i = 1; @Override public boolean hasNext(long time) { return i < 10; } @Override public Integer getNext(long time) { if (i == 4) { try { dsCountDownLatch.await(); } catch (InterruptedException ignored) { } } return i++; } }; InternalWorker<Integer> w = new InternalWorker<>(delegate, 3, true, null, 3); LoadGenerator<Integer> lg = new LoadGenerator<>(ds, rg, w); synchronized (lock) { lg.run(); } countDownLatch.await(); w.close(); Assert.assertEquals(30, delegateInvokeCount.get()); }
@Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } InternalWorker(Worker<T> delegate, int queueCapacity); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount, ThreadFactory threadFactory); }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } InternalWorker(Worker<T> delegate, int queueCapacity); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount, ThreadFactory threadFactory); @Override void accept(T message); @Override void close(); MetricRegistry getMetricRegistry(); }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } InternalWorker(Worker<T> delegate, int queueCapacity); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount, ThreadFactory threadFactory); @Override void accept(T message); @Override void close(); MetricRegistry getMetricRegistry(); }
@Test(timeout = 3000) public void should_drop_packet_from_head_of_the_queue_when_queue_is_full_and_dropFromHead_is_false() throws Exception { RateGenerator rg = new ConstantRateGenerator(10); CountDownLatch countDownLatch = new CountDownLatch(6); CountDownLatch dsCountDownLatch = new CountDownLatch(3); Object lock = new Object(); AtomicInteger delegateInvokeCount = new AtomicInteger(); Worker<Integer> delegate = (x, y, z) -> { dsCountDownLatch.countDown(); synchronized (lock) { delegateInvokeCount.addAndGet(x); countDownLatch.countDown(); } }; DataSource<Integer> ds = new DataSource<Integer>() { private int i = 1; @Override public boolean hasNext(long time) { return i < 10; } @Override public Integer getNext(long time) { if (i == 4) { try { dsCountDownLatch.await(); } catch (InterruptedException ignored) { } } return i++; } }; InternalWorker<Integer> w = new InternalWorker<>(delegate, 3, false, null, 3); LoadGenerator<Integer> lg = new LoadGenerator<>(ds, rg, w); synchronized (lock) { lg.run(); } countDownLatch.await(); w.close(); Assert.assertEquals(24, delegateInvokeCount.get()); }
@Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } InternalWorker(Worker<T> delegate, int queueCapacity); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount, ThreadFactory threadFactory); }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } InternalWorker(Worker<T> delegate, int queueCapacity); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount, ThreadFactory threadFactory); @Override void accept(T message); @Override void close(); MetricRegistry getMetricRegistry(); }
InternalWorker implements Consumer<T>, AutoCloseable { @Override public void close() throws Exception { if (!closed) { threadPoolExecutor.shutdownNow(); closed = true; } } InternalWorker(Worker<T> delegate, int queueCapacity); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount); InternalWorker(Worker<T> delegate, int queueCapacity, boolean dropFromHead, String metricsPrefix, int threadCount, ThreadFactory threadFactory); @Override void accept(T message); @Override void close(); MetricRegistry getMetricRegistry(); }
@Test public void exchangeIdTest() { }
public Balance exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; }
Balance { public Balance exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
Balance { public Balance exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
Balance { public Balance exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } Balance exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); Balance data(List<BalanceData> data); Balance addDataItem(BalanceData dataItem); @javax.annotation.Nullable @ApiModelProperty(value = "") List<BalanceData> getData(); void setData(List<BalanceData> data); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
Balance { public Balance exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } Balance exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); Balance data(List<BalanceData> data); Balance addDataItem(BalanceData dataItem); @javax.annotation.Nullable @ApiModelProperty(value = "") List<BalanceData> getData(); void setData(List<BalanceData> data); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_DATA; }
@Test public void errorsTest() { }
public ValidationError errors(String errors) { this.errors = errors; return this; }
ValidationError { public ValidationError errors(String errors) { this.errors = errors; return this; } }
ValidationError { public ValidationError errors(String errors) { this.errors = errors; return this; } }
ValidationError { public ValidationError errors(String errors) { this.errors = errors; return this; } ValidationError type(String type); @javax.annotation.Nullable @ApiModelProperty(example = "https://tools.ietf.org/html/rfc7231#section-6.5.1", value = "") String getType(); void setType(String type); ValidationError title(String title); @javax.annotation.Nullable @ApiModelProperty(example = "One or more validation errors occurred.", value = "") String getTitle(); void setTitle(String title); ValidationError status(BigDecimal status); @javax.annotation.Nullable @ApiModelProperty(example = "400", value = "") BigDecimal getStatus(); void setStatus(BigDecimal status); ValidationError traceId(String traceId); @javax.annotation.Nullable @ApiModelProperty(example = "d200e8b5-4271a5461ce5342f", value = "") String getTraceId(); void setTraceId(String traceId); ValidationError errors(String errors); @javax.annotation.Nullable @ApiModelProperty(value = "") String getErrors(); void setErrors(String errors); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
ValidationError { public ValidationError errors(String errors) { this.errors = errors; return this; } ValidationError type(String type); @javax.annotation.Nullable @ApiModelProperty(example = "https://tools.ietf.org/html/rfc7231#section-6.5.1", value = "") String getType(); void setType(String type); ValidationError title(String title); @javax.annotation.Nullable @ApiModelProperty(example = "One or more validation errors occurred.", value = "") String getTitle(); void setTitle(String title); ValidationError status(BigDecimal status); @javax.annotation.Nullable @ApiModelProperty(example = "400", value = "") BigDecimal getStatus(); void setStatus(BigDecimal status); ValidationError traceId(String traceId); @javax.annotation.Nullable @ApiModelProperty(example = "d200e8b5-4271a5461ce5342f", value = "") String getTraceId(); void setTraceId(String traceId); ValidationError errors(String errors); @javax.annotation.Nullable @ApiModelProperty(value = "") String getErrors(); void setErrors(String errors); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_TYPE; static final String SERIALIZED_NAME_TITLE; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_TRACE_ID; static final String SERIALIZED_NAME_ERRORS; }
@Test public void clientOrderIdFormatExchangeTest() { }
public OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange) { this.clientOrderIdFormatExchange = clientOrderIdFormatExchange; return this; }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange) { this.clientOrderIdFormatExchange = clientOrderIdFormatExchange; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange) { this.clientOrderIdFormatExchange = clientOrderIdFormatExchange; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange) { this.clientOrderIdFormatExchange = clientOrderIdFormatExchange; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange) { this.clientOrderIdFormatExchange = clientOrderIdFormatExchange; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void exchangeOrderIdTest() { }
public OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void amountOpenTest() { }
public OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen) { this.amountOpen = amountOpen; return this; }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen) { this.amountOpen = amountOpen; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen) { this.amountOpen = amountOpen; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen) { this.amountOpen = amountOpen; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen) { this.amountOpen = amountOpen; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void amountFilledTest() { }
public OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled) { this.amountFilled = amountFilled; return this; }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled) { this.amountFilled = amountFilled; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled) { this.amountFilled = amountFilled; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled) { this.amountFilled = amountFilled; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled) { this.amountFilled = amountFilled; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void avgPxTest() { }
public OrderExecutionReportAllOf avgPx(BigDecimal avgPx) { this.avgPx = avgPx; return this; }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf avgPx(BigDecimal avgPx) { this.avgPx = avgPx; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf avgPx(BigDecimal avgPx) { this.avgPx = avgPx; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf avgPx(BigDecimal avgPx) { this.avgPx = avgPx; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf avgPx(BigDecimal avgPx) { this.avgPx = avgPx; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void statusTest() { }
public OrderExecutionReportAllOf status(OrdStatus status) { this.status = status; return this; }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf status(OrdStatus status) { this.status = status; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf status(OrdStatus status) { this.status = status; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf status(OrdStatus status) { this.status = status; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf status(OrdStatus status) { this.status = status; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void statusHistoryTest() { }
public OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory) { this.statusHistory = statusHistory; return this; }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory) { this.statusHistory = statusHistory; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory) { this.statusHistory = statusHistory; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory) { this.statusHistory = statusHistory; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory) { this.statusHistory = statusHistory; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void errorMessageTest() { }
public OrderExecutionReportAllOf errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void fillsTest() { }
public OrderExecutionReportAllOf fills(List<Fills> fills) { this.fills = fills; return this; }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf fills(List<Fills> fills) { this.fills = fills; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf fills(List<Fills> fills) { this.fills = fills; return this; } }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf fills(List<Fills> fills) { this.fills = fills; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReportAllOf { public OrderExecutionReportAllOf fills(List<Fills> fills) { this.fills = fills; return this; } OrderExecutionReportAllOf clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReportAllOf exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReportAllOf amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReportAllOf amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReportAllOf avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReportAllOf status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReportAllOf statusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReportAllOf errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReportAllOf fills(List<Fills> fills); OrderExecutionReportAllOf addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void dataTest() { }
public Balance data(List<BalanceData> data) { this.data = data; return this; }
Balance { public Balance data(List<BalanceData> data) { this.data = data; return this; } }
Balance { public Balance data(List<BalanceData> data) { this.data = data; return this; } }
Balance { public Balance data(List<BalanceData> data) { this.data = data; return this; } Balance exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); Balance data(List<BalanceData> data); Balance addDataItem(BalanceData dataItem); @javax.annotation.Nullable @ApiModelProperty(value = "") List<BalanceData> getData(); void setData(List<BalanceData> data); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
Balance { public Balance data(List<BalanceData> data) { this.data = data; return this; } Balance exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); Balance data(List<BalanceData> data); Balance addDataItem(BalanceData dataItem); @javax.annotation.Nullable @ApiModelProperty(value = "") List<BalanceData> getData(); void setData(List<BalanceData> data); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_DATA; }
@Test public void exchangeIdTest() { }
public OrderNewSingleRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; }
OrderNewSingleRequest { public OrderNewSingleRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderNewSingleRequest { public OrderNewSingleRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; }
@Test public void clientOrderIdTest() { }
public OrderNewSingleRequest clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; }
OrderNewSingleRequest { public OrderNewSingleRequest clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderNewSingleRequest { public OrderNewSingleRequest clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; }
@Test public void symbolIdExchangeTest() { }
public OrderNewSingleRequest symbolIdExchange(String symbolIdExchange) { this.symbolIdExchange = symbolIdExchange; return this; }
OrderNewSingleRequest { public OrderNewSingleRequest symbolIdExchange(String symbolIdExchange) { this.symbolIdExchange = symbolIdExchange; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest symbolIdExchange(String symbolIdExchange) { this.symbolIdExchange = symbolIdExchange; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest symbolIdExchange(String symbolIdExchange) { this.symbolIdExchange = symbolIdExchange; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderNewSingleRequest { public OrderNewSingleRequest symbolIdExchange(String symbolIdExchange) { this.symbolIdExchange = symbolIdExchange; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; }
@Test public void symbolIdCoinapiTest() { }
public OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi) { this.symbolIdCoinapi = symbolIdCoinapi; return this; }
OrderNewSingleRequest { public OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi) { this.symbolIdCoinapi = symbolIdCoinapi; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi) { this.symbolIdCoinapi = symbolIdCoinapi; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi) { this.symbolIdCoinapi = symbolIdCoinapi; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderNewSingleRequest { public OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi) { this.symbolIdCoinapi = symbolIdCoinapi; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; }
@Test public void amountOrderTest() { }
public OrderNewSingleRequest amountOrder(BigDecimal amountOrder) { this.amountOrder = amountOrder; return this; }
OrderNewSingleRequest { public OrderNewSingleRequest amountOrder(BigDecimal amountOrder) { this.amountOrder = amountOrder; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest amountOrder(BigDecimal amountOrder) { this.amountOrder = amountOrder; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest amountOrder(BigDecimal amountOrder) { this.amountOrder = amountOrder; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderNewSingleRequest { public OrderNewSingleRequest amountOrder(BigDecimal amountOrder) { this.amountOrder = amountOrder; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; }
@Test public void priceTest() { }
public OrderNewSingleRequest price(BigDecimal price) { this.price = price; return this; }
OrderNewSingleRequest { public OrderNewSingleRequest price(BigDecimal price) { this.price = price; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest price(BigDecimal price) { this.price = price; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest price(BigDecimal price) { this.price = price; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderNewSingleRequest { public OrderNewSingleRequest price(BigDecimal price) { this.price = price; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; }
@Test public void sideTest() { }
public OrderNewSingleRequest side(OrdSide side) { this.side = side; return this; }
OrderNewSingleRequest { public OrderNewSingleRequest side(OrdSide side) { this.side = side; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest side(OrdSide side) { this.side = side; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest side(OrdSide side) { this.side = side; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderNewSingleRequest { public OrderNewSingleRequest side(OrdSide side) { this.side = side; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; }
@Test public void orderTypeTest() { }
public OrderNewSingleRequest orderType(OrdType orderType) { this.orderType = orderType; return this; }
OrderNewSingleRequest { public OrderNewSingleRequest orderType(OrdType orderType) { this.orderType = orderType; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest orderType(OrdType orderType) { this.orderType = orderType; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest orderType(OrdType orderType) { this.orderType = orderType; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderNewSingleRequest { public OrderNewSingleRequest orderType(OrdType orderType) { this.orderType = orderType; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; }
@Test public void timeInForceTest() { }
public OrderNewSingleRequest timeInForce(TimeInForce timeInForce) { this.timeInForce = timeInForce; return this; }
OrderNewSingleRequest { public OrderNewSingleRequest timeInForce(TimeInForce timeInForce) { this.timeInForce = timeInForce; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest timeInForce(TimeInForce timeInForce) { this.timeInForce = timeInForce; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest timeInForce(TimeInForce timeInForce) { this.timeInForce = timeInForce; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderNewSingleRequest { public OrderNewSingleRequest timeInForce(TimeInForce timeInForce) { this.timeInForce = timeInForce; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; }
@Test public void expireTimeTest() { }
public OrderNewSingleRequest expireTime(LocalDate expireTime) { this.expireTime = expireTime; return this; }
OrderNewSingleRequest { public OrderNewSingleRequest expireTime(LocalDate expireTime) { this.expireTime = expireTime; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest expireTime(LocalDate expireTime) { this.expireTime = expireTime; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest expireTime(LocalDate expireTime) { this.expireTime = expireTime; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderNewSingleRequest { public OrderNewSingleRequest expireTime(LocalDate expireTime) { this.expireTime = expireTime; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; }
@Test public void exchangeIdTest() { }
public OrderCancelAllRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; }
OrderCancelAllRequest { public OrderCancelAllRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
OrderCancelAllRequest { public OrderCancelAllRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
OrderCancelAllRequest { public OrderCancelAllRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } OrderCancelAllRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Identifier of the exchange from which active orders should be canceled.") String getExchangeId(); void setExchangeId(String exchangeId); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderCancelAllRequest { public OrderCancelAllRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } OrderCancelAllRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Identifier of the exchange from which active orders should be canceled.") String getExchangeId(); void setExchangeId(String exchangeId); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; }
@Test public void execInstTest() { }
public OrderNewSingleRequest execInst(List<ExecInstEnum> execInst) { this.execInst = execInst; return this; }
OrderNewSingleRequest { public OrderNewSingleRequest execInst(List<ExecInstEnum> execInst) { this.execInst = execInst; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest execInst(List<ExecInstEnum> execInst) { this.execInst = execInst; return this; } }
OrderNewSingleRequest { public OrderNewSingleRequest execInst(List<ExecInstEnum> execInst) { this.execInst = execInst; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderNewSingleRequest { public OrderNewSingleRequest execInst(List<ExecInstEnum> execInst) { this.execInst = execInst; return this; } OrderNewSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderNewSingleRequest clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderNewSingleRequest symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderNewSingleRequest symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderNewSingleRequest amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderNewSingleRequest price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderNewSingleRequest side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderNewSingleRequest orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderNewSingleRequest timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderNewSingleRequest expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderNewSingleRequest execInst(List<ExecInstEnum> execInst); OrderNewSingleRequest addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; }
@Test public void timeTest() { }
public Fills time(LocalDate time) { this.time = time; return this; }
Fills { public Fills time(LocalDate time) { this.time = time; return this; } }
Fills { public Fills time(LocalDate time) { this.time = time; return this; } }
Fills { public Fills time(LocalDate time) { this.time = time; return this; } Fills time(LocalDate time); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Execution time.") LocalDate getTime(); void setTime(LocalDate time); Fills price(BigDecimal price); @javax.annotation.Nullable @ApiModelProperty(example = "10799.2", value = "Execution price.") BigDecimal getPrice(); void setPrice(BigDecimal price); Fills amount(BigDecimal amount); @javax.annotation.Nullable @ApiModelProperty(example = "0.002", value = "Executed quantity.") BigDecimal getAmount(); void setAmount(BigDecimal amount); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
Fills { public Fills time(LocalDate time) { this.time = time; return this; } Fills time(LocalDate time); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Execution time.") LocalDate getTime(); void setTime(LocalDate time); Fills price(BigDecimal price); @javax.annotation.Nullable @ApiModelProperty(example = "10799.2", value = "Execution price.") BigDecimal getPrice(); void setPrice(BigDecimal price); Fills amount(BigDecimal amount); @javax.annotation.Nullable @ApiModelProperty(example = "0.002", value = "Executed quantity.") BigDecimal getAmount(); void setAmount(BigDecimal amount); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_TIME; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_AMOUNT; }
@Test public void priceTest() { }
public Fills price(BigDecimal price) { this.price = price; return this; }
Fills { public Fills price(BigDecimal price) { this.price = price; return this; } }
Fills { public Fills price(BigDecimal price) { this.price = price; return this; } }
Fills { public Fills price(BigDecimal price) { this.price = price; return this; } Fills time(LocalDate time); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Execution time.") LocalDate getTime(); void setTime(LocalDate time); Fills price(BigDecimal price); @javax.annotation.Nullable @ApiModelProperty(example = "10799.2", value = "Execution price.") BigDecimal getPrice(); void setPrice(BigDecimal price); Fills amount(BigDecimal amount); @javax.annotation.Nullable @ApiModelProperty(example = "0.002", value = "Executed quantity.") BigDecimal getAmount(); void setAmount(BigDecimal amount); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
Fills { public Fills price(BigDecimal price) { this.price = price; return this; } Fills time(LocalDate time); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Execution time.") LocalDate getTime(); void setTime(LocalDate time); Fills price(BigDecimal price); @javax.annotation.Nullable @ApiModelProperty(example = "10799.2", value = "Execution price.") BigDecimal getPrice(); void setPrice(BigDecimal price); Fills amount(BigDecimal amount); @javax.annotation.Nullable @ApiModelProperty(example = "0.002", value = "Executed quantity.") BigDecimal getAmount(); void setAmount(BigDecimal amount); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_TIME; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_AMOUNT; }
@Test public void amountTest() { }
public Fills amount(BigDecimal amount) { this.amount = amount; return this; }
Fills { public Fills amount(BigDecimal amount) { this.amount = amount; return this; } }
Fills { public Fills amount(BigDecimal amount) { this.amount = amount; return this; } }
Fills { public Fills amount(BigDecimal amount) { this.amount = amount; return this; } Fills time(LocalDate time); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Execution time.") LocalDate getTime(); void setTime(LocalDate time); Fills price(BigDecimal price); @javax.annotation.Nullable @ApiModelProperty(example = "10799.2", value = "Execution price.") BigDecimal getPrice(); void setPrice(BigDecimal price); Fills amount(BigDecimal amount); @javax.annotation.Nullable @ApiModelProperty(example = "0.002", value = "Executed quantity.") BigDecimal getAmount(); void setAmount(BigDecimal amount); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
Fills { public Fills amount(BigDecimal amount) { this.amount = amount; return this; } Fills time(LocalDate time); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Execution time.") LocalDate getTime(); void setTime(LocalDate time); Fills price(BigDecimal price); @javax.annotation.Nullable @ApiModelProperty(example = "10799.2", value = "Execution price.") BigDecimal getPrice(); void setPrice(BigDecimal price); Fills amount(BigDecimal amount); @javax.annotation.Nullable @ApiModelProperty(example = "0.002", value = "Executed quantity.") BigDecimal getAmount(); void setAmount(BigDecimal amount); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_TIME; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_AMOUNT; }
@Test public void exchangeIdTest() { }
public OrderExecutionReport exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; }
OrderExecutionReport { public OrderExecutionReport exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
OrderExecutionReport { public OrderExecutionReport exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
OrderExecutionReport { public OrderExecutionReport exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void clientOrderIdTest() { }
public OrderExecutionReport clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; }
OrderExecutionReport { public OrderExecutionReport clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } }
OrderExecutionReport { public OrderExecutionReport clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } }
OrderExecutionReport { public OrderExecutionReport clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void symbolIdExchangeTest() { }
public OrderExecutionReport symbolIdExchange(String symbolIdExchange) { this.symbolIdExchange = symbolIdExchange; return this; }
OrderExecutionReport { public OrderExecutionReport symbolIdExchange(String symbolIdExchange) { this.symbolIdExchange = symbolIdExchange; return this; } }
OrderExecutionReport { public OrderExecutionReport symbolIdExchange(String symbolIdExchange) { this.symbolIdExchange = symbolIdExchange; return this; } }
OrderExecutionReport { public OrderExecutionReport symbolIdExchange(String symbolIdExchange) { this.symbolIdExchange = symbolIdExchange; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport symbolIdExchange(String symbolIdExchange) { this.symbolIdExchange = symbolIdExchange; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void symbolIdCoinapiTest() { }
public OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi) { this.symbolIdCoinapi = symbolIdCoinapi; return this; }
OrderExecutionReport { public OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi) { this.symbolIdCoinapi = symbolIdCoinapi; return this; } }
OrderExecutionReport { public OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi) { this.symbolIdCoinapi = symbolIdCoinapi; return this; } }
OrderExecutionReport { public OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi) { this.symbolIdCoinapi = symbolIdCoinapi; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi) { this.symbolIdCoinapi = symbolIdCoinapi; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void amountOrderTest() { }
public OrderExecutionReport amountOrder(BigDecimal amountOrder) { this.amountOrder = amountOrder; return this; }
OrderExecutionReport { public OrderExecutionReport amountOrder(BigDecimal amountOrder) { this.amountOrder = amountOrder; return this; } }
OrderExecutionReport { public OrderExecutionReport amountOrder(BigDecimal amountOrder) { this.amountOrder = amountOrder; return this; } }
OrderExecutionReport { public OrderExecutionReport amountOrder(BigDecimal amountOrder) { this.amountOrder = amountOrder; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport amountOrder(BigDecimal amountOrder) { this.amountOrder = amountOrder; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void priceTest() { }
public OrderExecutionReport price(BigDecimal price) { this.price = price; return this; }
OrderExecutionReport { public OrderExecutionReport price(BigDecimal price) { this.price = price; return this; } }
OrderExecutionReport { public OrderExecutionReport price(BigDecimal price) { this.price = price; return this; } }
OrderExecutionReport { public OrderExecutionReport price(BigDecimal price) { this.price = price; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport price(BigDecimal price) { this.price = price; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void exchangeIdTest() { }
public OrderCancelSingleRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; }
OrderCancelSingleRequest { public OrderCancelSingleRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
OrderCancelSingleRequest { public OrderCancelSingleRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
OrderCancelSingleRequest { public OrderCancelSingleRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } OrderCancelSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderCancelSingleRequest exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderCancelSingleRequest clientOrderId(String clientOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", value = "The unique identifier of the order assigned by the client. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getClientOrderId(); void setClientOrderId(String clientOrderId); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderCancelSingleRequest { public OrderCancelSingleRequest exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } OrderCancelSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderCancelSingleRequest exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderCancelSingleRequest clientOrderId(String clientOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", value = "The unique identifier of the order assigned by the client. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getClientOrderId(); void setClientOrderId(String clientOrderId); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; }
@Test public void sideTest() { }
public OrderExecutionReport side(OrdSide side) { this.side = side; return this; }
OrderExecutionReport { public OrderExecutionReport side(OrdSide side) { this.side = side; return this; } }
OrderExecutionReport { public OrderExecutionReport side(OrdSide side) { this.side = side; return this; } }
OrderExecutionReport { public OrderExecutionReport side(OrdSide side) { this.side = side; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport side(OrdSide side) { this.side = side; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void orderTypeTest() { }
public OrderExecutionReport orderType(OrdType orderType) { this.orderType = orderType; return this; }
OrderExecutionReport { public OrderExecutionReport orderType(OrdType orderType) { this.orderType = orderType; return this; } }
OrderExecutionReport { public OrderExecutionReport orderType(OrdType orderType) { this.orderType = orderType; return this; } }
OrderExecutionReport { public OrderExecutionReport orderType(OrdType orderType) { this.orderType = orderType; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport orderType(OrdType orderType) { this.orderType = orderType; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void timeInForceTest() { }
public OrderExecutionReport timeInForce(TimeInForce timeInForce) { this.timeInForce = timeInForce; return this; }
OrderExecutionReport { public OrderExecutionReport timeInForce(TimeInForce timeInForce) { this.timeInForce = timeInForce; return this; } }
OrderExecutionReport { public OrderExecutionReport timeInForce(TimeInForce timeInForce) { this.timeInForce = timeInForce; return this; } }
OrderExecutionReport { public OrderExecutionReport timeInForce(TimeInForce timeInForce) { this.timeInForce = timeInForce; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport timeInForce(TimeInForce timeInForce) { this.timeInForce = timeInForce; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void expireTimeTest() { }
public OrderExecutionReport expireTime(LocalDate expireTime) { this.expireTime = expireTime; return this; }
OrderExecutionReport { public OrderExecutionReport expireTime(LocalDate expireTime) { this.expireTime = expireTime; return this; } }
OrderExecutionReport { public OrderExecutionReport expireTime(LocalDate expireTime) { this.expireTime = expireTime; return this; } }
OrderExecutionReport { public OrderExecutionReport expireTime(LocalDate expireTime) { this.expireTime = expireTime; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport expireTime(LocalDate expireTime) { this.expireTime = expireTime; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void execInstTest() { }
public OrderExecutionReport execInst(List<ExecInstEnum> execInst) { this.execInst = execInst; return this; }
OrderExecutionReport { public OrderExecutionReport execInst(List<ExecInstEnum> execInst) { this.execInst = execInst; return this; } }
OrderExecutionReport { public OrderExecutionReport execInst(List<ExecInstEnum> execInst) { this.execInst = execInst; return this; } }
OrderExecutionReport { public OrderExecutionReport execInst(List<ExecInstEnum> execInst) { this.execInst = execInst; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport execInst(List<ExecInstEnum> execInst) { this.execInst = execInst; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void clientOrderIdFormatExchangeTest() { }
public OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange) { this.clientOrderIdFormatExchange = clientOrderIdFormatExchange; return this; }
OrderExecutionReport { public OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange) { this.clientOrderIdFormatExchange = clientOrderIdFormatExchange; return this; } }
OrderExecutionReport { public OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange) { this.clientOrderIdFormatExchange = clientOrderIdFormatExchange; return this; } }
OrderExecutionReport { public OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange) { this.clientOrderIdFormatExchange = clientOrderIdFormatExchange; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange) { this.clientOrderIdFormatExchange = clientOrderIdFormatExchange; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void exchangeOrderIdTest() { }
public OrderExecutionReport exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; }
OrderExecutionReport { public OrderExecutionReport exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } }
OrderExecutionReport { public OrderExecutionReport exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } }
OrderExecutionReport { public OrderExecutionReport exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void amountOpenTest() { }
public OrderExecutionReport amountOpen(BigDecimal amountOpen) { this.amountOpen = amountOpen; return this; }
OrderExecutionReport { public OrderExecutionReport amountOpen(BigDecimal amountOpen) { this.amountOpen = amountOpen; return this; } }
OrderExecutionReport { public OrderExecutionReport amountOpen(BigDecimal amountOpen) { this.amountOpen = amountOpen; return this; } }
OrderExecutionReport { public OrderExecutionReport amountOpen(BigDecimal amountOpen) { this.amountOpen = amountOpen; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport amountOpen(BigDecimal amountOpen) { this.amountOpen = amountOpen; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void amountFilledTest() { }
public OrderExecutionReport amountFilled(BigDecimal amountFilled) { this.amountFilled = amountFilled; return this; }
OrderExecutionReport { public OrderExecutionReport amountFilled(BigDecimal amountFilled) { this.amountFilled = amountFilled; return this; } }
OrderExecutionReport { public OrderExecutionReport amountFilled(BigDecimal amountFilled) { this.amountFilled = amountFilled; return this; } }
OrderExecutionReport { public OrderExecutionReport amountFilled(BigDecimal amountFilled) { this.amountFilled = amountFilled; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport amountFilled(BigDecimal amountFilled) { this.amountFilled = amountFilled; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void avgPxTest() { }
public OrderExecutionReport avgPx(BigDecimal avgPx) { this.avgPx = avgPx; return this; }
OrderExecutionReport { public OrderExecutionReport avgPx(BigDecimal avgPx) { this.avgPx = avgPx; return this; } }
OrderExecutionReport { public OrderExecutionReport avgPx(BigDecimal avgPx) { this.avgPx = avgPx; return this; } }
OrderExecutionReport { public OrderExecutionReport avgPx(BigDecimal avgPx) { this.avgPx = avgPx; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport avgPx(BigDecimal avgPx) { this.avgPx = avgPx; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void exchangeOrderIdTest() { }
public OrderCancelSingleRequest exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; }
OrderCancelSingleRequest { public OrderCancelSingleRequest exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } }
OrderCancelSingleRequest { public OrderCancelSingleRequest exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } }
OrderCancelSingleRequest { public OrderCancelSingleRequest exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } OrderCancelSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderCancelSingleRequest exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderCancelSingleRequest clientOrderId(String clientOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", value = "The unique identifier of the order assigned by the client. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getClientOrderId(); void setClientOrderId(String clientOrderId); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderCancelSingleRequest { public OrderCancelSingleRequest exchangeOrderId(String exchangeOrderId) { this.exchangeOrderId = exchangeOrderId; return this; } OrderCancelSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderCancelSingleRequest exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderCancelSingleRequest clientOrderId(String clientOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", value = "The unique identifier of the order assigned by the client. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getClientOrderId(); void setClientOrderId(String clientOrderId); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; }
@Test public void statusTest() { }
public OrderExecutionReport status(OrdStatus status) { this.status = status; return this; }
OrderExecutionReport { public OrderExecutionReport status(OrdStatus status) { this.status = status; return this; } }
OrderExecutionReport { public OrderExecutionReport status(OrdStatus status) { this.status = status; return this; } }
OrderExecutionReport { public OrderExecutionReport status(OrdStatus status) { this.status = status; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport status(OrdStatus status) { this.status = status; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void statusHistoryTest() { }
public OrderExecutionReport statusHistory(List<List<String>> statusHistory) { this.statusHistory = statusHistory; return this; }
OrderExecutionReport { public OrderExecutionReport statusHistory(List<List<String>> statusHistory) { this.statusHistory = statusHistory; return this; } }
OrderExecutionReport { public OrderExecutionReport statusHistory(List<List<String>> statusHistory) { this.statusHistory = statusHistory; return this; } }
OrderExecutionReport { public OrderExecutionReport statusHistory(List<List<String>> statusHistory) { this.statusHistory = statusHistory; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport statusHistory(List<List<String>> statusHistory) { this.statusHistory = statusHistory; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void errorMessageTest() { }
public OrderExecutionReport errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; }
OrderExecutionReport { public OrderExecutionReport errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } }
OrderExecutionReport { public OrderExecutionReport errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } }
OrderExecutionReport { public OrderExecutionReport errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void fillsTest() { }
public OrderExecutionReport fills(List<Fills> fills) { this.fills = fills; return this; }
OrderExecutionReport { public OrderExecutionReport fills(List<Fills> fills) { this.fills = fills; return this; } }
OrderExecutionReport { public OrderExecutionReport fills(List<Fills> fills) { this.fills = fills; return this; } }
OrderExecutionReport { public OrderExecutionReport fills(List<Fills> fills) { this.fills = fills; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderExecutionReport { public OrderExecutionReport fills(List<Fills> fills) { this.fills = fills; return this; } OrderExecutionReport exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderExecutionReport clientOrderId(String clientOrderId); @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", required = true, value = "The unique identifier of the order assigned by the client.") String getClientOrderId(); void setClientOrderId(String clientOrderId); OrderExecutionReport symbolIdExchange(String symbolIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT/USDT", value = "Exchange symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdExchange(); void setSymbolIdExchange(String symbolIdExchange); OrderExecutionReport symbolIdCoinapi(String symbolIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN_SPOT_BTC_USDT", value = "CoinAPI symbol. One of the properties (`symbol_id_exchange`, `symbol_id_coinapi`) is required to identify the market for the new order.") String getSymbolIdCoinapi(); void setSymbolIdCoinapi(String symbolIdCoinapi); OrderExecutionReport amountOrder(BigDecimal amountOrder); @ApiModelProperty(example = "0.045", required = true, value = "Order quantity.") BigDecimal getAmountOrder(); void setAmountOrder(BigDecimal amountOrder); OrderExecutionReport price(BigDecimal price); @ApiModelProperty(example = "0.0783", required = true, value = "Order price.") BigDecimal getPrice(); void setPrice(BigDecimal price); OrderExecutionReport side(OrdSide side); @ApiModelProperty(required = true, value = "") OrdSide getSide(); void setSide(OrdSide side); OrderExecutionReport orderType(OrdType orderType); @ApiModelProperty(required = true, value = "") OrdType getOrderType(); void setOrderType(OrdType orderType); OrderExecutionReport timeInForce(TimeInForce timeInForce); @ApiModelProperty(required = true, value = "") TimeInForce getTimeInForce(); void setTimeInForce(TimeInForce timeInForce); OrderExecutionReport expireTime(LocalDate expireTime); @javax.annotation.Nullable @ApiModelProperty(example = "2020-01-01T10:45:20.1677709Z", value = "Expiration time. Conditionaly required for orders with time_in_force = `GOOD_TILL_TIME_EXCHANGE` or `GOOD_TILL_TIME_OEML`.") LocalDate getExpireTime(); void setExpireTime(LocalDate expireTime); OrderExecutionReport execInst(List<ExecInstEnum> execInst); OrderExecutionReport addExecInstItem(ExecInstEnum execInstItem); @javax.annotation.Nullable @ApiModelProperty(example = "[\"MAKER_OR_CANCEL\"]", value = "Order execution instructions are documented in the separate section: <a href=\"#oeml-order-params-exec\">OEML / Starter Guide / Order parameters / Execution instructions</a> ") List<ExecInstEnum> getExecInst(); void setExecInst(List<ExecInstEnum> execInst); OrderExecutionReport clientOrderIdFormatExchange(String clientOrderIdFormatExchange); @ApiModelProperty(example = "f81211e2-27c4-b86a-8143-01088ba9222c", required = true, value = "The unique identifier of the order assigned by the client converted to the exchange order tag format for the purpose of tracking it.") String getClientOrderIdFormatExchange(); void setClientOrderIdFormatExchange(String clientOrderIdFormatExchange); OrderExecutionReport exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderExecutionReport amountOpen(BigDecimal amountOpen); @ApiModelProperty(example = "0.22", required = true, value = "Quantity open for further execution. `amount_open` = `amount_order` - `amount_filled`") BigDecimal getAmountOpen(); void setAmountOpen(BigDecimal amountOpen); OrderExecutionReport amountFilled(BigDecimal amountFilled); @ApiModelProperty(example = "0.0", required = true, value = "Total quantity filled.") BigDecimal getAmountFilled(); void setAmountFilled(BigDecimal amountFilled); OrderExecutionReport avgPx(BigDecimal avgPx); @javax.annotation.Nullable @ApiModelProperty(example = "0.0783", value = "Calculated average price of all fills on this order.") BigDecimal getAvgPx(); void setAvgPx(BigDecimal avgPx); OrderExecutionReport status(OrdStatus status); @ApiModelProperty(required = true, value = "") OrdStatus getStatus(); void setStatus(OrdStatus status); OrderExecutionReport statusHistory(List<List<String>> statusHistory); OrderExecutionReport addStatusHistoryItem(List<String> statusHistoryItem); @javax.annotation.Nullable @ApiModelProperty(value = "Timestamped history of order status changes.") List<List<String>> getStatusHistory(); void setStatusHistory(List<List<String>> statusHistory); OrderExecutionReport errorMessage(String errorMessage); @javax.annotation.Nullable @ApiModelProperty(example = "{\"result\":\"error\",\"reason\":\"InsufficientFunds\",\"message\":\"Failed to place buy order on symbol 'BTCUSD' for price $7,000.00 and quantity 0.22 BTC due to insufficient funds\"}", value = "Error message.") String getErrorMessage(); void setErrorMessage(String errorMessage); OrderExecutionReport fills(List<Fills> fills); OrderExecutionReport addFillsItem(Fills fillsItem); @javax.annotation.Nullable @ApiModelProperty(value = "Relay fill information on working orders.") List<Fills> getFills(); void setFills(List<Fills> fills); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; static final String SERIALIZED_NAME_SYMBOL_ID_EXCHANGE; static final String SERIALIZED_NAME_SYMBOL_ID_COINAPI; static final String SERIALIZED_NAME_AMOUNT_ORDER; static final String SERIALIZED_NAME_PRICE; static final String SERIALIZED_NAME_SIDE; static final String SERIALIZED_NAME_ORDER_TYPE; static final String SERIALIZED_NAME_TIME_IN_FORCE; static final String SERIALIZED_NAME_EXPIRE_TIME; static final String SERIALIZED_NAME_EXEC_INST; static final String SERIALIZED_NAME_CLIENT_ORDER_ID_FORMAT_EXCHANGE; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_AMOUNT_OPEN; static final String SERIALIZED_NAME_AMOUNT_FILLED; static final String SERIALIZED_NAME_AVG_PX; static final String SERIALIZED_NAME_STATUS; static final String SERIALIZED_NAME_STATUS_HISTORY; static final String SERIALIZED_NAME_ERROR_MESSAGE; static final String SERIALIZED_NAME_FILLS; }
@Test public void assetIdExchangeTest() { }
public BalanceData assetIdExchange(String assetIdExchange) { this.assetIdExchange = assetIdExchange; return this; }
BalanceData { public BalanceData assetIdExchange(String assetIdExchange) { this.assetIdExchange = assetIdExchange; return this; } }
BalanceData { public BalanceData assetIdExchange(String assetIdExchange) { this.assetIdExchange = assetIdExchange; return this; } }
BalanceData { public BalanceData assetIdExchange(String assetIdExchange) { this.assetIdExchange = assetIdExchange; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
BalanceData { public BalanceData assetIdExchange(String assetIdExchange) { this.assetIdExchange = assetIdExchange; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_ASSET_ID_EXCHANGE; static final String SERIALIZED_NAME_ASSET_ID_COINAPI; static final String SERIALIZED_NAME_BALANCE; static final String SERIALIZED_NAME_AVAILABLE; static final String SERIALIZED_NAME_LOCKED; static final String SERIALIZED_NAME_LAST_UPDATED_BY; static final String SERIALIZED_NAME_RATE_USD; static final String SERIALIZED_NAME_TRADED; }
@Test public void assetIdCoinapiTest() { }
public BalanceData assetIdCoinapi(String assetIdCoinapi) { this.assetIdCoinapi = assetIdCoinapi; return this; }
BalanceData { public BalanceData assetIdCoinapi(String assetIdCoinapi) { this.assetIdCoinapi = assetIdCoinapi; return this; } }
BalanceData { public BalanceData assetIdCoinapi(String assetIdCoinapi) { this.assetIdCoinapi = assetIdCoinapi; return this; } }
BalanceData { public BalanceData assetIdCoinapi(String assetIdCoinapi) { this.assetIdCoinapi = assetIdCoinapi; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
BalanceData { public BalanceData assetIdCoinapi(String assetIdCoinapi) { this.assetIdCoinapi = assetIdCoinapi; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_ASSET_ID_EXCHANGE; static final String SERIALIZED_NAME_ASSET_ID_COINAPI; static final String SERIALIZED_NAME_BALANCE; static final String SERIALIZED_NAME_AVAILABLE; static final String SERIALIZED_NAME_LOCKED; static final String SERIALIZED_NAME_LAST_UPDATED_BY; static final String SERIALIZED_NAME_RATE_USD; static final String SERIALIZED_NAME_TRADED; }
@Test public void balanceTest() { }
public BalanceData balance(Float balance) { this.balance = balance; return this; }
BalanceData { public BalanceData balance(Float balance) { this.balance = balance; return this; } }
BalanceData { public BalanceData balance(Float balance) { this.balance = balance; return this; } }
BalanceData { public BalanceData balance(Float balance) { this.balance = balance; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
BalanceData { public BalanceData balance(Float balance) { this.balance = balance; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_ASSET_ID_EXCHANGE; static final String SERIALIZED_NAME_ASSET_ID_COINAPI; static final String SERIALIZED_NAME_BALANCE; static final String SERIALIZED_NAME_AVAILABLE; static final String SERIALIZED_NAME_LOCKED; static final String SERIALIZED_NAME_LAST_UPDATED_BY; static final String SERIALIZED_NAME_RATE_USD; static final String SERIALIZED_NAME_TRADED; }
@Test public void availableTest() { }
public BalanceData available(Float available) { this.available = available; return this; }
BalanceData { public BalanceData available(Float available) { this.available = available; return this; } }
BalanceData { public BalanceData available(Float available) { this.available = available; return this; } }
BalanceData { public BalanceData available(Float available) { this.available = available; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
BalanceData { public BalanceData available(Float available) { this.available = available; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_ASSET_ID_EXCHANGE; static final String SERIALIZED_NAME_ASSET_ID_COINAPI; static final String SERIALIZED_NAME_BALANCE; static final String SERIALIZED_NAME_AVAILABLE; static final String SERIALIZED_NAME_LOCKED; static final String SERIALIZED_NAME_LAST_UPDATED_BY; static final String SERIALIZED_NAME_RATE_USD; static final String SERIALIZED_NAME_TRADED; }
@Test public void lockedTest() { }
public BalanceData locked(Float locked) { this.locked = locked; return this; }
BalanceData { public BalanceData locked(Float locked) { this.locked = locked; return this; } }
BalanceData { public BalanceData locked(Float locked) { this.locked = locked; return this; } }
BalanceData { public BalanceData locked(Float locked) { this.locked = locked; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
BalanceData { public BalanceData locked(Float locked) { this.locked = locked; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_ASSET_ID_EXCHANGE; static final String SERIALIZED_NAME_ASSET_ID_COINAPI; static final String SERIALIZED_NAME_BALANCE; static final String SERIALIZED_NAME_AVAILABLE; static final String SERIALIZED_NAME_LOCKED; static final String SERIALIZED_NAME_LAST_UPDATED_BY; static final String SERIALIZED_NAME_RATE_USD; static final String SERIALIZED_NAME_TRADED; }
@Test public void lastUpdatedByTest() { }
public BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy) { this.lastUpdatedBy = lastUpdatedBy; return this; }
BalanceData { public BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy) { this.lastUpdatedBy = lastUpdatedBy; return this; } }
BalanceData { public BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy) { this.lastUpdatedBy = lastUpdatedBy; return this; } }
BalanceData { public BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy) { this.lastUpdatedBy = lastUpdatedBy; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
BalanceData { public BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy) { this.lastUpdatedBy = lastUpdatedBy; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_ASSET_ID_EXCHANGE; static final String SERIALIZED_NAME_ASSET_ID_COINAPI; static final String SERIALIZED_NAME_BALANCE; static final String SERIALIZED_NAME_AVAILABLE; static final String SERIALIZED_NAME_LOCKED; static final String SERIALIZED_NAME_LAST_UPDATED_BY; static final String SERIALIZED_NAME_RATE_USD; static final String SERIALIZED_NAME_TRADED; }
@Test public void clientOrderIdTest() { }
public OrderCancelSingleRequest clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; }
OrderCancelSingleRequest { public OrderCancelSingleRequest clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } }
OrderCancelSingleRequest { public OrderCancelSingleRequest clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } }
OrderCancelSingleRequest { public OrderCancelSingleRequest clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } OrderCancelSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderCancelSingleRequest exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderCancelSingleRequest clientOrderId(String clientOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", value = "The unique identifier of the order assigned by the client. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getClientOrderId(); void setClientOrderId(String clientOrderId); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
OrderCancelSingleRequest { public OrderCancelSingleRequest clientOrderId(String clientOrderId) { this.clientOrderId = clientOrderId; return this; } OrderCancelSingleRequest exchangeId(String exchangeId); @ApiModelProperty(example = "KRAKEN", required = true, value = "Exchange identifier used to identify the routing destination.") String getExchangeId(); void setExchangeId(String exchangeId); OrderCancelSingleRequest exchangeOrderId(String exchangeOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "3456456754", value = "Unique identifier of the order assigned by the exchange or executing system. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getExchangeOrderId(); void setExchangeOrderId(String exchangeOrderId); OrderCancelSingleRequest clientOrderId(String clientOrderId); @javax.annotation.Nullable @ApiModelProperty(example = "6ab36bc1-344d-432e-ac6d-0bf44ee64c2b", value = "The unique identifier of the order assigned by the client. One of the properties (`exchange_order_id`, `client_order_id`) is required to identify the new order.") String getClientOrderId(); void setClientOrderId(String clientOrderId); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_EXCHANGE_ORDER_ID; static final String SERIALIZED_NAME_CLIENT_ORDER_ID; }
@Test public void rateUsdTest() { }
public BalanceData rateUsd(Float rateUsd) { this.rateUsd = rateUsd; return this; }
BalanceData { public BalanceData rateUsd(Float rateUsd) { this.rateUsd = rateUsd; return this; } }
BalanceData { public BalanceData rateUsd(Float rateUsd) { this.rateUsd = rateUsd; return this; } }
BalanceData { public BalanceData rateUsd(Float rateUsd) { this.rateUsd = rateUsd; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
BalanceData { public BalanceData rateUsd(Float rateUsd) { this.rateUsd = rateUsd; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_ASSET_ID_EXCHANGE; static final String SERIALIZED_NAME_ASSET_ID_COINAPI; static final String SERIALIZED_NAME_BALANCE; static final String SERIALIZED_NAME_AVAILABLE; static final String SERIALIZED_NAME_LOCKED; static final String SERIALIZED_NAME_LAST_UPDATED_BY; static final String SERIALIZED_NAME_RATE_USD; static final String SERIALIZED_NAME_TRADED; }
@Test public void tradedTest() { }
public BalanceData traded(Float traded) { this.traded = traded; return this; }
BalanceData { public BalanceData traded(Float traded) { this.traded = traded; return this; } }
BalanceData { public BalanceData traded(Float traded) { this.traded = traded; return this; } }
BalanceData { public BalanceData traded(Float traded) { this.traded = traded; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
BalanceData { public BalanceData traded(Float traded) { this.traded = traded; return this; } BalanceData assetIdExchange(String assetIdExchange); @javax.annotation.Nullable @ApiModelProperty(example = "XBT", value = "Exchange currency code.") String getAssetIdExchange(); void setAssetIdExchange(String assetIdExchange); BalanceData assetIdCoinapi(String assetIdCoinapi); @javax.annotation.Nullable @ApiModelProperty(example = "BTC", value = "CoinAPI currency code.") String getAssetIdCoinapi(); void setAssetIdCoinapi(String assetIdCoinapi); BalanceData balance(Float balance); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current total currency balance on the exchange.") Float getBalance(); void setBalance(Float balance); BalanceData available(Float available); @javax.annotation.Nullable @ApiModelProperty(example = "0.00134444", value = "Value of the current available currency balance on the exchange that can be used as collateral.") Float getAvailable(); void setAvailable(Float available); BalanceData locked(Float locked); @javax.annotation.Nullable @ApiModelProperty(example = "0.0", value = "Value of the current locked currency balance by the exchange.") Float getLocked(); void setLocked(Float locked); BalanceData lastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); @javax.annotation.Nullable @ApiModelProperty(example = "EXCHANGE", value = "Source of the last modification. ") LastUpdatedByEnum getLastUpdatedBy(); void setLastUpdatedBy(LastUpdatedByEnum lastUpdatedBy); BalanceData rateUsd(Float rateUsd); @javax.annotation.Nullable @ApiModelProperty(example = "1355.12", value = "Current exchange rate to the USD for the single unit of the currency. ") Float getRateUsd(); void setRateUsd(Float rateUsd); BalanceData traded(Float traded); @javax.annotation.Nullable @ApiModelProperty(example = "0.007", value = "Value of the current total traded.") Float getTraded(); void setTraded(Float traded); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_ASSET_ID_EXCHANGE; static final String SERIALIZED_NAME_ASSET_ID_COINAPI; static final String SERIALIZED_NAME_BALANCE; static final String SERIALIZED_NAME_AVAILABLE; static final String SERIALIZED_NAME_LOCKED; static final String SERIALIZED_NAME_LAST_UPDATED_BY; static final String SERIALIZED_NAME_RATE_USD; static final String SERIALIZED_NAME_TRADED; }
@Test public void testMessage() { }
public Message message(String message) { this.message = message; return this; }
Message { public Message message(String message) { this.message = message; return this; } }
Message { public Message message(String message) { this.message = message; return this; } }
Message { public Message message(String message) { this.message = message; return this; } Message type(String type); @javax.annotation.Nullable @ApiModelProperty(example = "message", value = "Type of message.") String getType(); void setType(String type); Message severity(Severity severity); @javax.annotation.Nullable @ApiModelProperty(value = "") Severity getSeverity(); void setSeverity(Severity severity); Message exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "If the message related to exchange, then the identifier of the exchange will be provided.") String getExchangeId(); void setExchangeId(String exchangeId); Message message(String message); @javax.annotation.Nullable @ApiModelProperty(example = "Ok", value = "Message text.") String getMessage(); void setMessage(String message); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
Message { public Message message(String message) { this.message = message; return this; } Message type(String type); @javax.annotation.Nullable @ApiModelProperty(example = "message", value = "Type of message.") String getType(); void setType(String type); Message severity(Severity severity); @javax.annotation.Nullable @ApiModelProperty(value = "") Severity getSeverity(); void setSeverity(Severity severity); Message exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "If the message related to exchange, then the identifier of the exchange will be provided.") String getExchangeId(); void setExchangeId(String exchangeId); Message message(String message); @javax.annotation.Nullable @ApiModelProperty(example = "Ok", value = "Message text.") String getMessage(); void setMessage(String message); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_TYPE; static final String SERIALIZED_NAME_SEVERITY; static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_MESSAGE; }
@Test public void typeTest() { }
public Message type(String type) { this.type = type; return this; }
Message { public Message type(String type) { this.type = type; return this; } }
Message { public Message type(String type) { this.type = type; return this; } }
Message { public Message type(String type) { this.type = type; return this; } Message type(String type); @javax.annotation.Nullable @ApiModelProperty(example = "message", value = "Type of message.") String getType(); void setType(String type); Message severity(Severity severity); @javax.annotation.Nullable @ApiModelProperty(value = "") Severity getSeverity(); void setSeverity(Severity severity); Message exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "If the message related to exchange, then the identifier of the exchange will be provided.") String getExchangeId(); void setExchangeId(String exchangeId); Message message(String message); @javax.annotation.Nullable @ApiModelProperty(example = "Ok", value = "Message text.") String getMessage(); void setMessage(String message); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
Message { public Message type(String type) { this.type = type; return this; } Message type(String type); @javax.annotation.Nullable @ApiModelProperty(example = "message", value = "Type of message.") String getType(); void setType(String type); Message severity(Severity severity); @javax.annotation.Nullable @ApiModelProperty(value = "") Severity getSeverity(); void setSeverity(Severity severity); Message exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "If the message related to exchange, then the identifier of the exchange will be provided.") String getExchangeId(); void setExchangeId(String exchangeId); Message message(String message); @javax.annotation.Nullable @ApiModelProperty(example = "Ok", value = "Message text.") String getMessage(); void setMessage(String message); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_TYPE; static final String SERIALIZED_NAME_SEVERITY; static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_MESSAGE; }
@Test public void severityTest() { }
public Message severity(Severity severity) { this.severity = severity; return this; }
Message { public Message severity(Severity severity) { this.severity = severity; return this; } }
Message { public Message severity(Severity severity) { this.severity = severity; return this; } }
Message { public Message severity(Severity severity) { this.severity = severity; return this; } Message type(String type); @javax.annotation.Nullable @ApiModelProperty(example = "message", value = "Type of message.") String getType(); void setType(String type); Message severity(Severity severity); @javax.annotation.Nullable @ApiModelProperty(value = "") Severity getSeverity(); void setSeverity(Severity severity); Message exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "If the message related to exchange, then the identifier of the exchange will be provided.") String getExchangeId(); void setExchangeId(String exchangeId); Message message(String message); @javax.annotation.Nullable @ApiModelProperty(example = "Ok", value = "Message text.") String getMessage(); void setMessage(String message); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
Message { public Message severity(Severity severity) { this.severity = severity; return this; } Message type(String type); @javax.annotation.Nullable @ApiModelProperty(example = "message", value = "Type of message.") String getType(); void setType(String type); Message severity(Severity severity); @javax.annotation.Nullable @ApiModelProperty(value = "") Severity getSeverity(); void setSeverity(Severity severity); Message exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "If the message related to exchange, then the identifier of the exchange will be provided.") String getExchangeId(); void setExchangeId(String exchangeId); Message message(String message); @javax.annotation.Nullable @ApiModelProperty(example = "Ok", value = "Message text.") String getMessage(); void setMessage(String message); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_TYPE; static final String SERIALIZED_NAME_SEVERITY; static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_MESSAGE; }
@Test public void exchangeIdTest() { }
public Message exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; }
Message { public Message exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
Message { public Message exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } }
Message { public Message exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } Message type(String type); @javax.annotation.Nullable @ApiModelProperty(example = "message", value = "Type of message.") String getType(); void setType(String type); Message severity(Severity severity); @javax.annotation.Nullable @ApiModelProperty(value = "") Severity getSeverity(); void setSeverity(Severity severity); Message exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "If the message related to exchange, then the identifier of the exchange will be provided.") String getExchangeId(); void setExchangeId(String exchangeId); Message message(String message); @javax.annotation.Nullable @ApiModelProperty(example = "Ok", value = "Message text.") String getMessage(); void setMessage(String message); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); }
Message { public Message exchangeId(String exchangeId) { this.exchangeId = exchangeId; return this; } Message type(String type); @javax.annotation.Nullable @ApiModelProperty(example = "message", value = "Type of message.") String getType(); void setType(String type); Message severity(Severity severity); @javax.annotation.Nullable @ApiModelProperty(value = "") Severity getSeverity(); void setSeverity(Severity severity); Message exchangeId(String exchangeId); @javax.annotation.Nullable @ApiModelProperty(example = "KRAKEN", value = "If the message related to exchange, then the identifier of the exchange will be provided.") String getExchangeId(); void setExchangeId(String exchangeId); Message message(String message); @javax.annotation.Nullable @ApiModelProperty(example = "Ok", value = "Message text.") String getMessage(); void setMessage(String message); @Override boolean equals(java.lang.Object o); @Override int hashCode(); @Override String toString(); static final String SERIALIZED_NAME_TYPE; static final String SERIALIZED_NAME_SEVERITY; static final String SERIALIZED_NAME_EXCHANGE_ID; static final String SERIALIZED_NAME_MESSAGE; }