We need 2 things.
PHP code to perform the operation.
How does the processor work?
There is an order book with SALES and PURCHASE offers.
Every minute, cron executes the processing of requests. Each order in the database is marked as being processed.
For each order, the processor seeks to find other orders equivalent to the amount that the current order desires.
Order 14: we are buying 1 BTC for 10 BRL
Order 18: Selling 0.5 BTC for 10 BRL
In this case above order 18 and finalized, because every BTC was sold to order 14.
But order 14 still needs to buy 0.5 BTC to be finalized, again the processor needs to look for a new sale offer to try to finish order 14.
Bu iş için 4 freelancer ortalamada $202 teklif veriyor
Software - Order Processor Relevant Skills and Experience PHP, Software Architecture Proposed Milestones $155 USD - PHP, Software Architecture programming