Market Data API
Market ticks, orderbooks, trades & history data

Get all price sources

Returns:
List of all available price sources
Example URL:
1
http://127.0.0.1:8050/GetAllPriceSources
Copied!

Get enabled price sources

Example URL: Returns:
List of all enabled price sources
Example URL:
1
http://127.0.0.1:8050/GetEnabledPriceSources
Copied!

Get price markets

Required input:
    priceSourceName : string of EnumPriceSource
Returns:
List of 'Market'
Example URL:
1
http://127.0.0.1:8050/GetPriceMarkets?priceSourceName=Bitfinex
Copied!

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:
1
http://127.0.0.1:8050/GetPriceTicker?priceSourceName=Bitfinex&primaryCoin=BTC&secondaryCoin=USD&contractName=
2
http://127.0.0.1:8050/GetPriceTicker?priceSourceName=BitMEX&primaryCoin=XBT&secondaryCoin=USD&contractName=
Copied!

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:
1
http://127.0.0.1:8050/GetMinutePriceTicker?priceSourceName=Bitfinex&primaryCoin=BTC&secondaryCoin=USD&contractName=
Copied!

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:
1
http://127.0.0.1:8050/GetLastTrades?priceSourceName=Bitfinex&primaryCoin=BTC&secondaryCoin=USD&contractName=
Copied!

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:
1
http://127.0.0.1:8050/GetOrderbook?priceSourceName=Bitfinex&primaryCoin=BTC&secondaryCoin=USD&contractName=
Copied!

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:
1
http://127.0.0.1:8050/GetHistory?priceSourceName=Bitfinex&primaryCoin=BTC&secondaryCoin=USD&contractName=&interval=1&depth=100
Copied!
Last modified 2yr ago