API Documentation

CCXT - CryptoCurrency eXchange Trading Library

CCXT es nuestro proveedor de SDK autorizado y puede acceder a nuestra API a través de CCXT. Para obtener más información, visite https://ccxt.trade .

Web Socket

Web Socket proporcionar actualizaciones públicas del libro de pedidos, historial comercial y tarifas.

El URI base es wss://api.exchange.ripio.com/ws/v2/consumer/non-persistent/public/default/

Topics:

Hay tres tipos de temas: orderbook , trades y rate que deben concatenarse con el par. Por ejemplo: para el par BTC / DAI , el tema del libro de pedidos es orderbook_btc_dai , trade El tema del historial es trades_btc_dai y el tema de tasa i rate_btc_dai . Hay un tema especial que notifica las nuevas operaciones del usuario. Esto se obtiene en el paylod recibido cuando un usuario inicia sesión con éxito.

Suscripción:

La suscripción es un token que lo identifica como suscriptor para que las conexiones web sepan qué mensajes se entregaron o no. Asegúrese de utilizar el mismo token para evitar que falten actualizaciones. Cada mensaje recibido debe ser de conocimiento para que el conector web no lo envíe de nuevo.


import asyncio
import websockets
import base64
import json

suscription = 'suscription-test'
TOPIC = f'wss://api.exchange.ripio.com/ws/v2/consumer/non-persistent/public/default/orderbook_btc_day/{suscription}'

async def consumer():
    async with websockets.connect(TOPIC) as websocket:
        while True:
            msg = await websocket.recv()
            data = json.loads(msg)
            print(base64.b64decode(data['payload']))
            ack = {'messageId': data['messageId']}
            await websocket.send(ack)

asyncio.get_event_loop().run_until_complete(consumer())
    

Todas las cargas útiles están codificadas en Base64

Orderbook

updated_id son para la continuidad de las actualizaciones del libro de pedidos.

Las actualizaciones del libro de pedidos con importe 0 significa que el nivel debe eliminarse.


{
    "buy": [
        {
            "amount": "0.00001", 
            "total": "0.7303333", 
            "price": "73033.33"
        }
    ], 
    "sell": [
        {
            "amount": "0.00000", 
            "total": "0.00", 
            "price": "73033.33"
        }
    ], 
    "updated_id": 9144
}
    

Intercambios


{
    "created_at": 1597343710, 
    "amount": "0.00206", 
    "price": "68392.03", 
    "side": "BUY", 
    "pair": "BTC_BRL", 
    "taker_fee": "0", 
    "taker_side": "BUY", 
    "maker_fee": "0", 
    "taker": 13570460, 
    "maker": 13570271
}
    

Tarifas


{
    "pair": "BTC_BRL", 
    "last_price": "68558.59", 
    "low": "54736.11", 
    "high": "70034.68", 
    "variation": "8.75", 
    "volume": "10.10537"
}
    

Publico

Estos end-points no necesitan autenticación.

GET Listado de monedas

https://api.exchange.ripio.com/api/v1/currency/

Lista de monedas disponibles

Encabezados

Content-Type application/json

Response

raw (application/json)
{
    "next": null,
    "previous": null,
    "results": [
        {
            "name": "Argentine Peso",
            "symbol": "$",
            "decimal_places": 2,
            "currency": "ARS",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "Bitcoin Cash",
            "symbol": "BCH",
            "decimal_places": 8,
            "currency": "BCH",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "Bitcoin",
            "symbol": "BTC",
            "decimal_places": 8,
            "currency": "BTC",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "DAI",
            "symbol": "DAI",
            "decimal_places": 18,
            "currency": "DAI",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "Ether",
            "symbol": "ETH",
            "decimal_places": 18,
            "currency": "ETH",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "Mike Tango Bravo 18",
            "symbol": "MTB18",
            "decimal_places": 18,
            "currency": "MTB18",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "RCN",
            "symbol": "RCN",
            "decimal_places": 18,
            "currency": "RCN",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "USD Coin",
            "symbol": "USDC",
            "decimal_places": 6,
            "currency": "USDC",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "ZCash",
            "symbol": "ZEC",
            "decimal_places": 8,
            "currency": "ZEC",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "DAI",
            "symbol": "DAI",
            "decimal_places": 18,
            "currency": "DAI",
            "country": "ZZ",
            "enabled": true
        },
        {
            "name": "USD Coin",
            "symbol": "USDC",
            "decimal_places": 6,
            "currency": "USDC",
            "country": "ZZ",
            "enabled": true
        }
    ]
}
                
Solicitud de ejemploListado de monedas
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/currency/" \
   --header "Content-Type: application/json" \
Respuesta de ejemploListado de monedas
                        {
    "next": null,
    "previous": null,
    "results": [
        {
            "name": "Argentine Peso",
            "symbol": "$",
            "decimal_places": 2,
            "currency": "ARS",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "Bitcoin Cash",
            "symbol": "BCH",
            "decimal_places": 8,
            "currency": "BCH",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "Bitcoin",
            "symbol": "BTC",
            "decimal_places": 8,
            "currency": "BTC",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "DAI",
            "symbol": "DAI",
            "decimal_places": 18,
            "currency": "DAI",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "Ether",
            "symbol": "ETH",
            "decimal_places": 18,
            "currency": "ETH",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "Mike Tango Bravo 18",
            "symbol": "MTB18",
            "decimal_places": 18,
            "currency": "MTB18",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "RCN",
            "symbol": "RCN",
            "decimal_places": 18,
            "currency": "RCN",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "USD Coin",
            "symbol": "USDC",
            "decimal_places": 6,
            "currency": "USDC",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "ZCash",
            "symbol": "ZEC",
            "decimal_places": 8,
            "currency": "ZEC",
            "country": "AR",
            "enabled": true
        },
        {
            "name": "DAI",
            "symbol": "DAI",
            "decimal_places": 18,
            "currency": "DAI",
            "country": "ZZ",
            "enabled": true
        },
        {
            "name": "USD Coin",
            "symbol": "USDC",
            "decimal_places": 6,
            "currency": "USDC",
            "country": "ZZ",
            "enabled": true
        }
    ]
}

