Settling Fees
Now for quite possibly the entire reason you decided to get into Exchange operation, those juicy fees. Just as before, this really couldn't be easier.
So after a few trades have gone back and forth, you may have noticed that part of the object returned from the getUserTrades command was fees. In our example, these were teeny tiny little slivers of USDT, but as my old teacher said "Look after the pennies and the pounds will look after themselves" (replace with pounds and pennies with your regional currency).
So as trades get fulfilled on your exchange these fees will mount up and up, ready to be released (settled) to the admin account. Luckily, this could not be simpler.
settleFees
requires a 48-hour period 'cooldown' between uses
Settling Fees Script
Transfer Assets Script: Output
Last updated