Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Darkpool API

Christopher Almquist edited this page Mar 5, 2015 · 13 revisions

Orders

Place Order

POST /orders

Request

{
    "quantity": "<number>",
    "price": "<number>",
    "side": "[buy|sell]",
    "type": "[market|limit|stop]",
    "threashold": "<number>?"
}

Response

{
    "id": "<UUID>"
}

Cancel Order

DELETE /orders/<order-id>

It should return a 200 or 204 if the order is canceled.

I do not know what to return if the order cannot be canceled yet.

Get Order

GET /orders/<order-id>

Response

{
    "quantity": "<number>",
    "current_quantity": "<number>",
    "price": "<number>",
    "side": "[buy|sell]",
    "type": "[market|limit|stop]",
    "threashold": "<number>?",
    "status": "<status>", // What are the legal values of "status"?
    "settled": "<boolean>",
    "create_at": "<time>",
    "fulfilled_at": "<time>
}

Clone this wiki locally