Place an order

Places an order and instantly returns the id, as execution against exchanges is asynchronous.

Example:
$order = NexoPro::placeOrder(
    pair: 'BTC/USDT',
    side: 'buy',
    type: 'limit',
    amount: 0.01,
    price: 16500
);
{
  "id": "1234567768_8989"
}

Use the id to get more specific information via getOrder().

Last updated