GET Lista de pares

https://api.exchange.ripio.com/api/v1/pair/

Listar todos los pares disponibles y sus comisiones

Encabezados

Content-Type application/json

Response

raw (application/json)
{
    "next": null,
    "previous": null,
    "results": [
        {
            "base": "BTC",
            "base_name": "Bitcoin",
            "quote": "ARS",
            "quote_name": "Argentine Peso",
            "symbol": "BTC_ARS",
            "country": "AR",
            "enabled": true,
            "priority": 0,
            "taker_fee": 0.0,
            "maker_fee": 0.0,
            "cancellation_fee": 0.0,
            "min_amount": "0.00001",
            "price_tick": "0.01",
            "min_value": "100"
        },
        {
            "base": "ETH",
            "base_name": "Ether",
            "quote": "ARS",
            "quote_name": "Argentine Peso",
            "symbol": "ETH_ARS",
            "country": "AR",
            "enabled": true,
            "priority": 0,
            "taker_fee": 0.0,
            "maker_fee": 0.0,
            "cancellation_fee": 0.0,
            "min_amount": "0.00001",
            "price_tick": "0.01",
            "min_value": "100"
        }
    ]
}
                
Solicitud de ejemploLista de pares
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/pair/" \
   --header "Content-Type: application/json" \
Respuesta de ejemploLista de pares
                        {
    "next": null,
    "previous": null,
    "results": [
        {
            "base": "BTC",
            "base_name": "Bitcoin",
            "quote": "ARS",
            "quote_name": "Argentine Peso",
            "symbol": "BTC_ARS",
            "country": "AR",
            "enabled": true,
            "priority": 0,
            "taker_fee": 0.0,
            "maker_fee": 0.0,
            "cancellation_fee": 0.0,
            "min_amount": "0.00001",
            "price_tick": "0.01",
            "min_value": "100"
        },
        {
            "base": "ETH",
            "base_name": "Ether",
            "quote": "ARS",
            "quote_name": "Argentine Peso",
            "symbol": "ETH_ARS",
            "country": "AR",
            "enabled": true,
            "priority": 0,
            "taker_fee": 0.0,
            "maker_fee": 0.0,
            "cancellation_fee": 0.0,
            "min_amount": "0.00001",
            "price_tick": "0.01",
            "min_value": "100"
        }
    ]
}

GET Todas las tarifas

https://api.exchange.ripio.com/api/v1/rate/all/

Lista todas las tarifas para todos los pares disponibles

Encabezados

Content-Type application/json

Body

raw (application/json)
{}
                

Response

raw (application/json)
[
    {
        "last_price": "618290.41",
        "low": "550000.00",
        "high": "640000.03",
        "variation": "6.60",
        "volume": "2.85738",
        "pair": "BTC_ARS",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "ARS",
        "quote_name": "Argentine Peso",
        "bid": "580000.01",
        "ask": "588326.27",
        "avg": "610901.39",
        "ask_volume": "0.00320",
        "bid_volume": "0.00210",
        "created_at": "2020-01-07 17:53:03.221650+00:00"
    },
    {
        "last_price": "32166.49",
        "low": "30126.63",
        "high": "32824.70",
        "variation": "6.19",
        "volume": "8.53806",
        "pair": "BTC_BRL",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "BRL",
        "quote_name": "Brazilian Real",
        "bid": "30289.89",
        "ask": "30205.70",
        "avg": "31583.87",
        "ask_volume": "0.00272",
        "bid_volume": "0.00291",
        "created_at": "2020-01-07 17:53:03.309171+00:00"
    },
    {
        "last_price": "7200.00",
        "low": "7200.00",
        "high": "8400.00",
        "variation": "-6.27",
        "volume": "0.02052",
        "pair": "BTC_USDC",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "USDC",
        "quote_name": "USD Coin",
        "bid": "7681.69",
        "ask": "8400.00",
        "avg": "7760.56",
        "ask_volume": "0.00315",
        "bid_volume": "0.00270",
        "created_at": "2020-01-07 17:53:03.485787+00:00"
    }
]
                
Solicitud de ejemploTodas las tarifas
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/rate/all/" \
   --header "Content-Type: application/json" \
--data "{}"
Respuesta de ejemploTodas las tarifas
                        [
    {
        "last_price": "618290.41",
        "low": "550000.00",
        "high": "640000.03",
        "variation": "6.60",
        "volume": "2.85738",
        "pair": "BTC_ARS",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "ARS",
        "quote_name": "Argentine Peso",
        "bid": "580000.01",
        "ask": "588326.27",
        "avg": "610901.39",
        "ask_volume": "0.00320",
        "bid_volume": "0.00210",
        "created_at": "2020-01-07 17:53:03.221650+00:00"
    },
    {
        "last_price": "32166.49",
        "low": "30126.63",
        "high": "32824.70",
        "variation": "6.19",
        "volume": "8.53806",
        "pair": "BTC_BRL",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "BRL",
        "quote_name": "Brazilian Real",
        "bid": "30289.89",
        "ask": "30205.70",
        "avg": "31583.87",
        "ask_volume": "0.00272",
        "bid_volume": "0.00291",
        "created_at": "2020-01-07 17:53:03.309171+00:00"
    },
    {
        "last_price": "7200.00",
        "low": "7200.00",
        "high": "8400.00",
        "variation": "-6.27",
        "volume": "0.02052",
        "pair": "BTC_USDC",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "USDC",
        "quote_name": "USD Coin",
        "bid": "7681.69",
        "ask": "8400.00",
        "avg": "7760.56",
        "ask_volume": "0.00315",
        "bid_volume": "0.00270",
        "created_at": "2020-01-07 17:53:03.485787+00:00"
    }
]

