Bitcoin and Altcoin Wallets: Exchange 2.3.3

orders.php

Helper functions that retrieve orders.

Tags
author

Alexandros Georgiou info@dashed-slug.net

Table of Contents

check_order_amount_min_max()  : mixed
Checks if the amount to be traded is within admin limits.
ensure_market_filled_orders()  : mixed
Ensure that no orders that are filled are stuck in "open" status

Functions

check_order_amount_min_max()

Checks if the amount to be traded is within admin limits.

check_order_amount_min_max(int $currency_id, float $amount) : mixed

If the exchange rate is not known, it will succeed silently.

Parameters
$currency_id : int

The currency transacted

$amount : float

The amount transacted.

Tags
throws
Exception

Will throw if it's out of range.

Return values
mixed

ensure_market_filled_orders()

Ensure that no orders that are filled are stuck in "open" status

ensure_market_filled_orders(mixed $table_name_orders) : mixed
Parameters
$table_name_orders : mixed
Return values
mixed

Search results