Market Data API

Market ticks, orderbooks, trades & history data

Get all price sources

Returns:

List of all available price sources

Example URL:

http://127.0.0.1:8050/GetAllPriceSources

Get enabled price sources

Example URL: Returns:

List of all enabled price sources

Example URL:

http://127.0.0.1:8050/GetEnabledPriceSources

Get price markets

Required input:

  • priceSourceName : string of EnumPriceSource

Returns:

List of 'Market'

Example URL:

http://127.0.0.1:8050/GetPriceMarkets?priceSourceName=Bitfinex

Get price ticker

Required input:

  • priceSourceName : string of EnumPriceSource

  • primaryCoin : primary coin of the market.

  • secondaryCoin : secondary coin of the market.

  • contractName : contract name of the market (optional)

Returns:

'PriceTick' object of the last tick.

Example URL:

http://127.0.0.1:8050/GetPriceTicker?priceSourceName=Bitfinex&primaryCoin=BTC&secondaryCoin=USD&contractName=
http://127.0.0.1:8050/GetPriceTicker?priceSourceName=BitMEX&primaryCoin=XBT&secondaryCoin=USD&contractName=

Get minute price ticker

Required input:

  • priceSourceName : string of EnumPriceSource

  • primaryCoin : primary coin of the market.

  • secondaryCoin : secondary coin of the market.

  • contractName : contract name of the market (optional)

Returns:

'PriceTick' object of the last minute tick.

Example URL:

http://127.0.0.1:8050/GetMinutePriceTicker?priceSourceName=Bitfinex&primaryCoin=BTC&secondaryCoin=USD&contractName=

Get last trades

Required input:

  • priceSourceName : string of EnumPriceSource

  • primaryCoin : primary coin of the market.

  • secondaryCoin : secondary coin of the market.

  • contractName : contract name of the market (optional)

Returns:

List of 'Trade'

Example URL:

http://127.0.0.1:8050/GetLastTrades?priceSourceName=Bitfinex&primaryCoin=BTC&secondaryCoin=USD&contractName=

Get orderbook

Required input: Required input:

  • priceSourceName : string of EnumPriceSource

  • primaryCoin : primary coin of the market.

  • secondaryCoin : secondary coin of the market.

  • contractName : contract name of the market (optional)

Returns:

'Orderbook' object.

Example URL:

http://127.0.0.1:8050/GetOrderbook?priceSourceName=Bitfinex&primaryCoin=BTC&secondaryCoin=USD&contractName=

Get history

Required input:

  • priceSourceName : string of EnumPriceSource

  • primaryCoin : primary coin of the market.

  • secondaryCoin : secondary coin of the market.

  • contractName : contract name of the market (optional)

  • interval : number,

  • depth : number

Returns:

List of 'PriceTick' objects

Example URL:

http://127.0.0.1:8050/GetHistory?priceSourceName=Bitfinex&primaryCoin=BTC&secondaryCoin=USD&contractName=&interval=1&depth=100

Last updated