GET Tarifa por par

https://api.exchange.ripio.com/api/v1/rate/{{pair}}/

Tarifa por par

Encabezados

Content-Type application/json

Response

raw (application/json)
{
    "last_price": "618677.89",
    "low": "550000.00",
    "high": "640000.03",
    "variation": "6.66",
    "volume": "2.87748",
    "pair": "BTC_ARS",
    "base": "BTC",
    "base_name": "Bitcoin",
    "quote": "ARS",
    "quote_name": "Argentine Peso",
    "bid": "580000.01",
    "ask": "588326.27",
    "avg": "610960.60",
    "ask_volume": "0.00320",
    "bid_volume": "0.00210",
    "created_at": "2020-01-07 18:03:32.502568+00:00"
}
                
Solicitud de ejemploTarifa por par
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/rate/{{pair}}/" \
   --header "Content-Type: application/json" \
Respuesta de ejemploTarifa por par
                        {
    "last_price": "618677.89",
    "low": "550000.00",
    "high": "640000.03",
    "variation": "6.66",
    "volume": "2.87748",
    "pair": "BTC_ARS",
    "base": "BTC",
    "base_name": "Bitcoin",
    "quote": "ARS",
    "quote_name": "Argentine Peso",
    "bid": "580000.01",
    "ask": "588326.27",
    "avg": "610960.60",
    "ask_volume": "0.00320",
    "bid_volume": "0.00210",
    "created_at": "2020-01-07 18:03:32.502568+00:00"
}

GET Tarifas por pais

https://api.exchange.ripio.com/api/v1/rate/all/?country={{country_code}}

Tarifas por pais

Encabezados

Content-Type application/json

Response

raw (application/json)
[
    {
        "last_price": "618290.41",
        "low": "550000.00",
        "high": "640000.03",
        "variation": "6.60",
        "volume": "2.85738",
        "pair": "BTC_ARS",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "ARS",
        "quote_name": "Argentine Peso",
        "bid": "580000.01",
        "ask": "588326.27",
        "avg": "610901.39",
        "ask_volume": "0.00320",
        "bid_volume": "0.00210",
        "created_at": "2020-01-07 17:53:03.221650+00:00"
    },
    {
        "last_price": "32166.49",
        "low": "30126.63",
        "high": "32824.70",
        "variation": "6.19",
        "volume": "8.53806",
        "pair": "BTC_BRL",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "BRL",
        "quote_name": "Brazilian Real",
        "bid": "30289.89",
        "ask": "30205.70",
        "avg": "31583.87",
        "ask_volume": "0.00272",
        "bid_volume": "0.00291",
        "created_at": "2020-01-07 17:53:03.309171+00:00"
    },
    {
        "last_price": "7200.00",
        "low": "7200.00",
        "high": "8400.00",
        "variation": "-6.27",
        "volume": "0.02052",
        "pair": "BTC_USDC",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "USDC",
        "quote_name": "USD Coin",
        "bid": "7681.69",
        "ask": "8400.00",
        "avg": "7760.56",
        "ask_volume": "0.00315",
        "bid_volume": "0.00270",
        "created_at": "2020-01-07 17:53:03.485787+00:00"
    }
]
                
Solicitud de ejemploTarifas por pais
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/rate/all/?country={{country_code}}" \
   --header "Content-Type: application/json" \
Respuesta de ejemploTarifas por pais
                        [
    {
        "last_price": "618290.41",
        "low": "550000.00",
        "high": "640000.03",
        "variation": "6.60",
        "volume": "2.85738",
        "pair": "BTC_ARS",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "ARS",
        "quote_name": "Argentine Peso",
        "bid": "580000.01",
        "ask": "588326.27",
        "avg": "610901.39",
        "ask_volume": "0.00320",
        "bid_volume": "0.00210",
        "created_at": "2020-01-07 17:53:03.221650+00:00"
    },
    {
        "last_price": "32166.49",
        "low": "30126.63",
        "high": "32824.70",
        "variation": "6.19",
        "volume": "8.53806",
        "pair": "BTC_BRL",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "BRL",
        "quote_name": "Brazilian Real",
        "bid": "30289.89",
        "ask": "30205.70",
        "avg": "31583.87",
        "ask_volume": "0.00272",
        "bid_volume": "0.00291",
        "created_at": "2020-01-07 17:53:03.309171+00:00"
    },
    {
        "last_price": "7200.00",
        "low": "7200.00",
        "high": "8400.00",
        "variation": "-6.27",
        "volume": "0.02052",
        "pair": "BTC_USDC",
        "base": "BTC",
        "base_name": "Bitcoin",
        "quote": "USDC",
        "quote_name": "USD Coin",
        "bid": "7681.69",
        "ask": "8400.00",
        "avg": "7760.56",
        "ask_volume": "0.00315",
        "bid_volume": "0.00270",
        "created_at": "2020-01-07 17:53:03.485787+00:00"
    }
]

GET Cartera de ordenes

https://api.exchange.ripio.com/api/v1/orderbook/{{pair}}/

Obtenga la instantánea del libro de pedidos del par. Las actualizaciones del libro de pedidos se reciben a través de web socket.

Encabezados

Content-Type application/json

Response

