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, REFUNDED, 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 Active Currencies

Get available currencies information

curl https://flyp.me/api/v1/currencies

A currency needs to have both exchange and send set to true to be enabled for the accountless exchange. Confirmation time is the expected time in minutes (approximate). Other parameters are self explanatory.

result:


{"BTC": {"code":"BTC", "precision":8, "display_precision":4, "created_at":"2014-02-04T02:28:37.000Z", "updated_at":"2017-10-20T14:02:11.000Z", "name":"Bitcoin", "website":"https://bitcoin.org/", "confirmation_time":20, "default":false, "charged_fee":"0.0006", "currency_type":"CRYPTO", "exchange":true, "send":true},
 (...)
 "CREA": {"code":"CREA", "precision":8, "display_precision":4, "created_at":"2017-10-24T09:36:39.000Z", "updated_at":"2017-10-24T13:05:29.000Z", "name":"Creativecoin", "website":"https://www.creativechain.org", "confirmation_time":5, "default":false, "charged_fee":"0.01", "currency_type":"CRYPTO", "exchange":false, "send":false}}

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"}
}