| 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) |
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,
JacksonJSON 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)
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,
JacksonJSON 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
public 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
public Trades getTrades(java.lang.String marketId) throws java.lang.Exception
public Trades getTrades(java.lang.String marketId, java.time.Instant timestamp) throws java.lang.Exception
public Order cancelOrder(long orderId) throws java.lang.Exception
cancelOrder in interface Surbtcjava.lang.Exceptionpublic java.util.List<Market> getMarkets() throws java.lang.Exception
getMarkets in interface Surbtcjava.lang.Exceptionpublic Ticker getTicker(java.lang.String marketId) throws java.lang.Exception
public OrderBook getOrderBook(java.lang.String marketId) throws java.lang.Exception
getOrderBook in interface Surbtcjava.lang.Exceptionpublic Balance getBalance(java.lang.String currency) throws java.lang.Exception
getBalance in interface Surbtcjava.lang.Exceptionpublic java.util.List<Balance> getBalances() throws java.lang.Exception
getBalances in interface Surbtcjava.lang.Exceptionpublic java.util.List<Order> getOrders(java.lang.String marketId) throws java.lang.Exception
public java.util.List<Order> getOrders(java.lang.String marketId, java.lang.String orderState) throws java.lang.Exception
public java.util.List<Order> getOrders(java.lang.String marketId, java.math.BigDecimal minimunExchanged) throws java.lang.Exception
public java.util.List<Order> getOrders(java.lang.String marketId, java.lang.String orderState, java.math.BigDecimal minimunExchanged) throws java.lang.Exception
public Order getOrder(long orderId) throws java.lang.Exception
public java.util.List<Deposit> getDeposits(java.lang.String currency) throws java.lang.Exception
getDeposits in interface Surbtcjava.lang.Exceptionpublic java.util.List<Withdrawal> getWithdrawals(java.lang.String currency) throws java.lang.Exception
getWithdrawals in interface Surbtcjava.lang.Exceptionpublic java.lang.String getVersion()
getVersion in interface Surbtc