cyber-markets
cyber-markets copied to clipboard
cyber-markets API 1.0
Copied by @21xhipster from here:
Under stable API I mean the following:
- Standard convention for future
- API docs
After that we can call community to start build apps
New data model:
/**
* @property price - map of BCT_Symbol(Base Tokens) -> Exchange -> TokenPrice
* @property volume - map of CT_Symbol -> Exchange -> Volume
* @property baseVolume - map of BCT_Symbol -> exchange -> TotalVolume in BCT
*/
data class TokenTicker(
val symbol: String,
var timestampFrom: Long,
var timestampTo: Long,
val interval: Long,
val price: MutableMap<String, MutableMap<String, TokenPrice>> = mutableMapOf(),
val volume: MutableMap<String, MutableMap<String, BigDecimal>> = mutableMapOf(),
val baseVolume: MutableMap<String, MutableMap<String, BigDecimal>> = mutableMapOf()
)
I restructure issue a bit more. As a first point of api implementation we should design it.
- [x] Using swagger and openapi 3 create Markets API DOCS service
- [x] Define tokens api
- [x] Defines orderbook api
- [x] Define trades api
- [x] Define exchanges api
- [ ] Create dockerhub repository
- [ ] Deploy on gcloud
@vstavetski contact @asadovka to clarify browser requirements for token tickers.
Under stable API I mean the following:
- Standard convention for future
- API docs
- 99.9% cloud service uptime
- Automated testing and deployment after merge to
master
brunch
https://app.swaggerhub.com/apis/vstavetski6/cyber-markets_api/1.0.0
More docs needed