Package | Description |
---|---|
com.metaco.api | |
com.metaco.api.exceptions | |
com.metaco.api.http |
Modifier and Type | Method and Description |
---|---|
TransactionBroadcastResult |
MetacoClientImpl.broadcastTransaction(RawTransaction rawTransaction) |
TransactionBroadcastResult |
MetacoClient.broadcastTransaction(RawTransaction rawTransaction)
Requires Authentication
Submit a signed transaction
You have to sign each of your inputs of the selected transaction (you will get those details when creating the transaction through Metaco)
Then encode the transaction in hexadecimal and send it here
|
void |
MetacoClientImpl.cancelOrder(String id) |
void |
MetacoClient.cancelOrder(String id)
Requires Authentication
Cancel the specified order
|
void |
MetacoClientImpl.confirmPhoneNumber(ValidateAccountRequest request) |
void |
MetacoClient.confirmPhoneNumber(ValidateAccountRequest request)
Requires Authentication
Validate the authenticated account, throws an exception if there is an error
|
Order |
MetacoClientImpl.createOrder(NewOrder createOrder) |
Order |
MetacoClient.createOrder(NewOrder createOrder)
Requires Authentication
Create an order using the provided parameters
This order will be processed in our system
It will require your signature later when the trade state will be Signing
|
TransactionToSign |
MetacoClientImpl.createTransaction(NewTransaction newTransaction) |
TransactionToSign |
MetacoClient.createTransaction(NewTransaction newTransaction)
Requires Authentication
Create a Transaction using the provided parameters
|
AccountStatus |
MetacoClientImpl.getAccountStatus() |
AccountStatus |
MetacoClient.getAccountStatus()
Requires Authentication
Return the details of an account (API Id, KYC Status and remaining trading amount)
|
Asset |
MetacoClientImpl.getAsset(String ticker) |
Asset |
MetacoClient.getAsset(String ticker)
Returns the selected Asset if it exists and its details
|
Asset[] |
MetacoClientImpl.getAssets() |
Asset[] |
MetacoClient.getAssets()
Returns all the available Assets and their details
|
AssetsHistoryResult |
MetacoClientImpl.getAssetsHistory(HistoryCriteria criteria) |
AssetsHistoryResult |
MetacoClient.getAssetsHistory(HistoryCriteria criteria)
Returns the history for all the available assets according to the given criteria
|
AssetsHistoryResult |
MetacoClientImpl.getAssetsHistory(HistoryCriteria criteria,
List<String> tickers) |
AssetsHistoryResult |
MetacoClient.getAssetsHistory(HistoryCriteria criteria,
List<String> tickers)
Returns the history for the provided assets according to the given criteria
Assets must be given using this format : USD,XAU,etc..
|
Order |
MetacoClientImpl.getOrder(String id) |
Order |
MetacoClient.getOrder(String id)
Requires Authentication
Returns the specified user's order
|
OrderResultPage |
MetacoClientImpl.getOrders() |
OrderResultPage |
MetacoClient.getOrders()
Requires Authentication
Returns the user's orders, you will get the 500 first results
|
OrderResultPage |
MetacoClientImpl.getOrders(PageCriteria pageCriteria) |
OrderResultPage |
MetacoClient.getOrders(PageCriteria pageCriteria)
Requires Authentication
Returns the user's orders, according to the pageCriteria settings (the page size is limited to 500)
|
WalletDetails |
MetacoClientImpl.getWalletDetails(String address) |
WalletDetails |
MetacoClient.getWalletDetails(String address)
Requires Authentication
Returns the current wallet state
The transaction history is paginated, you will get the 500 first results
Contains the current balances, the values and the transaction history
|
WalletDetails |
MetacoClientImpl.getWalletDetails(String address,
PageCriteria pageCriteria) |
WalletDetails |
MetacoClient.getWalletDetails(String address,
PageCriteria pageCriteria)
Requires Authentication
Returns the current wallet state
The transaction history is paginated, you can choose your page using the pageCriteria parameter (the page size is limited to 500)
Contains the current balances, the values and the transaction history
|
AccountRegistrationResult |
MetacoClientImpl.registerAccount(RegisterAccountRequest request) |
AccountRegistrationResult |
MetacoClient.registerAccount(RegisterAccountRequest request)
Register an account on Metaco
Sends an SMS to the provided phone number
If you are a wallet registering accounts for your clients, don't forget to set the provider_id with your Name/ID.
|
Order |
MetacoClientImpl.submitSignedOrder(String id,
RawTransaction rawTransaction) |
Order |
MetacoClient.submitSignedOrder(String id,
RawTransaction rawTransaction)
Requires Authentication
Submit a signed order
You have to sign each of your inputs of the selected order (you will get those details by fetching the orders)
Then encode the transaction in hexadecimal and send it here
|
Modifier and Type | Method and Description |
---|---|
static void |
ErrorHandler.HandleInvalidResponse(com.sun.jersey.api.client.ClientResponse response) |
Modifier and Type | Method and Description |
---|---|
com.sun.jersey.api.client.ClientResponse |
HttpClientImpl.doDelete(String url) |
com.sun.jersey.api.client.ClientResponse |
HttpClient.doDelete(String uri) |
com.sun.jersey.api.client.ClientResponse |
HttpClientImpl.doGet(String url) |
com.sun.jersey.api.client.ClientResponse |
HttpClient.doGet(String uri) |
com.sun.jersey.api.client.ClientResponse |
HttpClientImpl.doPost(String url,
Object data) |
com.sun.jersey.api.client.ClientResponse |
HttpClient.doPost(String uri,
Object data) |
Copyright © 2016 Metaco. All rights reserved.