raw (application/json)
{
    "buy": [
        {
            "amount": "0.00100",
            "total": "662.00",
            "price": "662000.00"
        },
        {
            "amount": "0.00100",
            "total": "661.00",
            "price": "661000.00"
        }
    ],
    "sell": [
        {
            "amount": "0.00100",
            "total": "665.00",
            "price": "665000.00"
        },
        {
            "amount": "0.01000",
            "total": "6800.00",
            "price": "680000.00"
        },
        {
            "amount": "0.00100",
            "total": "681.00",
            "price": "681000.00"
        }
    ],
    "updated_id": 0
}
                
Solicitud de ejemploCartera de ordenes
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/orderbook/{{pair}}/" \
   --header "Content-Type: application/json" \
Respuesta de ejemploCartera de ordenes
                        {
    "buy": [
        {
            "amount": "0.00100",
            "total": "662.00",
            "price": "662000.00"
        },
        {
            "amount": "0.00100",
            "total": "661.00",
            "price": "661000.00"
        }
    ],
    "sell": [
        {
            "amount": "0.00100",
            "total": "665.00",
            "price": "665000.00"
        },
        {
            "amount": "0.01000",
            "total": "6800.00",
            "price": "680000.00"
        },
        {
            "amount": "0.00100",
            "total": "681.00",
            "price": "681000.00"
        }
    ],
    "updated_id": 0
}

GET Profundidad cartera de ordenes

https://api.exchange.ripio.com/api/v1/orderbook/{{pair}}/depth/?amount=1.4

Obtenga la profundidad de la cartera de ordenes para un importe específico o toda la cartera de ordenes si no se envía el parámetro de amount

Encabezados

Content-Type application/json

Response

raw (application/json)
{
    "ask": {
        "price": 800583.54,
        "amount": 0.706,
        "quantity": 43
    },
    "bid": {
        "price": 689201.29,
        "amount": 0.6495,
        "quantity": 28
    }
}
                
Solicitud de ejemploProfundidad cartera de ordenes
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/orderbook/{{pair}}/depth/?amount=1.4" \
   --header "Content-Type: application/json" \
Respuesta de ejemploProfundidad cartera de ordenes
                        {
    "ask": {
        "price": 800583.54,
        "amount": 0.706,
        "quantity": 43
    },
    "bid": {
        "price": 689201.29,
        "amount": 0.6495,
        "quantity": 28
    }
}

GET Historia del comercio

https://api.exchange.ripio.com/api/v1/tradehistory/{{pair}}/

Obtén las últimas transacciones del par

Encabezados

Content-Type application/json

Response

raw (application/json)
[
    {
        "created_at": 1578414028,
        "amount": "0.00100",
        "price": "665000.00",
        "side": "BUY",
        "taker_fee": "0",
        "taker_side": "BUY",
        "match_price": "66500000",
        "maker_fee": "0",
        "taker": 4892,
        "maker": 4889
    },
    {
        "created_at": 1578413945,
        "amount": "0.00100",
        "price": "662000.00",
        "side": "SELL",
        "taker_fee": "0",
        "taker_side": "SELL",
        "match_price": "66200000",
        "maker_fee": "0",
        "taker": 4891,
        "maker": 4817
    },
    {
        "created_at": 1578340155,
        "amount": "0.00100",
        "price": "663000.00",
        "side": "SELL",
        "taker_fee": "0",
        "taker_side": "SELL",
        "match_price": "66300000",
        "maker_fee": "0",
        "taker": 4890,
        "maker": 4886
    },
    {
        "created_at": 1578340040,
        "amount": "0.00100",
        "price": "664000.00",
        "side": "SELL",
        "taker_fee": "0",
        "taker_side": "SELL",
        "match_price": "66400000",
        "maker_fee": "0",
        "taker": 4888,
        "maker": 4887
    },
    {
        "created_at": 1578340021,
        "amount": "0.01000",
        "price": "675000.00",
        "side": "BUY",
        "taker_fee": "0",
        "taker_side": "BUY",
        "match_price": "67500000",
        "maker_fee": "0",
        "taker": 4885,
        "maker": 4882
    },
    {
        "created_at": 1578332198,
        "amount": "0.01000",
        "price": "670000.00",
        "side": "BUY",
        "taker_fee": "0",
        "taker_side": "BUY",
        "match_price": "67000000",
        "maker_fee": "0",
        "taker": 4884,
        "maker": 4881
    }
]
                
Solicitud de ejemploHistoria del comercio
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/tradehistory/{{pair}}/" \
   --header "Content-Type: application/json" \
Respuesta de ejemploHistoria del comercio
                        [
    {
        "created_at": 1578414028,
        "amount": "0.00100",
        "price": "665000.00",
        "side": "BUY",
        "taker_fee": "0",
        "taker_side": "BUY",
        "match_price": "66500000",
        "maker_fee": "0",
        "taker": 4892,
        "maker": 4889
    },
    {
        "created_at": 1578413945,
        "amount": "0.00100",
        "price": "662000.00",
        "side": "SELL",
        "taker_fee": "0",
        "taker_side": "SELL",
        "match_price": "66200000",
        "maker_fee": "0",
        "taker": 4891,
        "maker": 4817
    },
    {
        "created_at": 1578340155,
        "amount": "0.00100",
        "price": "663000.00",
        "side": "SELL",
        "taker_fee": "0",
        "taker_side": "SELL",
        "match_price": "66300000",
        "maker_fee": "0",
        "taker": 4890,
        "maker": 4886
    },
    {
        "created_at": 1578340040,
        "amount": "0.00100",
        "price": "664000.00",
        "side": "SELL",
        "taker_fee": "0",
        "taker_side": "SELL",
        "match_price": "66400000",
        "maker_fee": "0",
        "taker": 4888,
        "maker": 4887
    },
    {
        "created_at": 1578340021,
        "amount": "0.01000",
        "price": "675000.00",
        "side": "BUY",
        "taker_fee": "0",
        "taker_side": "BUY",
        "match_price": "67500000",
        "maker_fee": "0",
        "taker": 4885,
        "maker": 4882
    },
    {
        "created_at": 1578332198,
        "amount": "0.01000",
        "price": "670000.00",
        "side": "BUY",
        "taker_fee": "0",
        "taker_side": "BUY",
        "match_price": "67000000",
        "maker_fee": "0",
        "taker": 4884,
        "maker": 4881
    }
]

Privado

Estos end-points necesitan autenticación.

Para estos end-points se requiere una clave API de autenticación que se pueda adquirir en el menú API de su cuenta.

GET Saldos de la cuenta

https://api.exchange.ripio.com/api/v1/balances/balances/

Saldos de la billetera y de intercambio lado a lado

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Response

raw (application/json)
[
    {
        "symbol": "BTC",
        "currency": "Bitcoin",
        "balance_type": "crypto",
        "wallet_available": 0.93745674,
        "exchange_available": 0.0
    },
    {
        "symbol": "USDC",
        "currency": "USD Coin",
        "balance_type": "crypto",
        "wallet_available": 4.9e-05,
        "exchange_available": 0.0
    },
    {
        "symbol": "BCH",
        "currency": "Bitcoin Cash",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ZEC",
        "currency": "ZCash",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "MTB18",
        "currency": "Mike Tango Bravo 18",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "LTC",
        "currency": "Litecoin",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ARS",
        "currency": "Argentine Peso",
        "balance_type": "fiat",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ETH",
        "currency": "Ether",
        "balance_type": "crypto",
        "wallet_available": 4.5827767853207e-05,
        "exchange_available": 0.0
    },
    {
        "symbol": "RCN",
        "currency": "RCN",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "DAI",
        "currency": "DAI",
        "balance_type": "crypto",
        "wallet_available": 4.25e-16,
        "exchange_available": 0.0
    }
]
                
Solicitud de ejemploSaldos de la cuenta
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/balances/balances/" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
Respuesta de ejemploSaldos de la cuenta
                        [
    {
        "symbol": "BTC",
        "currency": "Bitcoin",
        "balance_type": "crypto",
        "wallet_available": 0.93745674,
        "exchange_available": 0.0
    },
    {
        "symbol": "USDC",
        "currency": "USD Coin",
        "balance_type": "crypto",
        "wallet_available": 4.9e-05,
        "exchange_available": 0.0
    },
    {
        "symbol": "BCH",
        "currency": "Bitcoin Cash",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ZEC",
        "currency": "ZCash",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "MTB18",
        "currency": "Mike Tango Bravo 18",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "LTC",
        "currency": "Litecoin",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ARS",
        "currency": "Argentine Peso",
        "balance_type": "fiat",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ETH",
        "currency": "Ether",
        "balance_type": "crypto",
        "wallet_available": 4.5827767853207e-05,
        "exchange_available": 0.0
    },
    {
        "symbol": "RCN",
        "currency": "RCN",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "DAI",
        "currency": "DAI",
        "balance_type": "crypto",
        "wallet_available": 4.25e-16,
        "exchange_available": 0.0
    }
]

GET Balances de la cuenta

https://api.exchange.ripio.com/api/v1/balances/exchange_balances/

Ver todos los balances de la cuenta del usuario

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Response

raw (application/json)
[
    {
        "id": 10,
        "currency": "Argentine Peso",
        "symbol": "ARS",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "fiat"
    },
    {
        "id": 11,
        "currency": "Bitcoin",
        "symbol": "BTC",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    },
    {
        "id": 12,
        "currency": "Bitcoin Cash",
        "symbol": "BCH",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    },
    {
        "id": 13,
        "currency": "ZCash",
        "symbol": "ZEC",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    },
    {
        "id": 14,
        "currency": "Ether",
        "symbol": "ETH",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    },
    {
        "id": 17,
        "currency": "DAI",
        "symbol": "DAI",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    },
    {
        "id": 18,
        "currency": "USD Coin",
        "symbol": "USDC",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    }
]
                
Solicitud de ejemploBalances de la cuenta
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/balances/exchange_balances/" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
Respuesta de ejemploBalances de la cuenta
                        [
    {
        "id": 10,
        "currency": "Argentine Peso",
        "symbol": "ARS",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "fiat"
    },
    {
        "id": 11,
        "currency": "Bitcoin",
        "symbol": "BTC",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    },
    {
        "id": 12,
        "currency": "Bitcoin Cash",
        "symbol": "BCH",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    },
    {
        "id": 13,
        "currency": "ZCash",
        "symbol": "ZEC",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    },
    {
        "id": 14,
        "currency": "Ether",
        "symbol": "ETH",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    },
    {
        "id": 17,
        "currency": "DAI",
        "symbol": "DAI",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    },
    {
        "id": 18,
        "currency": "USD Coin",
        "symbol": "USDC",
        "available": "0",
        "locked": "0",
        "code": "exchange",
        "balance_type": "crypto"
    }
]

GET Detalles del saldo de intercambio

https://api.exchange.ripio.com/api/v1/balances/exchange_balances/{{balance_id}}

Detalles del saldo de intercambio

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Response

raw (application/json)
{
    "id": 11,
    "currency": "Bitcoin",
    "symbol": "BTC",
    "available": "0",
    "locked": "0",
    "code": "exchange",
    "balance_type": "crypto"
}
                
Solicitud de ejemploDetalles del saldo de intercambio
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/balances/exchange_balances/{{balance_id}}" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
Respuesta de ejemploDetalles del saldo de intercambio
                        {
    "id": 11,
    "currency": "Bitcoin",
    "symbol": "BTC",
    "available": "0",
    "locked": "0",
    "code": "exchange",
    "balance_type": "crypto"
}

