12-28-2017, 10:55 AM (This post was last modified: 12-28-2017, 01:56 PM by Beuntje.)
Ok I understand we want to create a link from thefiancegni to the different crypto exchanges. Hava made a start here. Comments welcome.
I think we should create a new page with balances in the UserCP.
From there we can access the trading interfacein which we can specify which currency we want to trade, if its a marketorder or limit order, the amount, the price (when it is a market order there is no price field).
This is very nice but maybe we should drop the ROI initially. The calculations could become very complicated. Lets say you buy your first BTC with USD and the next with LTC. How will you calculate the ROI? Unless you calculate everything back to the users main currency which we could set in settings.
We also would need to list the fiat balances of the user. Finally we need to list the open orders and the transactions (trades) that have been made.
Maybe we can create some shortcuts above the interface
It would be helpful to show the user what the max amount of coins he can buy given his current balance. In case he wants to sell all the coins of a certain type.
Finally it would be helpful to list the current market price
This is looking good but I would putt all in one screen. At the top trading interface, below that open orders, below that balances. How much would it cost to create this plugin?
I put together a quick app (MyBB plugin), here are the tables that I am using now: crypto_wallet:[img]D:\GoogleDrive\CryptoCurrency\Ethereum\crypto\CryptoTradeScreen.jpg[/img]
id smallint(5) auto_increment
user_id int(11)
currency varchar(6)
amount DECIMAL(16,8)
locked_funds DECIMAL(16,8)
exchange varchar(15)
last_updated DATE