Create

Create a new order

curl -X POST -d @file.txt https://flyp.me/api/v1/order/create --header "Content-Type:application/json"

file.txt:

{
  "order": {
    "from_currency": "LTC",
    "to_currency": "ZEC",
    "ordered_amount": "0.01",
    "destination": "t1SBTywpsDMKndjogkXhZZSKdVbhadt3rVt"
  }
}

result:

{
  "expires": 3000,
  "deposit_address": "LQ5WXUm5RVdKMGaNUgXDEuQcLFRXpruQBv",
  "order": {
    "to_currency": "ZEC",
    "uuid": "9a14a8c2-cc2e-4156-bbdd-96437ef81bf6",
    "invoiced_amount": "0.08270149",
    "destination": "t1SBTywpsDMKndjogkXhZZSKdVbhadt3rVt",
    "exchange_rate": "0.1221259739",
    "ordered_amount": "0.01",
    "from_currency": "LTC"
  }
}
Take from there: "deposit_address" and "invoiced_amount"

notes:

On the initial request invoiced_amount can also be specified instead of ordered_amount.

Check

Check order status by uuid

Possible statuses are: WAITING_FOR_DEPOSIT, DEPOSIT_RECEIVED, DEPOSIT_CONFIRMED, EXECUTED, CANCELED and EXPIRED

curl -X POST -d @file.txt https://flyp.me/api/v1/order/check --header "Content-Type:application/json"

file.txt:

{"uuid": "9a14a8c2-cc2e-4156-bbdd-96437ef81bf6"}

result:

{"status": "WAITING_FOR_DEPOSIT"}

Info

Get order full info

curl -X POST -d @file.txt https://flyp.me/api/v1/order/info --header "Content-Type:application/json"

file.txt:

{"uuid": "9a14a8c2-cc2e-4156-bbdd-96437ef81bf6"}

result:

{
  "expires": 3000,
  "deposit_address": "LQ5WXUm5RVdKMGaNUgXDEuQcLFRXpruQBv",
  "order": {
    "to_currency": "ZEC",
    "uuid": "9a14a8c2-cc2e-4156-bbdd-96437ef81bf6",
    "invoiced_amount": "0.08270149",
    "destination": "t1SBTywpsDMKndjogkXhZZSKdVbhadt3rVt",
    "exchange_rate": "0.1221259739",
    "ordered_amount": "0.01",
    "from_currency": "LTC",
    "status": "WAITING_FOR_DEPOSIT"
  }
}

Cancel order

Cancel a pending order

curl -X POST -d @file.txt https://flyp.me/api/v1/order/cancel --header "Content-Type:application/json"

file.txt:

{"uuid": "9a14a8c2-cc2e-4156-bbdd-96437ef81bf6"}

result:


{"result":"ok"}

Query Rates

Get exchange rates

curl https://flyp.me/api/v1/data/exchange_rates

result:


{"LTC-BTC":"0.0156975877",
 "BTC-LTC":"60.5139402396",
 "PPC-BTC":"0.0004053465",
 (...)
 "PPC-LTC":"0.024900034",
 "BTC-PPC":"2338.8025331034"}

Query Limits

Get max and min values that can be requested

curl -X POST https://flyp.me/api/v1/order/limits

result:


{"BTC":{"max":"0.41755397","min":"0.00000418"},
 "LTC":{"max":"26.05803595","min":"0.00026059"},
 "PPC":{"max":"1001.56864476","min":"0.01001569"},
 (...)
 "SYS":{"max":"9468.34394558","min":"0.09468344"}
}