sample rest api with kraken