grpcoin / grpcoin Goto Github PK
View Code? Open in Web Editor NEWAPI-driven cryptocurrency paper trading game. Write a bot and play!
Home Page: https://grpco.in
License: Apache License 2.0
API-driven cryptocurrency paper trading game. Write a bot and play!
Home Page: https://grpco.in
License: Apache License 2.0
from https://github.com/ahmetozer/grpcoin-frontend but the svg doesn't seem to
be properly vector-drawn.
Instead of buying/selling at current price, users should be able to CRUD a conditional trade order, that can also execute when they are away.
The semantics can be like following:
Service ConditionalOrders
The Condition will be the price of the crypto and the amount will be the asset you are giving(checked with a oneof field). For example:
$ ./client conditional create buy btc 37000 50k
will buy 50k worth of bitcoin when its price is equal/below 37000.
$ ./client conditional create sell btc 38000 1
will sell 1 btc when the price hits 38000.
To prevent over-subscription, as soon as the conditional order is placed, the resources will be taken from the user's account and preserved in the new table, tied to the order. Cancelling a pending order will return the unit back to user's bank.
Every time the ticker updates the current price, it will send an rpc to CheckOrders, which will search for orders that satisfy the new price, and execute them. (If every time is too much, a different frequency can be used).
Orders will always execute with the price in their contract and not from the current price. E.g. if you give sell order at 38k, but the new price was 40k in the next ticker update, it will still sell from 38. Tough luck...
For the leaderboard, the assets that are tied to a conditional order will also be taken into account while calculating the final worth.
Since this is a learning game , a different metric can show the total asset value tied to pending conditional orders that the exchange has at any time, which will teach traders who the actual winner is :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.