All Classes and Interfaces

Class
Description
 
Created by tao.mao on 2018/11/15.
An instance of AccountFactory represents a single set of user accounts.
DTO representing account information
Author: brox Since: 2/6/14
 
 
Interface to provide the following to Exchange: Standard methods available to explore send/receive account-related data
Created by joseph on 3/20/17.
 
 
 
 
 
 
 
 
 
 
 
 
Immutable DTO for a single DASE account transaction (ledger entry).
Based on code by zicong.lu on 2018/12/14.
Response wrapper for GET /v1/accounts/transactions.
 
 
 
 
 
 
 
 
 
 
 
In order for Ascendex exchange authenticated endpoints to work you must add a specificParameterItem named 'account-group' on the getExchangeSpecification.getExchangeSpecificParameters Map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Abstract class to provide the following to framework: Provision of useful assertions to trap programmer errors early
 
 
 
 
 
 
Author: Kamil Zbikowski Date: 4/13/15
 
 
DTO representing a balance in a currency
 
 
 
 
 
 
Top of the hierarchy abstract class for an "exchange service"
 
 
Abstract class for an "exchange service" which supports resiliency features like retries, rate limiting etc.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Just an object that will be JSON serialized to {} Often needed when there are no parameters for a command
 
 
 
 
 
 
 
Implementation of the market data service for Bibox Provides access to various market data values
 
Result of batched calls (all POST requests)
 
 
 
 
 
 
 
 
 
 
 
 
paged result
 
General Bibox response
Result of batched calls with just one call (which happens most of the time)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Simple endpoint switch as we cannot inject it when setting up the endpoint.
 
 
Created by cyril on 11-Oct-17.
 
 
 
 
 
 
 
Desired response type for BinanceNewOrder.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DTO for order amend/cancel/replace endpoint as per issue description.
 
 
 
 
 
 
 
 
DTO representing Binance Futures new order request parameters.
 
 
 
