4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

C# public API for cryptowat.ch

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

13 upvotes $14.66

Replies (3)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: