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.
fee - 1% of amount
type - Sell or buy
status - 0 done, 1 canceled, 2 in process, 3 completed, 4 partial done
21 freelancers are bidding on average $168 for this job
I have 5 year of Professional Experience in Web Application Development Relevant Skills and Experience PHP, Software Architecture Proposed Milestones $155 USD - 1