Package org.knowm.xchange.bl3p
Interface Bl3pAuthenticated
- All Superinterfaces:
Bl3p
Defines methods which need authentication
GENMKT is presumably short for GENERIC MARKET.
-
Method Summary
Modifier and TypeMethodDescriptioncancelOrder
(String restKey, si.mazi.rescu.ParamsDigest restSign, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair, String orderId) Cancel given ordercreateLimitOrder
(String restKey, si.mazi.rescu.ParamsDigest restSign, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair, String type, long amountInt, long priceInt, String feeCurrency) Create a limit ordercreateMarketOrder
(String restKey, si.mazi.rescu.ParamsDigest restSign, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair, String type, long amountInt, String feeCurrency) Create a market ordercreateNewDepositAddress
(String restKey, si.mazi.rescu.ParamsDigest restSign, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency) Create a new deposit addressgetAccountInfo
(String restKey, si.mazi.rescu.ParamsDigest restSign, si.mazi.rescu.SynchronizedValueFactory<Long> nonce) Get account info and balancegetOpenOrders
(String restKey, si.mazi.rescu.ParamsDigest restSign, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair) Get all open ordersgetOrder
(String restKey, si.mazi.rescu.ParamsDigest restSign, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currencyPair, String orderId) Get a specific ordergetUserTransactions
(String restKey, si.mazi.rescu.ParamsDigest restSign, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency, String type, int page, int recsPerPage) Get a list of transactionswithdrawCoins
(String restKey, si.mazi.rescu.ParamsDigest restSign, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency, String address, int extraFee, long amount) Withdraw coinswithdrawEuros
(String restKey, si.mazi.rescu.ParamsDigest restSign, si.mazi.rescu.SynchronizedValueFactory<Long> nonce, String currency, String accountId, String accountName, long amount) Withdraw eurosMethods inherited from interface org.knowm.xchange.bl3p.Bl3p
getOrderBook, getTicker, getTrades
-
Method Details
-
getAccountInfo
@GET @Path("/GENMKT/money/info") Bl3pAccountInfo getAccountInfo(@HeaderParam("Rest-Key") String restKey, @HeaderParam("Rest-Sign") si.mazi.rescu.ParamsDigest restSign, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce) throws IOException Get account info and balance- Parameters:
restKey
-restSign
-nonce
-- Returns:
- Throws:
IOException
-
createNewDepositAddress
@GET @Path("/GENMKT/money/new_deposit_address") Bl3pNewDepositAddress createNewDepositAddress(@HeaderParam("Rest-Key") String restKey, @HeaderParam("Rest-Sign") si.mazi.rescu.ParamsDigest restSign, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currency") String currency) throws IOException Create a new deposit address- Parameters:
restKey
-restSign
-nonce
-currency
- Currency (Can be: 'BTC')- Returns:
- Throws:
IOException
-
getOpenOrders
@GET @Path("/{currencyPair}/money/orders") Bl3pOpenOrders getOpenOrders(@HeaderParam("Rest-Key") String restKey, @HeaderParam("Rest-Sign") si.mazi.rescu.ParamsDigest restSign, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @PathParam("currencyPair") String currencyPair) Get all open orders- Parameters:
restKey
-restSign
-nonce
-currencyPair
-- Returns:
-
createMarketOrder
@POST @Path("/{currencyPair}/money/order/add") Bl3pNewOrder createMarketOrder(@HeaderParam("Rest-Key") String restKey, @HeaderParam("Rest-Sign") si.mazi.rescu.ParamsDigest restSign, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @PathParam("currencyPair") String currencyPair, @FormParam("type") String type, @FormParam("amount_int") long amountInt, @FormParam("fee_currency") String feeCurrency) Create a market order- Parameters:
restKey
-restSign
-nonce
-currencyPair
-type
-amountInt
-feeCurrency
-- Returns:
-
createLimitOrder
@POST @Path("/{currencyPair}/money/order/add") Bl3pNewOrder createLimitOrder(@HeaderParam("Rest-Key") String restKey, @HeaderParam("Rest-Sign") si.mazi.rescu.ParamsDigest restSign, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @PathParam("currencyPair") String currencyPair, @FormParam("type") String type, @FormParam("amount_int") long amountInt, @FormParam("price_int") long priceInt, @FormParam("fee_currency") String feeCurrency) Create a limit order- Parameters:
restKey
-restSign
-nonce
-currencyPair
-type
-amountInt
-priceInt
-feeCurrency
-- Returns:
-
cancelOrder
@POST @Path("/{currencyPair}/money/order/cancel") Bl3pCancelOrder cancelOrder(@HeaderParam("Rest-Key") String restKey, @HeaderParam("Rest-Sign") si.mazi.rescu.ParamsDigest restSign, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @PathParam("currencyPair") String currencyPair, @FormParam("order_id") String orderId) Cancel given order- Parameters:
restKey
-restSign
-nonce
-currencyPair
-orderId
-- Returns:
-
getOrder
@GET @Path("{currencyPair}/money/order/result") Bl3pGetOrder getOrder(@HeaderParam("Rest-Key") String restKey, @HeaderParam("Rest-Sign") si.mazi.rescu.ParamsDigest restSign, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @PathParam("currencyPair") String currencyPair, @FormParam("order_id") String orderId) Get a specific order- Parameters:
restKey
-restSign
-nonce
-currencyPair
-orderId
-- Returns:
-
getUserTransactions
@GET @Path("GENMKT/money/wallet/history") Bl3pUserTransactions getUserTransactions(@HeaderParam("Rest-Key") String restKey, @HeaderParam("Rest-Sign") si.mazi.rescu.ParamsDigest restSign, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @PathParam("currency") String currency, @FormParam("type") String type, @FormParam("page") int page, @FormParam("recs_per_page") int recsPerPage) Get a list of transactions- Parameters:
restKey
-restSign
-nonce
-currency
-type
-page
-recsPerPage
-- Returns:
-
withdrawCoins
@POST @Path("GENMKT/money/withdraw") Bl3pWithdrawFunds withdrawCoins(@HeaderParam("Rest-Key") String restKey, @HeaderParam("Rest-Sign") si.mazi.rescu.ParamsDigest restSign, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currency") String currency, @FormParam("address") String address, @FormParam("extra_fee") int extraFee, @FormParam("amount_int") long amount) Withdraw coins- Parameters:
restKey
-restSign
-nonce
-currency
-address
-extraFee
-amount
-- Returns:
-
withdrawEuros
@POST @Path("GENMKT/money/withdraw") Bl3pWithdrawFunds withdrawEuros(@HeaderParam("Rest-Key") String restKey, @HeaderParam("Rest-Sign") si.mazi.rescu.ParamsDigest restSign, @FormParam("nonce") si.mazi.rescu.SynchronizedValueFactory<Long> nonce, @FormParam("currency") String currency, @FormParam("account_id") String accountId, @FormParam("account_name") String accountName, @FormParam("amount_int") long amount) Withdraw euros- Parameters:
restKey
-restSign
-nonce
-currency
-accountId
-accountName
-amount
-- Returns:
-