Used for live subscription/unsubscription Created by Danny Pageau
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
http://docs.bitfinex.com/#deposit-withdrawal-history
 
 
Demonstrate requesting Order Book at Bitfinex
 
 
 
 
 
 
 
 
 
 
 
 
 
 
https://docs.bitfinex.com/reference#rest-auth-ledgers
 
 
 
 
Bitfinex new order entry returns details of order status.
 
 
 
 
Implementation of the market data service for Bitfinex Provides access to various market data values
Implementation of the market data service for Bitfinex Provides access to various market data values
https://docs.bitfinex.com/reference#rest-auth-movements
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[ { "pair": "btcusd", "price_precision": 5, "initial_margin": "30.0", "minimum_margin": "15.0", "maximum_order_size": "2000.0", "minimum_order_size": "0.002", "expiration": "NA", "margin": true }, { "pair": "ltcusd", "price_precision": 5, "initial_margin": "30.0", "minimum_margin": "15.0", "maximum_order_size": "5000.0", "minimum_order_size": "0.08", "expiration": "NA", "margin": true }, ... ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
A central place for shared Bitfinex properties
 
 
 
Bitfinex withdrawal response mapping class
 
 
 
 
 
Object representing json returned from GET /v1/me/getaddresses
 
Object representing json returned from GET /v1/me/getbankaccounts
A base class for history related responses
 
 
 
 
 
Object representing json returned from GET /v1/me/getcoinins or GET /v1/me/getcoinouts
 
Object representing json returned from GET /v1/me/getdeposits or GET /v1/me/getwithdrawals
 
 
 
 
 
 
 
 
 
 
Implementation of the market data service for Bitflyer Provides access to various market data values
 
 
 
 
 
 
 
 
 
 
 
 
 
 
invalid reference
TradeHistoryParam
.
 
 
 
 
Object representing body of request POST /v1/me/withdraw
Object representing json returned from GET /v1/me/withdraw
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Example showing the following: Connect to Bitso exchange with authentication View account balance Get the bitcoin deposit address Withdraw a small amount of BTC
 
 
 
Bitso API v3/v4 authenticated endpoints
DTO for Bitso API v3 available books endpoint
 
Bitso Balance DTO for API v3
Individual currency balance
Base response wrapper for Bitso API v3 responses All API v3 responses follow the structure: { "success": boolean, "payload": T }
Error details for Bitso API responses
 
Bitso conversion execution response DTO for v4 API
Bitso conversion quote request DTO for v4 API
Bitso conversion quote response DTO for v4 API
Bitso conversion status response DTO for v4 API with enhanced states
Conversion status enumeration for type safety
 
Deprecated.
This functionality has been moved to the Bitso Funding API.
Bitso Deposit Details DTO Contains information about deposit addresses and payment instructions
Bitso API v3 authentication digest Creates HMAC-SHA256 signature following the pattern: nonce + HTTP method + request path + JSON payload Returns Authorization header in format: "Bitso ::"
 
 
 
Bitso Funding Transaction DTO Represents a deposit transaction
Adapters for converting Bitso funding DTOs to XChange DTOs
Bitso Funding API for deposits and withdrawals
Funding history parameters for Bitso Supports deposits, withdrawals, and various filtering options
Funding transaction status enum
 
Demonstrate requesting Depth at Bitso
 
 
Request DTO for modifying orders in Bitso API v4
Utility class for generating Bitso API Nonce v2 compatible values.
Bitso Order DTO for API v3
 
 
 
Request DTO for placing orders in Bitso API v3
Response DTO for placing orders in Bitso API v3
Order side enum
Order status enum
Order type enum
Bitso Receiving Account DTO - Represents a receiving account for fiat withdrawals
Account detail information
Taxonomy information for the account
 
 
Time in force enum for orders
Example showing the following: Connect to Bitso exchange with authentication Enter, review and cancel limit orders
DTO for Bitso API v3 trades endpoint
 
 
 
 
Example showing the following: Connect to Bitso exchange with authentication get user trade history
Bitso User Transaction/Trade DTO for API v3
Bitso Withdrawal Transaction DTO Represents a withdrawal transaction
 
Bitso Withdrawal Currency Configuration DTO
Bitso Withdrawal Fee DTO
Withdrawal fee type enum
Bitso Withdrawal Icon Configuration DTO
Bitso Withdrawal Legal Operating Entity DTO
Bitso Withdrawal Limits DTO
Bitso Withdrawal Method DTO Represents withdrawal method information for a currency
Bitso Withdrawal Request DTO Used to create withdrawal requests
Bitso Withdrawal Security DTO
Bitso Withdrawal Security Mode DTO
Bitso Withdrawal Status DTO
Bitso Withdrawal Tag DTO
Bitso Withdrawal Travel Rule DTO
Bitso-specific parameters for withdrawing funds Supports both crypto and fiat withdrawals with Bitso's funding API
Example showing the following: Connect to Bitstamp exchange with authentication View account balance Get the bitcoin deposit address List unconfirmed deposits (raw interface only) List recent withdrawals (raw interface only) Withdraw a small amount of BTC
 
 
Various adapters for converting from Bitstamp DTOs to XChange DTOs
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Bitstamp WebSocket V2 Streaming Exchange implementation Created by Pavel Chertalev on 15.03.2018.
Bitstamp WebSocket V2 Streaming Market Data Service implementation Created by Pavel Chertalev on 15.03.2018.
Bitstamp WebSocket V2 streaming service implementation Created by Pavel Chertalev on 15.03.2018.
 
Demonstrate requesting Ticker at Bitstamp.
Example showing the following: Connect to Bitstamp exchange with authentication Enter, review and cancel limit orders
 
 
 
 
 
 
 
Example showing the following: Connect to Bitstamp exchange with authentication get user trade history
 
 
A central place for shared Bitstamp properties
 
 
 
Created by Pavel Chertalev
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Level of price aggregation Precision Level Number of significant figures P0 5 P1 4 P2 3 P3 2 P4 1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Used for open orders, order history, trade history.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
This Class represents the trade event generated by the websocket
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Created by semihunaldi on 26/11/2017
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Data object representing a CandleStick
 
 
 
 
 
 
Author: brox Since: 2/6/14
 
 
Author: brox Since: 2/6/14
 
 
 
Author: brox Since: 2/7/14
 
 
 
 
 
Author: brox Since: 2/5/14
 
Response to get_address call.
 
 
 
 
Author: brox Since: 2/6/14
Author: brox Since: 2/5/14
 
 
 
 
 
 
 
Author: Andrea Fossi Since: 22/06/18
Author: brox Since: 2/6/14
 
 
 
Object is returned when a position is opened
Author: Andrea Fossi Since: 22/06/18
Object is returned when a position is opened
Object is returned when open positions are requested
 
Author: brox Since: 2/5/14
 
 
 
 
Object contains position data
 
 
 
 
 
 
 
 
 
 
Author: brox Since: 2/5/14
 
Author: brox Since: 2/5/14
Author: brox Since: 2/6/14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Generic result value structure for every API endpoint.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Demonstrates requesting the ticker from Coincheck.
 
 
Demonstrates requesting public trades from Coincheck.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
This is based on BitstampDigest
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Conversion between XChange CurrencyPair and Coinmate API
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Implementation of the market data service for Korbit
 
 
Demonstrate requesting Ticker
 
 
 
 
 
 
Demonstrate requesting Ticker
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Represents a cash out request for Coins.ph API Based on POST /openapi/fiat/v1/cash-out endpoint
 
Represents a deposit address from Coins.ph API Based on GET /openapi/wallet/v1/deposit/address endpoint
Represents a deposit record from Coins.ph API Based on GET /openapi/wallet/v1/deposit/history endpoint
 
 
 
 
 
Represents a fiat channel from Coins.ph API Based on GET /openapi/fiat/v1/support-channel endpoint
 
 
 
 
Funding history parameters for Coins.ph
Represents a unified funding record (deposit or withdrawal) from Coins.ph API Used for adapting to XChange's FundingRecord
 
 
 
 
 
 
Implementation of OpenOrdersParams for Coins.ph.
 
 
 
 
 
 
 
 
 
Custom signature creator for Coins.ph API that directly extracts the timestamp and recvWindow parameters from the RestInvocation query string.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
WebSocket execution report message from Coins.ph.
WebSocket account position message from Coins.ph.
 
 
Represents a withdrawal response from Coins.ph API Based on POST /openapi/wallet/v1/withdraw/apply endpoint
Represents a withdrawal record from Coins.ph API Based on GET /openapi/wallet/v1/withdraw/history endpoint
 
 
 
 
 
 
 
 
Base class of streaming services, declares connect() method including before connection logic
The simplest Connection state model possible (maybe someone wants to add authenticated, connecting, etc...)
 
 
 
Crypto.com Exchange v1 REST API.
 
 
 
 
 
 
 
 
 
 
 
Builds and signs CryptoComRequest envelopes for Crypto.com Exchange v1 private endpoints.
Maps Crypto.com Exchange v1 numeric error codes (see "Common API Reference" in the API docs) to XChange exceptions.
Converts every Crypto.com-specific error - a 200 OK envelope with a non-zero code, or a non-2xx HTTP status deserialized into a CryptoComException - into the matching XChange ExchangeException here, at the single choke point every REST call passes through, so no caller (raw or otherwise) ever sees the exchange-specific exception type.
 
 
 
 
 
 
 
 
Acknowledgement result returned by private/create-order and private/cancel-order.
Each entry in bids/asks is [price, quantity, numberOfOrders].
 
 
The Crypto.com Exchange v1 user WebSocket feed requires signing in with public/auth immediately after connecting, before any user.* channel can be subscribed.
 
Envelope for all private (signed) Crypto.com Exchange v1 requests.
Crypto.com requires a strictly increasing request id on every signed REST call and every WebSocket message; shared by CryptoComExchange and the streaming module's connection classes so both keep the same "seed from current time, then increment" scheme in one place.
Envelope shared by every Crypto.com Exchange v1 REST response.
 
 
 
 
Handles the Crypto.com Exchange v1 WebSocket envelope shared by the public market-data feed and the private user feed: {"id","method","params":{"channels":[...]}} subscribe/unsubscribe requests, {"id","method","code","result":{"channel","subscription","data":[...]}} push messages, and the public/heartbeat / public/respond-heartbeat keepalive that the server requires every ~30 seconds or it closes the connection.
 
 
 
 
 
 
 
 
Payload of the user.trade.<instrument> channel.
 
 
 
A Currency class roughly modeled after Currency.
 
Value object to provide the following to API: Provision of major currency symbol pairs (EUR/USD, GBP/USD etc) Provision of arbitrary symbol pairs for exchange index trading, notional currencies etc
 
 
Exception indicating that a request was made with a CurrencyPair that is not supported on this exchange.
 
 
 
Converts CurrencyPair to string
 
 
Class computes a current time based nonce.
 
 
Raw access to authenticated DASE endpoints.
 
Exception class for DASE API errors that can be deserialized from HTTP error responses.
 
 
 
Holds shared auth state (api key, signer, timestamp factory) for DASE services.
Request body for DELETE /v1/orders to batch cancel by IDs.
Request body for POST /v1/orders/search.
Response body for POST /v1/orders/search.
Optional request body for DELETE /v1/orders/ (cancel all).
 
HMAC-SHA256 signer for DASE.
Adapter to convert DASE API error types into appropriate XChange exception types.
Represents an error response from the DASE API.
Exception specific to DASE exchange operations.
 
 
 
 
 
Immutable DTO representing an order from DASE REST API.
 
DASE-specific order flags.
Wrapper for GET /v1/orders list response.
Request body for placing an order (limit or market).
Response for placing an order.
 
 
Supplies current system time in milliseconds as String.
 
 
Raw access to Orders endpoints.
 
 
 
Utilities to provide the following to application: Provision of standard date and time handling
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Common implementation of TradeHistoryParamPaging interface
 
Common implementation of TradeHistoryParamsTimeSpan.
 
 
Exception indicating a requested deposit address has multiple networks and network required
Exception indicating a deposit address could not be created
Exception indicating a requested deposit address was not found
 
 
 
 
 
 
 
Demonstrate requesting OrderBook from Bitstamp and plotting it using XChart.
Demonstrate requesting OrderBook from Mercado Bitcoin and plotting it using XChart.
Demonstrate requesting OrderBook from Mercado Bitcoin and plotting it using XChart.
Demonstrate requesting Depth at Bitstamp
Author: brox Since: 2/6/14
Author: Kamil Zbikowski Date: 4/9/15 Demonstrate requesting Depth at Independent Reserve
Demonstrate requesting Depth at Mercado Bitcoin
Demonstrate requesting Depth at Mercado Bitcoin
Author: Aleksey Baryshnikov Date: 2/9/16 Demonstrate requesting Ether Depth at Independent Reserve
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Implementation of the market data service for Deribit Provides access to various market data values
 
 
 
 
 
V represents result class of the queried endpoint
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Converts timestamp in seconds to Instant
 
 
 
 
 
 
 
 
 
Implementation of the market data service for DVChain Provides access to various market data values
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Interface to provide the following to applications: Entry point to the XChange APIs
 
 
Author: Kamil Zbikowski Date: 4/13/15
Exception to provide the following to: Indication of generic Exchange exception
Factory to provide the following to Exchange: Manages the creation of specific Exchange implementations using runtime dependencies
 
This class is loaded during creation of the Exchange and is intended to hold both data that is readily available from an HTTP API request at an exchange extended by semi-static data that is not available from an HTTP API, but is still important information to have.
 
Indicates that the cause the error ware wrong credentials or insufficient privileges.
Specification to provide the following to ExchangeFactory: Provision of required exchangeSpecificParameters for creating an Exchange Provision of optional exchangeSpecificParameters for additional configuration
 
 
An exception indicating that the server is not available, possibly due to downtime
 
 
 
 
 
 
 
 
 
 
The API returns funding for a particular day only (it does not support a date range)
 
 
 
 
 
 
 
 
 
 
 
Based on code by chenshiwei on 2019/1/10.
 
DTO representing a fixed rate loan order A fixed rate loan order lets you specify a fixed rate for your loan order.
DTO representing a floating rate loan order A floating rate loan order is a loan order whose rate is determined by the market.
An exception indicating the request rate limit has been exceeded
 
 
 
 
 
DTO representing funding information
 
Enum representing funding transaction type
An exception indicating there are not enough funds for the action requested
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
https://docs.gemini.com/rest-api/#candles
 
 
 
 
 
 
 
 
 
 
Created by Lukas Zaoralek on 15.11.17.
Gemini order response contains details of any trades that have just executed in the order entry return value.
 
Implementation of the market data service for Gemini Provides access to various market data values
Implementation of the market data service for Gemini Provides access to various market data values
 
 
 
Created by Lukas Zaoralek on 15.11.17.
 
 
 
 
 
 
 
Created by Lukas Zaoralek on 15.11.17.
Created by Lukas Zaoralek on 15.11.17.
Created by Lukas Zaoralek on 15.11.17.
Created by Lukas Zaoralek on 15.11.17.
 
 
https://docs.gemini.com/rest-api/#ticker-v2
 
 
 
 
 
 
 
 
 
 
 
 
A central place for shared Gemini properties
Adapted from V1 by Max Gao on 01-09-2021
Created by Lukas Zaoralek on 15.11.17.
 
 
Author: veken0m
Author: veken0m
Author: veken0m
Author: veken0m
 
 
 
Based on code by chenshiwei on 2019/1/22.
 
Version 2 of HitBtc API.
 
 
 
 
 
Version 2 of HitBtc API.
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
Use LimitOrder with user reference instead.
 
 
 
 
 
 
 
 
 
 
 
 
Created by Pavel Chertalev on 15.03.2018.
Created by Pavel Chertalev on 15.03.2018.
Created by Pavel Chertalev on 15.03.2018.
 
 
 
 
 
 
 
 
 
 
 
 
Created by Pavel Chertalev on 15.03.2018.
Created by Pavel Chertalev on 15.03.2018.
Created by Pavel Chertalev on 15.03.2018.
Created by Pavel Chertalev on 15.03.2018.
Created by Pavel Chertalev on 15.03.2018.
Created by Pavel Chertalev on 15.03.2018.
Created by Pavel Chertalev on 15.03.2018.
Created by Pavel Chertalev on 15.03.2018.
Created by Pavel Chertalev on 15.03.2018.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Author: Kamil Zbikowski Date: 4/9/15
Author: Kamil Zbikowski Date: 4/10/15
Author: Kamil Zbikowski Date: 4/10/15
Author: Kamil Zbikowski Date: 4/10/15
 
Author: Kamil Zbikowski Date: 4/10/15
Author: Kamil Zbikowski Date: 4/10/15
Author: Kamil Zbikowski Date: 4/10/15
Author: Kamil Zbikowski Date: 4/10/15
Author: Kamil Zbikowski Date: 4/9/15
 
 
 
Author: Kamil Zbikowski Date: 4/15/15
Author: Kamil Zbikowski Date: 4/15/15
Author: Kamil Zbikowski Date: 4/10/15
 
 
Author: Kamil Zbikowski Date: 4/10/15
 
Author: Kamil Zbikowski Date: 4/10/15
Author: Kamil Zbikowski Date: 4/9/15
Author: Kamil Zbikowski Date: 4/9/15
Author: Kamil Zbikowski Date: 4/15/15
Author: Kamil Zbikowski Date: 4/14/15
Author: Kamil Zbikowski Date: 4/15/15
Author: Kamil Zbikowski Date: 4/9/15
 
 
Author: Kamil Zbikowski Date: 4/15/15
Author: Kamil Zbikowski Date: 4/15/15
 
 
see https://www.independentreserve.com/API#SynchDigitalCurrencyDepositAddressWithBlockchain
 
 
Author: Kamil Zbikowski Date: 4/16/15
Author: Kamil Zbikowski Date: 4/14/15
Author: Aleksey Baryshnikov Date: 8/31/2016.
Author: Kamil Zbikowski Date: 4/16/15
Author: Kamil Zbikowski Date: 4/16/15
 
Author: Kamil Zbikowski Date: 4/13/15
 
 
https://www.independentreserve.com/API#GetTransactions
 
 
 
 
Converts Instant to timestamp in seconds
Converts Instant to timestamp in seconds
Base object for financial instruments supported in xchange such as CurrencyPair, Future or Option
 
 
 
Exception indicating that a request was made with a Instrument that is not supported on this exchange.
 
 
 
 
 
An exception indicating there was an internal server error
 
Deserializes an ISO 8601 formatted Date String to a Java Date ISO 8601 format: yyyy-MM-dd'T'HH:mm:ssX
Deserializes an ISO formatted Date String to a Java Date ISO format: 'yyyy-MM-dd'T'HH:mm:ss.SSS'Z''
 
 
 
 
 
The Kucoin KlineInterval is similar to the Binance KlineInterval enum.
 
 
Example showing the following: Connect to Kraken exchange with authentication View account balance
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Data object representing depth from Kraken
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
The order type: * lmt - a limit order * post - a post-only limit order * mkt - an immediate-or-cancel order with 1% price protection * stp - a stop order * take_profit - a take profit order * ioc - an immediate-or-cancel order
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Test placing a limit order at Kraken
 
 
 
 
 
 
 
 
Data object representing DHLCs from Kraken
https://docs.kraken.com/api/docs/websocket-v1/openorders
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Kraken streaming adapters
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Data object representing depth from Kraken
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Based on code by zicong.lu on 2018/12/14.
 
 
 
Almost identical to Coinbase Pro (even down to the text in the API documentation).
DTO for Kucoin Earn Holding
DTO for Kucoin Earn Holdings paginated response
 
 
 
 
 
 
 
 
 
 
 
 
 
https://docs.kucoin.com/#place-a-new-order
 
Created by zicong.lu on 2018/12/14.
 
 
 
 
 
 
 
 
 
 
TODO same as Binance.
 
 
 
 
 
 
 
 
 
 
 
Response schema:
 
Response schema:
Response schema:
 
Response schema:
 
 
 
 
 
Response schema:
Response schema:
Response schema:
 
 
 
Response schema:
 
 
Response schema:
Response schema:
Response schema:
Response schema:
Response schema:
 
Response schema:
 
 
Response schema:
Response schema:
 
 
 
A full order book, consisting of every single limit order on the book on both the ask and bid sides.
DTO representing a limit order
 
 
Data object representing an order for a loan
DTO representing the exchange loan order book
 
 
Converts timestamp as double in milliseconds to Instant
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Interface to provide the following to Exchange: Standard methods available to explore the market data
DTO representing a market order
 
Exception indicating the Instrument was recognized by the exchange but their market is suspended - either temporarly or permanently.
Represents a single virtual cryptocurrency exchange - effectively a set of order books for each currency where trades can be placed as maker orders and taker orders can be matched.
 
Example showing the following: Connect to Mercado Bitcoin exchange with authentication View account balance Get the bitcoin deposit address Withdraw a small amount of BTC
 
 
 
 
Various adapters for converting from Mercado Bitcoin DTOs to XChange DTOs
 
 
 
 
 
 
 
 
 
 
 
 
Example showing the following: Connect to Mercado Bitcoin exchange with authentication Enter, review and cancel limit orders
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Exception to provide the following to API: Indication that the exchange does not support the requested function or data
Exception indicating that call cannot be completed because not connected to the exchange's streaming API.
Exception to provide the following to API: Indication that the exchange supports the requested function or data, but it's not yet been implemented
 
 
Various adapters for converting from OER DTOs to XChange DTOs
 
 
 
 
The exchange rates.
*
A central place for shared OER properties
 
https://www.okx.com/docs-v5/en/#rest-api-account-get-account-configuration *
 
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
Author: Max Gao (gaamox@tutanota.com) Created: 10-06-2021
... *
 
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 10-06-2021
 
 
 
 
https://www.okx.com/docs-v5/en/#rest-api-account-increase-decrease-margin *
https://www.okx.com/docs-v5/en/#rest-api-account-increase-decrease-margin *
https://www.okx.com/docs-v5/en/#rest-api-funding-get-currencies *
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
 
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
 
... *
 
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
 
Author: Max Gao (gaamox@tutanota.com) Created: 10-06-2021
 
... *
Response DTO received from placing, cancelling, and amending orders *
 
 
https://www.okx.com/docs-v5/en/#rest-api-account-get-positions
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
https://www.okx.com/docs-v5/en/#rest-api-account-set-leverage
https://www.okx.com/docs-v5/en/#rest-api-account-set-leverage
 
 
 
 
 
 
 
 
 
 
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 10-06-2021
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
Author: Max Gao (gaamox@tutanota.com) Created: 08-06-2021
https://www.okx.com/docs-v5/en/#rest-api-account-get-balance *
 
Payload for placing an order via OKX WebSocket private channel.
https://www.okx.com/docs-v5/en/#rest-api-funding-withdrawal
https://www.okx.com/docs-v5/en/#rest-api-funding-withdrawal
 
DTO representing open loan orders Open loan orders are loan order that have placed with the exchange that have not yet been matched to a counterparty.
DTO representing open orders
 
 
 
 
 
 
Root interface for all interfaces used as a parameter type for TradeService.getOpenOrders(OpenOrdersParams).
 
 
 
 
 
 
Exception indicating that the operation took to long and the exchange decided to timeout it
 
 
 
Data object representing an order
 
 
 
 
Exception indicating that the amount in the order you tried to place of verify was under the minimum accepted by the exchange
Based on code by chenshiwei on 2019/1/10.
DTO representing the exchange order book
Created by chenshiwei on 2019/1/19.
Based on code by chenshiwei on 2019/1/22.
Author: Kamil Zbikowski Date: 4/10/15
 
 
Created by chenshiwei on 2019/1/18.
 
 
Immutable data object representing a Market Depth update.
 
 
 
 
 
订单操作Facade Request类
 
 
Represents a request to create a new order (limit, market, or stop) on KuCoin.
 
 
Exception indicating place of verify an order which was not valid
 
 
 
Root interface for all interfaces used as a parameter type for TradeService.getOrder(org.knowm.xchange.service.trade.params.orders.OrderQueryParams...).
 
 
 
 
 
https://docs.bitfinex.com/reference#rest-auth-order-trades
 
 
 
 
 
Converts OrderType to string
Converts OrderType to string
Helps you to validate and / or adjust order values like price and amount to the restrictions dictated by InstrumentMetaData
 
 
Created by zicong.lu on 2018/12/14.
Created by zicong.lu on 2018/12/21.
 
 
 
 
 
 
 
Created by semihunaldi on 27/11/2017
Created by semihunaldi on 27/11/2017
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Response schema:
 
Use to specify subscriptions during the connect phase For instancing, use builder @link ProductSubscription.ProductSubscriptionBuilder
 
 
 
 
This will cause SimulatedExchange to fail 0.5% of the time with a selection of commnplace transient issues which could happen at any time in real life and should therefore be handled gracefully in client code.
 
Describe a call rate limit as a number of calls per some time span.
 
An exception indicating there the rate limit for making requests has been exceeded
 
 
 
 
 
 
Deserializes an rfc1123 formatted Date String to a Java Date rfc1123 format: 'EEE, dd MMM yyyy HH:mm:ss zzz'
 
 
 
 
 
 
 
 
A simple, in-memory implementation which mocks out the main elements of the XChange generic API in a consistent way.
 
Listener which is called every time the SimulatedExchange performs an operation.
 
 
 
 
 
 
DTO representing a stop order
 
 
 
 
Configuration for streaming exchange services
Factory to provide the following to StreamingExchange: Manages the creation of specific Exchange implementations using runtime dependencies
 
This class should be merged with ObjectMapperHelper from XStream..
 
 
Converts timestamp in milliseconds to Instant
 
Converts timestamp in seconds to Instant
Converts string value "1" to true, rest to false
Converts string value to Boolean
Converts string value "1" to true, rest to false
Converts string value to Currency
Converts string value to Currency
Converts string value to Currency
Converts string value to Currency
Converts string value to Currency
Converts string value to Currency
Converts string value to Currency
Converts string value to Currency
Converts string to CurrencyPair
Converts string to CurrencyPair
Converts string value to Currency
Converts string to Instrument
Converts string value to Date using BitstampUtils.parseDate
Converts string to FundingRecord.Status
Converts string to FundingRecord.Status
 
Converts string to Instrument
 
Converts string to OptionType
Converts string to OrderStatus
Converts string to OrderType
Converts string to OrderType
Converts string to OrderType
Converts string to OrderType
Converts string to OpenPosition.Type
 
Based on code by chenshiwei on 2019/1/11.
 
 
 
An exception indicating that the server is overloaded and the service is temporally unavailable i.e. when server return an http error 502
A class encapsulating the information a "Ticker" can contain.
Builder to provide the following to Ticker: Provision of fluent chained construction interface
 
Demonstrate requesting Order Book at Bitfinex
Author: brox Since: 2/6/14
Demonstrate requesting Ticker at Mercado Bitcoin.
Demonstrate requesting Ticker at Mercado Bitcoin.
Demonstrate requesting Ticker at Open Exchange Rates
 
Created by chenshiwei on 2019/1/10.
 
 
 
 
 
TODO same as Binance.
 
 
Data object representing a Trade
 
Author: brox Since: 2/6/14
 
 
TradeHistoryParams with client order id as param
 
 
 
 
 
 
 
 
 
TradeHistoryParams with order id as param
 
Root interface for all interfaces used as a parameter type for TradeService.getTradeHistory(TradeHistoryParams) .
Generic TradeHistoryParams implementation that implements all the interfaces in the hierarchy and can be safely (without getting exceptions, if that all the required fields are non-null) passed to any implementation of TradeService.getTradeHistory(TradeHistoryParams) .
 
 
 
Parameters type for TradeService.getTradeHistory(TradeHistoryParams) with start and end timestamps.
TradeHistoryParams with no parameters
TradeHistoryParams with id of single trade as param
Created by chenshiwei on 2019/1/18.
 
 
 
DTO representing a collection of trades
 
 
 
Demonstrate requesting Order Book at BTC-E
Demonstrate requesting Trades at Bitstamp
Author: brox Since: 2/6/14
Demonstrate requesting Trades at Mercado Bitcoin
Demonstrate requesting Trades at Mercado Bitcoin
Interface to provide the following to Exchange: Retrieve the user's open orders on the exchange Cancel user's open orders on the exchange Place market orders on the exchange Place limit orders on the exchange Change limit orders on the exchange
 
 
 
 
see https://docs.bitfinex.com/reference#rest-auth-transfer
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Converts double that represents unit milliseconds timestamp to Date. e.g. "1657444151.611" is converted to "Sun Jul 10 11:09:11 CEST 2022"
 
 
 
 
 
 
For several of the Upbit APIs a JSON array is returned.
 
 
 
 
 
 
 
 
 
 
 
Demonstrate requesting Ticker at Upbit
 
Implementation of the market data service for Korbit
 
 
Demonstrate requesting Ticker at Upbit
 
 
 
 
 
 
 
Demonstrate requesting limit order at Upbit
 
 
 
 
 
 
 
Data object representing a user trade
 
 
 
DTO representing a wallet
 
 
 
 
author: @paolo-rendano quick fix introduced for binance websocket broken on 2021-02-08 with "invalid websocket extension handshake"
Custom WebSocket client extension handler.
 
 
 
 
 
 
 
 
 
 
 
 
Root interface for all interfaces used as a parameter type for AccountService.withdrawFunds(WithdrawFundsParams) .
 
 
 
 
 
 
 
 
 
 
 
 
Demonstrate requesting OrderBook from YoBit.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Demonstrate requesting Trade from YoBit..