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
Demo requesting account info at Quoine
 
 
Interface to provide the following to Exchange: Standard methods available to explore send/receive account-related data
Created by joseph on 3/20/17.
 
https://docs.bitfinex.com/v2/reference#rest-auth-trades-hist
 
 
 
 
 
 
Based on code by zicong.lu on 2018/12/14.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
This code was taken from: https://github.com/bitcoinj/bitcoinj/blob/master/core/src/main/java/org/bitcoinj/core/Base58.java
 
 
 
 
Top of the hierarchy abstract class for an "exchange service"
 
Created by semihunaldi on 05/12/2017
 
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)
 
 
 
 
 
 
 
 
 
https://www.okex.com/docs/en/#futures-query
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Used for live subscription/unsubscription Created by Danny Pageau
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Initial support for the new BitBay API.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Bitbay specifc params for withdrawing fiat currency
 
 
Various adapters for converting from BitcoinAverage DTOs to XChange DTOs
 
 
Implementation of the generic market data service for BitcoinAverage Provides access to various market data values
Implementation of the raw market data service for BitcoinAverage Provides access to various market data values
 
Data object representing Ticker from BitcoinAverage
 
Data object representing List of Tickers from BitcoinAverage
A central place for shared BitcoinAverage properties
 
Various adapters for converting from BitcoinCharts DTOs to XChange DTOs
 
 
 
 
Demonstrates using the REST proxy to get the raw deserialized JSON object from BitcoinCharts
 
Demo requesting polling Ticker at BitcoinCharts
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Bitcointoyou Exchange public end-points.
AccountService implementation for Bitcointoyou Exchange.
Bitcointoyou adapter class.
Bitcointoyou Exchange end-points that needs a credential to be used.
 
 
 
 
The Bitcointoyou Exchange represantation itself.
 
 
MarketDataService implementation for Bitcointoyou Exchange.
 
Bitcointoyou order details
The Order response object that Bitcointoyou API returns.
Public trade Bitcointoyou Exchange representation.
 
TradeService implementation for Bitcointoyou Exchange.
 
TradeService raw implementation for Bitcointoyou Exchange.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
http://docs.bitfinex.com/#deposit-withdrawal-history
 
 
Demonstrate requesting Order Book at Bitfinex
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
 
 
 
 
 
 
 
 
 
Created by Lukas Zaoralek on 8.11.17.
Created by Lukas Zaoralek on 8.11.17.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Created by Lukas Zaoralek on 7.11.17.
Created by Lukas Zaoralek on 7.11.17.
Created by Lukas Zaoralek on 7.11.17.
 
