Update to Pyxpub and React PoS

Update to Pyxpub and React PoS

Pyxpub

Github Repo

New API endpoint /api/rate

A new API endpoint has been added to enable more choice for exchange rate sources and currency rates. The rate request allows you to poll the current exchange rate and supported currencies for your preferred exchange rate source.

Poll supported currencies for source

/api/rate?source=<source>

Fetch exchange rate

/api/rate?source=<source>&currency=<CUR>

Sources

  • CryptoCompare
  • Kraken
  • Coinbase/GDAX

Supported currencies

CryptoCompare

["EUR", "USD", "GBP", "AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PKR", "PLN", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "ZAR"]

Kraken

["EUR", "USD"]

Coinbase/GDAX

["EUR", "USD"]

Examples

Poll supported currencies for specified source

curl 'http://localhost:8080/api/rate?source=cryptocompare'

{
  "currencies": ["EUR", 
                "USD", 
                "GBP", 
                "AUD", 
                "BRL", 
                "CAD", 
                "CHF", 
                "CLP", 
                "CNY", 
                "CZK", 
                "DKK", 
                "HKD", 
                "HUF", 
                "IDR", 
                "ILS", 
                "INR", 
                "JPY", 
                "KRW", 
                "MXN", 
                "MYR", 
                "NOK", 
                "NZD", 
                "PHP", 
                "PKR", 
                "PLN", 
                "RUB", 
                "SEK", 
                "SGD", 
                "THB", 
                "TRY", 
                "TWD", 
                "ZAR"]
}

curl 'http://localhost:8080/api/rate?source=kraken'

{
  "currencies": ["EUR", 
                "USD"]
}

curl 'http://localhost:8080/api/rate?source=coinbase'

{
  "currencies": ["EUR", 
                "USD"]
}

Fetch current exchange rate

curl 'http://localhost:8080/api/rate?source=kraken&currency=EUR'

{
  "currency": "EUR", 
  "price": 953.8
} 

React PoS

Github Repo

Exchange Rates

React PoS now integrates the new /api/rate endpoint. You can now specify the exchange rate source and currency on the Settings page.

React PoS Settings Update

Currently supported sources are:

  • CryptoCompare
  • Kraken
  • Coinbase/GDAX

CryptoCompare Supported Currencies

["EUR", "USD", "GBP", "AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PKR", "PLN", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "ZAR"]

Kraken Supported Currencies

["EUR", "USD"]

Coinbase/GDAX Supported Currencies

["EUR", "USD"]

Sales Ledger

Added a link (button for a better mobile experience) to query the received transaction on an external block explorer.

React PoS Sales Ledger Update

comments powered by Disqus