building a virtual stock trading system using JSON RPC in golang
$10-30 USD
Κλειστή
Αναρτήθηκε πάνω από 8 χρόνια πριν
$10-30 USD
Πληρωμή κατά την παράδοση
he system must use real-time pricing via Yahoo finance API and will support USD currency only. The system has two features:
Buying stocks
Request
“stockSymbolAndPercentage”: string (E.g. “GOOG:50%,YHOO:50%”)
“budget” : float32
Response
“tradeId”: number
“stocks”: string (E.g. “GOOG:100:$500.25”, “YHOO:200:$31.40”)
“unvestedAmount”: float32
Checking your portfolio (loss/gain)
Request
“tradeId”: number
Response
“stocks”: string (E.g. “GOOG:100:+$520.25”, “YHOO:200:-$30.40”)
“currentMarketValue” : float32
“unvestedAmount”: float32
The system will have 2 components: client and server.
server: the trading engine will have JSON-RPC interface for the above features.
client: the JSON-RPC client will take command line input and send requests the server.