[ { "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
 
 
 
 
 
Created by Lukas Zaoralek on 8.11.17.
Created by Lukas Zaoralek on 8.11.17.
Created by Lukas Zaoralek on 7.11.17.
Created by Lukas Zaoralek on 7.11.17.
Created by Lukas Zaoralek on 8.11.17.
Created by Lukas Zaoralek on 7.11.17.
Created by Lukas Zaoralek on 8.11.17.
Created by Lukas Zaoralek on 7.11.17.
Created by Lukas Zaoralek on 8.11.17.
 
Created by Lukas Zaoralek on 8.11.17.
 
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
 
 
 
 
Created by Lukas Zaoralek on 14.11.17.
 
 
 
 
 
 
Implementation of the market data service for Bitflyer Provides access to various market data values
Created by Lukas Zaoralek on 15.11.17.
Created by Lukas Zaoralek on 14.11.17.
 
 
 
 
 
 
 
 
 
Created by Lukas Zaoralek on 14.11.17.
Created by Lukas Zaoralek on 15.11.17.
Created by Lukas Zaoralek on 15.11.17.
 
 
Created by Lukas Zaoralek on 14.11.17.
Created by Lukas Zaoralek on 14.11.17.
Created by Lukas Zaoralek on 15.11.17.
 
 
Created by Lukas Zaoralek on 15.11.17.
 
invalid @link
TradeHistoryParam
.
 
 
 
 
Object representing body of request POST /v1/me/withdraw
Object representing json returned from GET /v1/me/withdraw
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Created by heath on 2018/3/1.
 
 
 
 
 
Data object representing depth from bitmex
 
 
 
 
 
 
 
 
 
 
 
 
Created by Lukas Zaoralek on 13.11.17.
 
 
 
Created by Lukas Zaoralek on 13.11.17.
Implementation of the market data service for Bitmex Provides access to various market data values
Implementation of the market data service for Bitmex Provides access to various market data values
 
 
 
Created by Lukas Zaoralek on 13.11.17.
 
 
 
 
 
 
 
 
 
See
invalid @link
Bitmex#placeOrder
See
invalid @link
Bitmex#placeOrder
 
 
 
see field description at http://www.onixs.biz/fix-dictionary/5.0.SP2/fields_by_name.html
 
 
Delivery dates for future date currencies
 
 
 
 
 
See
invalid @link
Bitmex#replaceOrder
See
invalid @link
Bitmex#replaceOrder
 
 
Created by Lukas Zaoralek on 12.11.17.
Created by Lukas Zaoralek on 13.11.17.
Created by Lukas Zaoralek on 13.11.17.
Created by Declan
 
 
Created by Lukas Zaoralek on 13.11.17.
 
 
 
Created by Lukas Zaoralek on 13.11.17.
 
 
 
 
 
 
 
 
Created by Lukas Zaoralek on 13.11.17.
Created by Lukas Zaoralek on 13.11.17.
 
Example showing the following: Connect to Bitso exchange with authentication View account balance Get the bitcoin deposit address Withdraw a small amount of BTC
 
 
 
 
 
 
 
 
 
 
 
 
 
Demonstrate requesting Depth at Bitso
 
 
 
 
 
 
Example showing the following: Connect to Bitso exchange with authentication Enter, review and cancel limit orders
 
 
 
 
Example showing the following: Connect to Bitso exchange with authentication get user trade history
 
 
A central place for shared Bitso properties
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
See https://bittrex.github.io/api/v3
 
 
 
 
 
 
 
 
 
 
 
Implementation of the market data service for Bittrex Provides access to various market data values
 
 
 
 
 
 
 
 
Rate limits values provided by the Bittrex team, as of Oct.
 
 
 
 
 
 
 
 
 
A central place for shared Bittrex utility operations
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Demonstrate requesting Ticker at Bit-Z.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Defines methods which need authentication
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Implementation of the market data service for Bleutrade Provides access to various market data values
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
jamespedwards42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
LIMIT ORDER PARAMETERS ParamDescription pricePrice per bitcoin sizeAmount of BTC to buy or sell time_in_force[optional] GTC, GTT, IOC, or FOK (default is GTC) cancel_after[optional] min, hour, day.
 
 
 
MARKET ORDER PARAMETERS ParamDescription size[optional] Desired amount in BTC funds[optional] Desired amount of quote currency to use One of size or funds is required.
 
These parameters are common to all order types.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
CoinbasePro Streaming Exchange.
Created by luca on 4/3/17.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
CoinbasePro subscription message.
Domain object mapping a CoinbasePro web socket message.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Demonstrates requesting the ticker from Coincheck.
 
 
Demonstrates requesting public trades from Coincheck.
 
 
 
 
 
 
 
 
 
 
CoinDeal API exception
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Demonstrate requesting Ticker at CoinEgg
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Various adapters for converting from Coingi DTOs to XChange DTOs
 
 
 
 
 
List of user balances
 
 
 
 
 
Binary to hexa convertor.
 
 
 
Depth range.
 
 
 
 
 
 
 
 
 
 
 
Current order book.
Orders grouped by value.
Orders list.
 
 
 
 
 
A currency pair rolling aggregation.
 
 
 
 
 
 
A single transaction
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
This is based on BitstampDigest
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Conversion between XChange CurrencyPair and Coinmate API
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Implementation of the market data service for Korbit
 
 
Demonstrate requesting Ticker at CoinEgg
 
 
 
 
 
 
Demonstrate requesting Ticker at CoinEgg
 
 
 
 
 
 
 
 
 
 
 
 
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...)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.
 
 
 
 
Class computes a current time based nonce.
 
Utilities to provide the following to application: Provision of standard date and time handling
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Common implementation of TradeHistoryParamPaging interface
 
Common implementation of TradeHistoryParamsTimeSpan.
 
 
 
 
 
 
 
 
 
 
 
 
Demonstrate requesting OrderBook from Bitstamp and plotting it using XChart.
Demonstrate requesting OrderBook from C-CEX 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 Bitmex Provides access to various market data values
Implementation of the market data service for Deribit Provides access to various market data values
 
V represents result class of the queried endpoint
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Implementation of the market data service for DVChain Provides access to various market data values
 
 
 
 
 
 
 
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 20-02-2021
Author: Max Gao (gaamox@tutanota.com) Created: 08-03-2021
Author: Max Gao (gaamox@tutanota.com) Created: 08-03-2021
 
 
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 08-03-2021
Author: Max Gao (gaamox@tutanota.com) Created: 20-02-2021
Author: Max Gao (gaamox@tutanota.com) Created: 20-02-2021
Author: Max Gao (gaamox@tutanota.com) Created: 20-02-2021
Author: Max Gao (gaamox@tutanota.com) Created: 20-02-2021
Author: Max Gao (gaamox@tutanota.com) Created: 08-03-2021
Author: Max Gao (gaamox@tutanota.com) Created: 08-03-2021
 
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 20-02-2021
Author: Max Gao (gaamox@tutanota.com) Created: 20-02-2021
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
 
 
 
 
 
 
 
 
 
Delivery dates for future date currencies
 
 
 
 
 
 
 
 
 
 
Order at best counter party price? (0:no 1:yes) the parameter is defaulted as 0.
1:open long 2:open short 3:close long 4:close short
 
 
 
 
 
Various adapters for converting from Bter DTOs to XChange DTOs
 
 
 
 
 
 
 
 
 
 
 
Data object representing depth from Bter
 
 
 
 
This may be used as the value of a @HeaderParam, @QueryParam or @PathParam to create a digest of the post body (composed of @FormParam's).
 
 
 
 
 
 
 
 
 
Created by David Henry on 2/19/14.
 
Created by David Henry on 2/19/14.
 
 
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 05-05-2021
Author: Max Gao (gaamox@tutanota.com) Created: 05-05-2021
Author: Max Gao (gaamox@tutanota.com) Created: 05-05-2021
 
 
 
 
 
 
 
 
 
 
 
Author: Max Gao (gaamox@tutanota.com) Created: 05-05-2021
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Gets or Sets IdexBuySell
 
 
 
 
 
 
 
 
 
 
 
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
 
 
 
 
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''
 
 
 
 
 
 
 
 
 
 
Created by joseph on 6/15/17.
 
 
 
 
 
 
 
 
 
 
 
 
Created by joseph on 6/15/17.
 
 
 
Created by joseph on 6/15/17.
 
 
 
Created by joseph on 6/15/17.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
The Kucoin KlineInterval is similar to the Binance KlineInterval enum.
 
Created by semihunaldi on 05/12/2017
 
 
Created by semihunaldi on 05/12/2017
Created by semihunaldi on 05/12/2017
Created by semihunaldi on 05/12/2017
 
Created by semihunaldi on 05/12/2017
Created by semihunaldi on 05/12/2017
 
Created by semihunaldi on 05/12/2017
 
 
Created by semihunaldi on 27/11/2017
 
 
 
 
 
 
 
 
 
 
 
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/websockets/#message-openOrders
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Kraken streaming adapters
 
 
 
 
 
 
 
 
 
 
 
Data object representing depth from Kraken
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Based on code by zicong.lu on 2018/12/14.
 
Almost identical to Coinbase Pro (even down to the text in the API documentation).
 
 
 
 
 
 
 
 
 
 
 
https://docs.kucoin.com/#place-a-new-order
 
Created by zicong.lu on 2018/12/14.
 
 
 
 
 
 
 
 
 
 
TODO same as Binance.
 
 
 
 
 
 
 
 
Asks and bids of crypto currency.
 
 
 
Kuna default exception.
Class for accessing Kuna Exchange.
 
 
Order of crypto currency.
 
 
 
Ticker of crypto currency.
 
Class encapsulates server time and ticker.
 
 
 
 
 
 
 
 
 
 
 
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:
https://docs.bitfinex.com/reference#rest-auth-ledgers
 
 
 
A full order book, consisting of every single limit order on the book on both the ask and bid sides.
 
 
 
 
 
 
 
 
 
 
 
Order left orderbook
 
 
 
 
 
 
 
Order could not be added to a batch.
 
 
 
 
 
Order was invalid
 
 
 
 
 
 
 
Order matched against another order
Order entered order book
 
 
 
Order was received by LGO execution engine in a batch
 
 
 
 
 
 
 
 
 
 
Order was received by LGO platform.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DTO representing a limit order
 
 
 
 
 
 
 
 
 
Base of all Livecoin responses
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DTO representing loan information
Data object representing an order for a loan
DTO representing the exchange loan order book
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
https://docs.bitfinex.com/reference#rest-auth-movements
 
 
 
 
 
 
 
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Created by Lukas Zaoralek on 16.11.17.
 
Instances of this class represent all holdings related to a specific contract, e.g.
 
 
 
 
 
 
#### spot #### https://github.com/okcoin-okex/API-docs-OKEx.com/blob/master/API-For-Spot-CN/%E5%B8%81%E5%B8%81%E4%BA%A4%E6%98%93WebSocket%20API.md ##### future #### https://github.com/okcoin-okex/API-docs-OKEx.com/blob/master/API-For-Futures-CN/%E5%90%88%E7%BA%A6%E4%BA%A4%E6%98%93WebSocket%20API.md https://github.com/okcoin-okex/API-docs-OKEx.com/blob/master/API-For-Futures-EN/WebSocket%20API%20for%20FUTURES.md
 
 
 
 
 
 
 
 
 
 
 
 
 
Withdraw result info
 
https://www.okex.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.okex.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.okex.com/docs-v5/en/#rest-api-account-get-balance *
 
 
 
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.
Demonstrate requesting OrderBook from C-CEX and plotting it using XChart.
Demonstrate requesting OrderBook from Livecoin.
 
Created by Lukas Zaoralek on 11.11.17.
Created by Lukas Zaoralek on 11.11.17.
Author: Kamil Zbikowski Date: 4/10/15
 
Created by chenshiwei on 2019/1/18.
 
Immutable data object representing a Market Depth update.
订单操作Facade Request类
 
 
 
 
订单创建对象
 
 
Exception indicating place of verify an order which was not valid
 
 
 
optional Fill in number for parameter, 0: Normal limit order (Unfilled and 0 represent normal limit order) 1: Post only 2: Fill Or Kill 3: Immediatel Or Cancel
 
 
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
 
 
 
 
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Created by Roland Schumacher on 12.09.2015.
 
 
 
 
 
 
 
 
 
 
 
 
Retrieves and prints information about supported currency pairs.
 
Poloniex order response contains details of any trades that have just executed in the order entry return value.
 
 
 
 
 
 
 
 
 
 
 
Created by Lukas Zaoralek on 11.11.17.
 
 
Created by Lukas Zaoralek on 10.11.17.
Created by Lukas Zaoralek on 10.11.17.
Created by Lukas Zaoralek on 10.11.17.
 
 
 
 
 
 
 
 
 
Created by John on 03/12/2017.
 
Created by Lukas Zaoralek on 11.11.17.
Created by Lukas Zaoralek on 11.11.17.
Created by Lukas Zaoralek on 11.11.17.
Created by Lukas Zaoralek on 11.11.17.
Created by Lukas Zaoralek on 10.11.17.
Created by Lukas Zaoralek on 11.11.17.
Created by Lukas Zaoralek on 11.11.17.
 
https://docs.bitfinex.com/v2/reference#rest-auth-positions
 
Response schema:
 
Use to specify subscriptions during the connect phase For instancing, use builder @link ProductSubscription.ProductSubscriptionBuilder
 
 
 
 
 
 
 
Created by Lukas Zaoralek on 14.11.17.
 
 
 
XChange service to provide the following to Exchange: ANX specific methods to handle account-related operations
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Demonstrate requesting Ticker at Quoine.
 
 
 
 
 
 
 
 
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'
 
 
 
 
 
 
Various adapters for converting from Ripple DTOs to XChange DTOs
 
See https://github.com/ripple/ripple-rest for up-to-date documentation.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Demonstrate requesting an order book from Ripple.
 
 
 
 
 
 
 
 
 
 
 
 
Returns public information that is stored in the ledger - secret not needed.
 
Address of the account for which the trade history is requested.
Keeps track of and restrict the number of notification and order detail queries that are made for a trade history.
Trade history queries (notifications and order detail) will continue until a trade with a hash matching this is found.
The complete set of parameters that a Ripple trade history query will consider.
Convert the Ripple trade currency pairs into having these preferred base or counter currency.
 
 
 
 
 
 
 
 
 
 
 
 
The level of commitment desired when querying state
 
 
 
 
 
This class borrows logic heavily from the Serum foundation's codebase:
 
 
 
 
 
 
 
 
 
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
 
 
 
 
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..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Based on code by chenshiwei on 2019/1/11.
Created by devin@kucoin.com on 2018-12-27.
 
 
An exception indicating that the server is overloaded and the service is temporally unavailable i.e.
 
 
 
 
 
 
 
 
The old API V0 https://api.therocktrading.com/doc/v0/index.html#api-Trading_API-GetOrders
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
https://api.therocktrading.com/doc/v1/index.html#api-Trading_API-Transactions
 
https://api.therocktrading.com/doc/v1/index.html#api-Trading_API-Trades
 
 
 
 
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
Demonstrate requesting Ticker from C-CEX.
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
Demonstrate requesting Ticker at Quoine.
Created by chenshiwei on 2019/1/10.
 
 
 
 
 
TODO same as Binance.
 
 
 
https://docs.bitfinex.com/v2/reference#rest-auth-trades-hist
 
Data object representing a Trade
 
 
 
Author: brox Since: 2/6/14
Demonstrate requesting Trade from Livecoin.
 
Created by Lukas Zaoralek on 11.11.17.
 
 
 
 
 
 
 
 
 
 
 
 
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
 
 
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
 
 
Created by John on 03/12/2017.
 
 
 
 
 
 
 
 
 
 
 
 
Converts double that represents unit milliseconds timestamp to Date.
 
 
 
 
 
 
For several of the Upbit APIs a JSON array is returned.
 
 
 
 
 
 
 
 
Demonstrate requesting limit order at Upbit
 
 
Implementation of the market data service for Korbit
 
 
Demonstrate requesting Ticker at Upbit
 
 
 
 
 
Demonstrate requesting Ticker at Upbit
 
 
 
 
 
 
 
 
 
Data object representing a user trade
 
 
 
 
 
 
 
Various adapters for converting from Vaultoro DTOs to XChange DTOs
 
 
 
 
 
 
 
 
 
 
Implementation of the market data service for Bittrex Provides access to various market data values
 
 
 
 
 
 
 
 
 
 
 
A central place for shared Vaultoro properties
 
 
https://docs.bitfinex.com/reference#rest-auth-wallets
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..