GET Saldos de la billetera

https://api.exchange.ripio.com/api/v1/balances/wallet_balances/

Vea todos los saldos que el usuario ha almacenado en la billetera.

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Response

raw (application/json)
[
    {
        "symbol": "BTC",
        "currency": "Bitcoin",
        "balance_type": "crypto",
        "wallet_available": 0.93745674,
        "exchange_available": 0.0
    },
    {
        "symbol": "USDC",
        "currency": "USD Coin",
        "balance_type": "crypto",
        "wallet_available": 4.9e-05,
        "exchange_available": 0.0
    },
    {
        "symbol": "BCH",
        "currency": "Bitcoin Cash",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ZEC",
        "currency": "ZCash",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "MTB18",
        "currency": "Mike Tango Bravo 18",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "LTC",
        "currency": "Litecoin",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ARS",
        "currency": "Argentine Peso",
        "balance_type": "fiat",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ETH",
        "currency": "Ether",
        "balance_type": "crypto",
        "wallet_available": 4.5827767853207e-05,
        "exchange_available": 0.0
    },
    {
        "symbol": "RCN",
        "currency": "RCN",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "DAI",
        "currency": "DAI",
        "balance_type": "crypto",
        "wallet_available": 4.25e-16,
        "exchange_available": 0.0
    }
]
                
Solicitud de ejemploSaldos de la billetera
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/balances/wallet_balances/" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
Respuesta de ejemploSaldos de la billetera
                        [
    {
        "symbol": "BTC",
        "currency": "Bitcoin",
        "balance_type": "crypto",
        "wallet_available": 0.93745674,
        "exchange_available": 0.0
    },
    {
        "symbol": "USDC",
        "currency": "USD Coin",
        "balance_type": "crypto",
        "wallet_available": 4.9e-05,
        "exchange_available": 0.0
    },
    {
        "symbol": "BCH",
        "currency": "Bitcoin Cash",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ZEC",
        "currency": "ZCash",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "MTB18",
        "currency": "Mike Tango Bravo 18",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "LTC",
        "currency": "Litecoin",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ARS",
        "currency": "Argentine Peso",
        "balance_type": "fiat",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "ETH",
        "currency": "Ether",
        "balance_type": "crypto",
        "wallet_available": 4.5827767853207e-05,
        "exchange_available": 0.0
    },
    {
        "symbol": "RCN",
        "currency": "RCN",
        "balance_type": "crypto",
        "wallet_available": 0.0,
        "exchange_available": 0.0
    },
    {
        "symbol": "DAI",
        "currency": "DAI",
        "balance_type": "crypto",
        "wallet_available": 4.25e-16,
        "exchange_available": 0.0
    }
]

GET Detalles del saldo de la billetera

https://api.exchange.ripio.com/api/v1/balances/wallet_balances/{{balance_id}}

Detalles del saldo de la billetera

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Response

raw (application/json)
{
    "id": 11,
    "currency": "Bitcoin",
    "symbol": "BTC",
    "available": "0",
    "locked": "0",
    "code": "wallet",
    "balance_type": "crypto"
}
                
Solicitud de ejemploDetalles del saldo de la billetera
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/balances/wallet_balances/{{balance_id}}" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
Respuesta de ejemploDetalles del saldo de la billetera
                        {
    "id": 11,
    "currency": "Bitcoin",
    "symbol": "BTC",
    "available": "0",
    "locked": "0",
    "code": "wallet",
    "balance_type": "crypto"
}

POST Crea una orden

https://api.exchange.ripio.com/api/v1/order/{{pair}}/

Crea una orden

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Body

raw (application/json)
{
    "order_type": "LIMIT",
    "amount": "0.04",
    "limit_price": "10",
    "side": "BUY"
}
                

Response

raw (application/json)
{
    "order_id": "160f523c-f6ef-4cd1-a7c9-1a8ede1468d8",
    "pair": "BTC_ARS",
    "side": "BUY",
    "amount": "0.00400",
    "notional": null,
    "fill_or_kill": false,
    "all_or_none": false,
    "order_type": "LIMIT",
    "status": "OPEN",
    "created_at": 1578413945,
    "filled": "0.00000",
    "limit_price": "10.00",
    "stop_price": null,
    "distance": null
}
                
Solicitud de ejemploCrea una orden
                        curl --location --request POST "https://api.exchange.ripio.com/api/v1/order/{{pair}}/" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
--data "{ "order_type":"LIMIT", "amount":"0.04", "limit_price":"10", "side":"BUY" }"
Respuesta de ejemploCrea una orden
                        {
    "order_id": "160f523c-f6ef-4cd1-a7c9-1a8ede1468d8",
    "pair": "BTC_ARS",
    "side": "BUY",
    "amount": "0.00400",
    "notional": null,
    "fill_or_kill": false,
    "all_or_none": false,
    "order_type": "LIMIT",
    "status": "OPEN",
    "created_at": 1578413945,
    "filled": "0.00000",
    "limit_price": "10.00",
    "stop_price": null,
    "distance": null
}

GET Detalles de la orden

https://api.exchange.ripio.com/api/v1/order/{{pair}}/{{order_id}}/

Detalles de la orden

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Response

raw (application/json)
{
    "order_id": "0b4ff48e-cfd6-42db-8d8c-3b536da447af",
    "pair": "BTC_ARS",
    "side": "BUY",
    "amount": "0.00100",
    "notional": null,
    "fill_or_kill": false,
    "all_or_none": false,
    "order_type": "LIMIT",
    "status": "OPEN",
    "created_at": 1575472944,
    "filled": "0.00000",
    "limit_price": "661000.00",
    "stop_price": null,
    "distance": null
}
                
