C# public API for cryptowat.ch

in #utopian-io7 years ago

Cryptowat.ch is a cryptocurrency charting and trading platform owned by Kraken. Cryptowatch contains cryptocurrency charts for most cryptos and exchanges.
Screenshot_20.png

Currently there aren't any private APIs. API is limited by CPU allowance instead of fixed amount of calls. Some calls take more time than others. Every client has allowance of 8 seconds of CPU time per hour.
For that we have Allowance class which is updated by every call. Class contains previous cost time and remaining time (in nanoseconds).

What API offers

All types can be called as a single object or as a list. Script automatically converts JSON string into object.
If you call a function which returns a list of objects you need to call a function which returns a single object by taking its route from list of objects.

Here are some of the classes that this API wrapper contains:

Asset

An asset can be a crypto or fiat currency. Contains all markets which have this asset as a base or quote.

Pair

A pair of assets. Each pair has a base and a quote. For example, btceur has base btc and quote eur. Contains all markets for this pair.

Exchange

Exchanges are where all the action happens! Contains associated routes.

Market

A market is a pair listed on an exchange. For example, pair btceur on exchange kraken is a market. Contains associated routes.

Price

Returns a market’s last price.

Summary

Returns a market’s last price as well as other stats based on a 24-hour sliding window.

  • High price
  • Low price
  • % change
  • Absolute change
  • Volume

Trades

Returns a market’s most recent trades, incrementing chronologically.

Order book

Returns a market’s order book.

OHLC

Returns a market’s OHLC candlestick data. You can also specify timeframe.

Cryptowat.ch API documentation: https://cryptowat.ch/docs/api
Project: https://github.com/Stock84-dev/Cryptowatch-API
ProofOfWork.png



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

interesting

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @stock84 I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.20
TRX 0.20
JST 0.034
BTC 89640.94
ETH 3073.42
USDT 1.00
SBD 2.93