Version: 0.0.1
Introduction
The Outlogic API allows you to programmatically access our exchange.
Assets
Fetch all available assets
Request
curl -L -X GET https://app.outlogic.net/v1/assets/ \
-H 'Accept: application/json'
Response
[
{
"name": "Euro",
"symbol": "EUR",
"precision": 2,
"asset_type": "fiat",
"hash": "",
"cg_id": "eur",
"network": null
},
{
"name": "Bitcoin",
"symbol": "BTC",
"precision": 8,
"asset_type": "crypto",
"hash": "",
"cg_id": "bitcoin",
"network": "bitcoin"
}
]
Fetch limits for a specific trade
Request
curl -L -X GET 'https://app.outlogic.net/v1/order/limits/:from_asset/:to_asset/' \
-H 'Accept: application/json'
Response
{
"min": 50,
"max": 150000
}
Orders
Place an order
Request
curl -L -X POST 'https://app.outlogic.net/v1/order/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"email": "user@example.com",
"from_amount": 0.021,
"from_asset": "BTC",
"to_asset": "USD",
"refund_crypto_address": "bc1q7zp7qycuf0ukcgjs5nw8398cf3az64wn52lx2d",
"destination_type": "crypto",
"destination_crypto_address": "0x74f306D64244319F642BF405054743A5A8400302",
}'
Response
{
"order": {
"id": "498c5827-7ba9-449a-9215-21e3d88ec987",
"status": "DEPOSIT_CONFIRMED",
"email": "user@example.com",
"refund_crypto_address": "bc1q7zp7qycuf0ukcgjs5nw8398cf3az64wn52lx2d",
"created_at": "2023-12-28T16:06:53.532063Z",
"expires_at": "2023-12-29T16:06:53.532063Z",
"confirmed_at": "2023-12-28T17:06:53.532063Z",
"deposit_crypto_address": "bc1q8u2y8r5r8a9p6vx3s3wz835zh6nxhdmd55lhhq",
"from_amount": 0.021,
"from_asset": "BTC",
"to_asset": "USD",
"destination_type": "crypto",
"destination_crypto_address": "0x74f306D64244319F642BF405054743A5A8400302"
},
"trade": {
"from_amount": 0.021,
"from_asset": "BTC",
"to_amount": 0.39,
"to_asset": "USD",
"fee_amount": 0.01,
"price": 19.34,
"timestamp": "2023-12-28T17:06:53.532063Z"
}
}
Check order info
Request
curl -L -X GET 'https://app.outlogic.net/v1/order/info/:id/' \
-H 'Accept: application/json'
Check order status
Request
curl -L -X GET 'https://app.outlogic.net/v1/order/check/:id/' \
-H 'Accept: application/json'
Response
{
"status": "COMPLETED"
}
Trading
If an order is rejected, an email will be sent to the address given when placing the order.
Orders are executed on business hours and prices are assigned once the order is APPROVED
Gift Cards
Create a gift card payment link
Request
curl -X POST http://localhost:8000/v1/gift-card/stripe/buy/ \
-H 'Content-Type: application/json' \
-d '{"value": 100, "currency": "USD", "email": "customer@example.com"}'
Response
{"payment_link":"https://buy.stripe.com/test_bIY28F2j4dzYbrqbJ3","checkout_id":"0c869910-3f24-48b7-b260-947303033943","value":100,"currency":"USD","status":"pending"}
Check payment/card status
Request
curl -X GET http://localhost:8000/v1/gift-card/stripe/checkout/0c869910-3f24-48b7-b260-947303033943/
Response
{"checkout_id":"0c869910-3f24-48b7-b260-947303033943","status":"completed","value":100.0,"currency":"USD","gift_card":{"identification_code":"ID-JSBYPMSR","value":100.0,"currency":"USD","active":true,"redeemed":false}}
Redeem a gift card
Request
curl -X POST http://localhost:8000/v1/gift-card/redeem/ \
-H 'Content-Type: application/json' \
-d '{
"code_str": "1c218aa3-c2c5-4465-8dc4-540c90640ebc",
"email": "customer@example.com",
"to_asset": "BTC",
"destination_crypto_address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh"
}'
Response
{"id": "nljyy9ezbvlahbj4ixtsd3k5s9g4g1up", "email": "customer@example.com", "from_asset": "USD", "to_asset": "BTC", "from_amount": 100.0, "status": "WAITING_FOR_DEPOSIT", "created_at": "2025-04-23 23:56:53", "funding_type": "default", "origin": "web", "destination_type": "crypto", "destination_crypto_address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh"}