Solicitud de ejemploDetalles de la orden
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/order/{{pair}}/{{order_id}}/" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
Respuesta de ejemploDetalles de la orden
                        {
    "order_id": "0b4ff48e-cfd6-42db-8d8c-3b536da447af",
    "pair": "BTC_ARS",
    "side": "BUY",
    "amount": "0.00100",
    "notional": null,
    "fill_or_kill": false,
    "all_or_none": false,
    "order_type": "LIMIT",
    "status": "OPEN",
    "created_at": 1575472944,
    "filled": "0.00000",
    "limit_price": "661000.00",
    "stop_price": null,
    "distance": null
}

GET Órdenes de usuario

https://api.exchange.ripio.com/api/v1/order/{{pair}}/

Listar todas las ordenes del usuario

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Response

raw (application/json)
{
    "next": "https://api.exchange.ripio.com/api/v1/order/BTC_ARS/?limit=20&offset=20&page=1&page_size=25",
    "previous": null,
    "results": {
        "data": [
            {
                "order_id": "ca74280b-6966-4b73-a720-68709078922b",
                "pair": "BTC_ARS",
                "side": "SELL",
                "amount": "0.00100",
                "notional": null,
                "fill_or_kill": false,
                "all_or_none": false,
                "order_type": "LIMIT",
                "status": "OPEN",
                "created_at": 1578340134,
                "filled": "0.00000",
                "limit_price": "665000.00",
                "stop_price": null,
                "distance": null
            },
            {
                "order_id": "0b4ff48e-cfd6-42db-8d8c-3b536da447af",
                "pair": "BTC_ARS",
                "side": "BUY",
                "amount": "0.00100",
                "notional": null,
                "fill_or_kill": false,
                "all_or_none": false,
                "order_type": "LIMIT",
                "status": "OPEN",
                "created_at": 1575472944,
                "filled": "0.00000",
                "limit_price": "661000.00",
                "stop_price": null,
                "distance": null
            }
        ]
    }
}
                
Solicitud de ejemploÓrdenes de usuario
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/order/{{pair}}/" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
Respuesta de ejemploÓrdenes de usuario
                        {
    "next": "https://api.exchange.ripio.com/api/v1/order/BTC_ARS/?limit=20&offset=20&page=1&page_size=25",
    "previous": null,
    "results": {
        "data": [
            {
                "order_id": "ca74280b-6966-4b73-a720-68709078922b",
                "pair": "BTC_ARS",
                "side": "SELL",
                "amount": "0.00100",
                "notional": null,
                "fill_or_kill": false,
                "all_or_none": false,
                "order_type": "LIMIT",
                "status": "OPEN",
                "created_at": 1578340134,
                "filled": "0.00000",
                "limit_price": "665000.00",
                "stop_price": null,
                "distance": null
            },
            {
                "order_id": "0b4ff48e-cfd6-42db-8d8c-3b536da447af",
                "pair": "BTC_ARS",
                "side": "BUY",
                "amount": "0.00100",
                "notional": null,
                "fill_or_kill": false,
                "all_or_none": false,
                "order_type": "LIMIT",
                "status": "OPEN",
                "created_at": 1575472944,
                "filled": "0.00000",
                "limit_price": "661000.00",
                "stop_price": null,
                "distance": null
            }
        ]
    }
}

GET Filtro de ordenes del usuario por estado

https://api.exchange.ripio.com/api/v1/order/{{pair}}/?status=OPEN,PART

Filtro de ordenes del usuario por estado.
El estado consiste en una etiqueta de 4 letras cuyas posibilidades son:
- OPEN: Orden abierta disponible para completar en el libro de pedidos.
- PART: Pedido parcialmente completado, la cantidad restante por completar permanece en el libro de pedidos.
- CLOS: La orden se canceló antes de completarse, pero se negocia la cantidad ya ejecutada.
- CANC: La orden se canceló antes de cualquier llenado.
- COMP: La orden se completó por completo.

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Response

raw (application/json)
{
    "next": "https://api.exchange.ripio.com/api/v1/order/BTC_ARS/?limit=20&offset=20&page=1&page_size=25&status=OPEN%2CPART",
    "previous": null,
    "results": {
        "data": [
            {
                "order_id": "ca74280b-6966-4b73-a720-68709078922b",
                "pair": "BTC_ARS",
                "side": "SELL",
                "amount": "0.00100",
                "notional": null,
                "fill_or_kill": false,
                "all_or_none": false,
                "order_type": "LIMIT",
                "status": "OPEN",
                "created_at": 1578340134,
                "filled": "0.00000",
                "limit_price": "665000.00",
                "stop_price": null,
                "distance": null
            },
            {
                "order_id": "0b4ff48e-cfd6-42db-8d8c-3b536da447af",
                "pair": "BTC_ARS",
                "side": "BUY",
                "amount": "0.00100",
                "notional": null,
                "fill_or_kill": false,
                "all_or_none": false,
                "order_type": "LIMIT",
                "status": "OPEN",
                "created_at": 1575472944,
                "filled": "0.00000",
                "limit_price": "661000.00",
                "stop_price": null,
                "distance": null
            }
        ]
    }
}
                
