rewrite: use bitstamp API; seperate api layer from logic