3s3s / opentrade

OpenTrade - Open Source Cryptocurrency Exchange
MIT License
396 stars 401 forks source link

How opentrade monitor deposit from blockchain #303

Closed marktan93 closed 5 years ago

marktan93 commented 5 years ago

Hi all, i try to study the flow and code of how monitor and update the balance ? My previous idea was create a daemon and keep monitor the changes on blockchain, not sure is it correct. May i know which line of codes that opentrade implemented the function ? is it at api/v1.js exports.onAccountGetBalance = function(req, res) Thanks