Package org.knowm.xchange.blockchain
Interface BlockchainAuthenticated
- All Superinterfaces:
Blockchain
@Path("v3/exchange")
@Produces("application/json")
public interface BlockchainAuthenticated
extends Blockchain
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncancelAllOrders
(String symbol) Delete all open orders (of a symbol, if specified)cancelOrder
(String orderId) Delete a specific orderdepositHistory
(Long startTime, Long endTime) Get a list of depositsReceive current account balancesgetDepositAddress
(String symbol) Get a deposit address.getFees()
Get current fee levelGet a specific orderGet a list ordersgetOrdersBySymbol
(String symbol) Get a list orders by symbolGet a list of filled ordersgetWithdrawFunds
(Long startTime, Long endTime) Get a list of withdrawalspostOrder
(BlockchainOrder blockchainOrder) Add an orderpostWithdrawFunds
(BlockchainWithdrawalParams blockchainWithdrawalRequest) Request a withdrawal Call GET /whitelist first to retrieve the ID of the beneficiary.Methods inherited from interface org.knowm.xchange.blockchain.Blockchain
getOrderBookL3, getSymbols
-
Method Details
-
getAccountInformation
Receive current account balances- Returns:
- This returns a map where the key
String
represents the primary data and the value which is an instance of typeBlockchainAccountInformation
is a list of account balances
-
postWithdrawFunds
@Path("/withdrawals") @POST @Consumes("application/json") BlockchainWithdrawal postWithdrawFunds(BlockchainWithdrawalParams blockchainWithdrawalRequest) throws IOException, BlockchainException Request a withdrawal Call GET /whitelist first to retrieve the ID of the beneficiary.- Returns:
- the withdrawal object created
- Throws:
IOException
BlockchainException
-
getWithdrawFunds
@Path("/withdrawals") @GET List<BlockchainWithdrawal> getWithdrawFunds(@QueryParam("from") Long startTime, @QueryParam("to") Long endTime) Get a list of withdrawals- Parameters:
startTime
-endTime
-- Returns:
- list of withdrawals object
-
getDepositAddress
@Path("/deposits/{symbol}") @POST BlockchainDeposit getDepositAddress(@PathParam("symbol") @FormParam("symbol") String symbol) throws IOException, BlockchainException Get a deposit address. Currently, only crypto currencies are supported- Parameters:
symbol
-- Returns:
- the deposit object according to the currency
- Throws:
IOException
BlockchainException
-
getFees
Get current fee level- Returns:
- the fees of all currency pairs
-
depositHistory
@Path("/deposits") @GET List<BlockchainDeposits> depositHistory(@QueryParam("from") Long startTime, @QueryParam("to") Long endTime) Get a list of deposits- Parameters:
startTime
-endTime
-- Returns:
- list of deposits object
-
getOrders
Get a list orders- Returns:
- live and historic orders, defaulting to live orders. Returns at most 100 results, use timestamp to paginate for further results
-
getOrdersBySymbol
@Path("/orders") @GET List<BlockchainOrder> getOrdersBySymbol(@QueryParam("symbol") String symbol) throws IOException, BlockchainException Get a list orders by symbol- Returns:
- live and historic orders, defaulting to live orders. Returns at most 100 results, use timestamp to paginate for further results
- Throws:
IOException
BlockchainException
-
getOrder
@Path("/orders/{orderId}") @GET BlockchainOrder getOrder(@PathParam("orderId") String orderId) throws IOException, BlockchainException Get a specific order- Parameters:
orderId
-- Returns:
- the order according to the orderId, 404 if not found
- Throws:
IOException
BlockchainException
-
postOrder
@Path("/orders") @POST @Consumes("application/json") BlockchainOrder postOrder(BlockchainOrder blockchainOrder) Add an order- Parameters:
blockchainOrder
-- Returns:
- a new order according to the provided parameters
-
cancelOrder
@Path("/orders/{orderId}") @DELETE Void cancelOrder(@PathParam("orderId") String orderId) throws IOException, BlockchainException Delete a specific order- Parameters:
orderId
-- Returns:
- status 200 if it was successfully removed or 400 if there was an error
- Throws:
IOException
BlockchainException
-
cancelAllOrders
@Path("/orders") @DELETE Void cancelAllOrders(@QueryParam("symbol") String symbol) throws IOException, BlockchainException Delete all open orders (of a symbol, if specified)- Parameters:
symbol
-- Returns:
- status 200 if it was successfully removed or 400 if there was an error
- Throws:
IOException
BlockchainException
-
getTrades
@Path("/trades") @GET List<BlockchainOrder> getTrades(@QueryParam("symbol") String symbol, @QueryParam("from") Long startTime, @QueryParam("to") Long endTime, @QueryParam("limit") Integer limit) throws IOException, BlockchainException Get a list of filled orders- Parameters:
symbol
-startTime
-endTime
-limit
-- Returns:
- filled orders, including partial fills. Returns at most 100 results, use timestamp to paginate for further results
- Throws:
IOException
BlockchainException
-