public class JSurbtc
extends java.lang.Object
| Constructor and Description |
|---|
JSurbtc() |
JSurbtc(HTTPClient httpClient,
java.text.DecimalFormat bigDecimalFormat,
JSON json,
Signer defaultSigner,
Signer noSignatureSigner) |
JSurbtc(JSurbtc other) |
JSurbtc(java.lang.String key,
java.lang.String secret) |
JSurbtc(java.lang.String key,
java.lang.String secret,
java.util.function.LongSupplier nonceSupplier) |
JSurbtc(java.lang.String key,
java.lang.String secret,
java.util.function.LongSupplier nonceSupplier,
java.net.InetSocketAddress httpProxy,
int httpMaxRetry) |
JSurbtc(java.lang.String key,
java.lang.String secret,
java.util.function.LongSupplier nonceSupplier,
JSON json,
java.net.Proxy proxy,
int httpMaxRetry) |
| Modifier and Type | Method and Description |
|---|---|
Order |
cancelOrder(long orderId) |
Balance |
getBalance(java.lang.String currency) |
java.util.List<Balance> |
getBalances() |
java.util.List<Deposit> |
getDeposits(java.lang.String currency) |
java.util.List<Market> |
getMarkets() |
Order |
getOrder(long orderId) |
OrderBook |
getOrderBook(java.lang.String marketId) |
java.util.List<Order> |
getOrders(java.lang.String marketId) |
java.util.List<Order> |
getOrders(java.lang.String marketId,
java.math.BigDecimal minimunExchanged) |
java.util.List<Order> |
getOrders(java.lang.String marketId,
java.lang.String orderState) |
java.util.List<Order> |
getOrders(java.lang.String marketId,
java.lang.String orderState,
java.math.BigDecimal minimunExchanged) |
Ticker |
getTicker(java.lang.String marketId) |
Trades |
getTrades(java.lang.String marketId) |
Trades |
getTrades(java.lang.String marketId,
java.time.Instant timestamp) |
java.lang.String |
getVersion() |
java.util.List<Withdrawal> |
getWithdrawals(java.lang.String currency) |
ApiKey |
newAPIKey(java.lang.String name,
java.time.Instant expiration) |
static java.util.function.LongSupplier |
newNonce() |
Order |
newOrder(java.lang.String marketId,
java.lang.String orderType,
java.lang.String orderPriceType,
java.math.BigDecimal qty,
java.math.BigDecimal price) |
public JSurbtc()
public JSurbtc(java.lang.String key,
java.lang.String secret)
public JSurbtc(java.lang.String key,
java.lang.String secret,
java.util.function.LongSupplier nonceSupplier)
public JSurbtc(java.lang.String key,
java.lang.String secret,
java.util.function.LongSupplier nonceSupplier,
java.net.InetSocketAddress httpProxy,
int httpMaxRetry)
public JSurbtc(java.lang.String key,
java.lang.String secret,
java.util.function.LongSupplier nonceSupplier,
JSON json,
java.net.Proxy proxy,
int httpMaxRetry)
public JSurbtc(JSurbtc other)
public JSurbtc(HTTPClient httpClient, java.text.DecimalFormat bigDecimalFormat, JSON json, Signer defaultSigner, Signer noSignatureSigner)
public static java.util.function.LongSupplier newNonce()
public ApiKey newAPIKey(java.lang.String name, java.time.Instant expiration) throws java.lang.Exception
java.lang.Exceptionpublic Order newOrder(java.lang.String marketId, java.lang.String orderType, java.lang.String orderPriceType, java.math.BigDecimal qty, java.math.BigDecimal price) throws java.lang.Exception
java.lang.Exceptionpublic Trades getTrades(java.lang.String marketId, java.time.Instant timestamp) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getVersion()
public Trades getTrades(java.lang.String marketId) throws java.lang.Exception
java.lang.Exceptionpublic Order cancelOrder(long orderId) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<Market> getMarkets() throws java.lang.Exception
java.lang.Exceptionpublic Ticker getTicker(java.lang.String marketId) throws java.lang.Exception
java.lang.Exceptionpublic OrderBook getOrderBook(java.lang.String marketId) throws java.lang.Exception
java.lang.Exceptionpublic Balance getBalance(java.lang.String currency) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<Balance> getBalances() throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<Order> getOrders(java.lang.String marketId) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<Order> getOrders(java.lang.String marketId, java.lang.String orderState) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<Order> getOrders(java.lang.String marketId, java.math.BigDecimal minimunExchanged) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<Order> getOrders(java.lang.String marketId, java.lang.String orderState, java.math.BigDecimal minimunExchanged) throws java.lang.Exception
java.lang.Exceptionpublic Order getOrder(long orderId) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<Deposit> getDeposits(java.lang.String currency) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<Withdrawal> getWithdrawals(java.lang.String currency) throws java.lang.Exception
java.lang.Exception