What is API?

LiteTree application programming interface (API) allows our clients to access and control their accounts, using custom written software.

Current version

1.1

Request limits

Do not make more than 600 request per 10 minutes or we will ban your IP address.

Sample code

Download LiteTree API PHP sample code

Ticker

POST https://www.litetree.com/api/1.1/ticker

Params

  • pair - acceptable values: LTC/USD, LTC/EUR, BTC/USD, BTC/EUR, LTC/BTC

Returns JSON string

  • result true/false
  • data
    • last - last price
    • high - last 24 hours price high
    • low - last 24 hours price low
    • volume - last 24 hours volume
    • bid - highest buy order
    • ask - lowest sell order

Order Book

POST https://www.litetree.com/api/1.1/order_book

Params

  • pair - acceptable values: LTC/USD, LTC/EUR, BTC/USD, BTC/EUR, LTC/BTC

Returns JSON string with "bids" and "asks". Each is a list of open orders and each order is represented as a list of rate and amount.

Params

  • pair - acceptable values: LTC/USD, LTC/EUR, BTC/USD, BTC/EUR, LTC/BTC

Returns JSON string

  • result true/false
  • data
    • bids/asks
      • amount
      • rate

Trades

POST https://www.litetree.com/api/1.1/trades

Executed trade orders.

Params

  • pair - acceptable values: LTC/USD, LTC/EUR, BTC/USD, BTC/EUR, LTC/BTC
  • offset - skip that that amount of transactions before beginning to return results. Default value is 0.
  • limit - max amount of transactions in the result. Default value is 100.
  • sort - desc or asc. Default value is desc.

Returns JSON string

  • result true/false
  • data
    • id
    • amount
    • rate
    • time

Account balance

POST https://www.litetree.com/api/1.1/balance

Params

  • account - LiteTree Account ID
  • key - LiteTree API key

Returns JSON string

  • result true/false
  • data
    • BTC
    • LTC
    • USD
    • EUR

Transactions

POST https://www.litetree.com/api/transactions

List of your transactions: trade, deposit, withdrawal, fee.

Params

  • account - LiteTree Account ID
  • key - LiteTree API key
  • offset - skip that that amount of transactions before beginning to return results. Default value is 0.
  • limit - max amount of transactions in the result. Default value is 100.
  • sort - desc or asc. Default value is desc.

Returns JSON string

  • result true/false
  • data
    • id
    • amount
    • currency
    • rate
    • operation, 0 - deposit, 1 - withdrawal, 2 - trade, 3 - fee
    • time

Active Orders

POST https://www.litetree.com/api/active_orders

List of your open trade orders.

Params

  • account - LiteTree Account ID
  • key - LiteTree API key

Returns JSON string

  • result true/false
  • data
    • id
    • amount
    • rate
    • pair
    • type
    • time

Create Order

POST https://www.litetree.com/api/create_order

Create new trade order.

Params

  • account - LiteTree Account ID
  • key - LiteTree API key
  • pair - acceptable values: LTC/USD, LTC/EUR, BTC/USD, BTC/EUR, LTC/BTC
  • type - acceptable values: sell, buy
  • rate
  • amount

Returns JSON string

  • result true/false
  • data
    • id - trade order ID
    • balance
      • USD
      • EUR
      • LTC
      • BTC

Cancel Order

POST https://www.litetree.com/api/cancel_order

Create new trade order.

Params

  • account - LiteTree Account ID
  • key - LiteTree API key
  • order id

Returns JSON string

  • result true/false
  • data
    • balance
      • USD
      • EUR
      • LTC
      • BTC