Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/datawookie/cex


https://github.com/datawookie/cex

hacktoberfest

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

        

---
title: "{cex}"
output: github_document
editor_options:
chunk_output_type: console
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(comment=NA)

library(dplyr)
```

# cex

[![CRAN status](https://www.r-pkg.org/badges/version/cex)](https://cran.r-project.org/package=cex)
[![Travis-CI build status](https://travis-ci.org/datawookie/cex.svg?branch=master)](https://travis-ci.org/datawookie/cex)
[![Codecov test coverage](https://img.shields.io/codecov/c/github/datawookie/cex.svg)](https://codecov.io/github/datawookie/cex)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html)

An R wrapper around the [CEX API](https://cex.io/rest-api).

The documentation for `{cex}` is hosted at https://datawookie.github.io/cex/.

## API Key

You're going to need to have an API key from your CEX account. If you don't yet have an account, create one. Then create and active a key from the [API settings](https://cex.io/trade/profile#/api). Store the key and secret somewhere secure.

## Endpoints

Endpoints which have currently been implemented in this package.

### Public API calls

- [X] GET https://cex.io/api/currency_limits
- [X] GET https://cex.io/api/ticker/{symbol1}/{symbol2}
- [X] GET https://cex.io/api/tickers/{symbol1}/{symbol2}/.../{symbolN}
- [X] GET https://cex.io/api/last_price/{symbol1}/{symbol2}
- [ ] GET https://cex.io/api/last_prices/{marketSymbol1}/{marketSymbol2}/.../{marketSymbolN}
- [ ] POST https://cex.io/api/convert/{symbol1}/{symbol2}
- [ ] POST https://cex.io/api/price_stats/{symbol1}/{symbol2}
- [ ] GET https://cex.io/api/ohlcv/hd/{date}/{symbol1}/{symbol2}
- [ ] GET https://cex.io/api/order_book/{symbol1}/{symbol2}/
- [ ] GET https://cex.io/api/trade_history/{symbol1}/{symbol2}/

### Private API calls

- [X] POST https://cex.io/api/balance/
- [X] POST https://cex.io/api/open_orders/
- [ ] POST https://cex.io/api/open_orders/{symbol1}/{symbol2}
- [ ] POST https://cex.io/api/active_orders_status
- [X] POST https://cex.io/api/archived_orders/{symbol1}/{symbol2}
- [ ] POST https://cex.io/api/cancel_order/
- [ ] POST https://cex.io/api/cancel_orders/{symbol1}/{symbol2}
- [ ] POST https://cex.io/api/place_order/{symbol1}/{symbol2}
- [X] POST https://cex.io/api/get_order/
- [X] POST https://cex.io/api/get_order_tx/
- [ ] POST https://cex.io/api/get_address/
- [ ] POST https://cex.io/api/get_myfee/
- [ ] POST https://cex.io/api/cancel_replace_order/{symbol1}/{symbol2}