Solicitud de ejemploFiltro de ordenes del usuario por estado
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/order/{{pair}}/?status=OPEN,PART" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
Respuesta de ejemploFiltro de ordenes del usuario por estado
                        {
    "next": "https://api.exchange.ripio.com/api/v1/order/BTC_ARS/?limit=20&offset=20&page=1&page_size=25&status=OPEN%2CPART",
    "previous": null,
    "results": {
        "data": [
            {
                "order_id": "ca74280b-6966-4b73-a720-68709078922b",
                "pair": "BTC_ARS",
                "side": "SELL",
                "amount": "0.00100",
                "notional": null,
                "fill_or_kill": false,
                "all_or_none": false,
                "order_type": "LIMIT",
                "status": "OPEN",
                "created_at": 1578340134,
                "filled": "0.00000",
                "limit_price": "665000.00",
                "stop_price": null,
                "distance": null
            },
            {
                "order_id": "0b4ff48e-cfd6-42db-8d8c-3b536da447af",
                "pair": "BTC_ARS",
                "side": "BUY",
                "amount": "0.00100",
                "notional": null,
                "fill_or_kill": false,
                "all_or_none": false,
                "order_type": "LIMIT",
                "status": "OPEN",
                "created_at": 1575472944,
                "filled": "0.00000",
                "limit_price": "661000.00",
                "stop_price": null,
                "distance": null
            }
        ]
    }
}

POST Cancelar una orden

https://api.exchange.ripio.com/api/v1/order/{{pair}}/{{order_id}}/cancel/

Cancelar una orden

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Response

raw (application/json)
{
    "order_id": "286e560e-b8a2-464b-8b84-15a7e2a67eab",
    "pair": "BTC_ARS",
    "side": "SELL",
    "amount": "0.00100",
    "notional": null,
    "fill_or_kill": false,
    "all_or_none": false,
    "order_type": "LIMIT",
    "status": "CANC",
    "created_at": 1575472707,
    "filled": "0.00000",
    "limit_price": "681000.00",
    "stop_price": null,
    "distance": null
}
                
Solicitud de ejemploCancelar una orden
                        curl --location --request POST "https://api.exchange.ripio.com/api/v1/order/{{pair}}/{{order_id}}/cancel/" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
Respuesta de ejemploCancelar una orden
                        {
    "order_id": "286e560e-b8a2-464b-8b84-15a7e2a67eab",
    "pair": "BTC_ARS",
    "side": "SELL",
    "amount": "0.00100",
    "notional": null,
    "fill_or_kill": false,
    "all_or_none": false,
    "order_type": "LIMIT",
    "status": "CANC",
    "created_at": 1575472707,
    "filled": "0.00000",
    "limit_price": "681000.00",
    "stop_price": null,
    "distance": null
}

GET Historial comercial del usuario

https://api.exchange.ripio.com/api/v1/trade/{{pair}}/

Historial comercial del usuario

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Response

raw (application/json)
{
    "next": "https://api.exchange.ripio.com/api/v1/trade/<pair>/?limit=20&offset=20",
    "previous": null,
    "results": {
        "data": [
            {
                "created_at": 1578414028,
                "amount": "0.00100",
                "price": "665000.00",
                "side": "BUY",
                "taker_fee": "0",
                "taker_side": "BUY",
                "match_price": "66500000",
                "maker_fee": "0",
                "taker": 4892,
                "maker": 4889
            },
            {
                "created_at": 1578413945,
                "amount": "0.00100",
                "price": "662000.00",
                "side": "SELL",
                "taker_fee": "0",
                "taker_side": "SELL",
                "match_price": "66200000",
                "maker_fee": "0",
                "taker": 4891,
                "maker": 4817
            }
        ]
    }
}
                
Solicitud de ejemploHistorial comercial del usuario
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/trade/{{pair}}/" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
Respuesta de ejemploHistorial comercial del usuario
                        {
    "next": "https://api.exchange.ripio.com/api/v1/trade/<pair>/?limit=20&offset=20",
    "previous": null,
    "results": {
        "data": [
            {
                "created_at": 1578414028,
                "amount": "0.00100",
                "price": "665000.00",
                "side": "BUY",
                "taker_fee": "0",
                "taker_side": "BUY",
                "match_price": "66500000",
                "maker_fee": "0",
                "taker": 4892,
                "maker": 4889
            },
            {
                "created_at": 1578413945,
                "amount": "0.00100",
                "price": "662000.00",
                "side": "SELL",
                "taker_fee": "0",
                "taker_side": "SELL",
                "match_price": "66200000",
                "maker_fee": "0",
                "taker": 4891,
                "maker": 4817
            }
        ]
    }
}

GET Detalles de comercio

https://api.exchange.ripio.com/api/v1/trade/{{pair}}/{{trade_id}}

Detalles de comercio

Encabezados

Content-Type application/json
Authorization Bearer {{API_KEY}}

Response

raw (application/json)
{
    "created_at": 1578413945,
    "amount": "0.00100",
    "price": "662000.00",
    "side": "SELL",
    "taker_fee": "0",
    "taker_side": "SELL",
    "match_price": "66200000",
    "maker_fee": "0",
    "taker": 4891,
    "maker": 4817
}
                
Solicitud de ejemploDetalles de comercio
                        curl --location --request GET "https://api.exchange.ripio.com/api/v1/trade/{{pair}}/{{trade_id}}" \
   --header "Content-Type: application/json" \
--header "Authorization: Bearer {{API_KEY}}" \
Respuesta de ejemploDetalles de comercio
                        {
    "created_at": 1578413945,
    "amount": "0.00100",
    "price": "662000.00",
    "side": "SELL",
    "taker_fee": "0",
    "taker_side": "SELL",
    "match_price": "66200000",
    "maker_fee": "0",
    "taker": 4891,
    "maker": 4817
}

Errors

Response payload of errors.

Errors consist of three parts: an status code, message and errors. Errors is a dictionary which each key is the source of the error and the value an array of the errors. Here is the error JSON payload:

                                            {
    "status_code":400,
    "errors":{
        "non_field_errors":[
            "Your balance is not enough for this order: You have 0 BTC but you need 1 BTC"
        ]
    },
    "message":"An error has occurred, please check the form."
}