Python API experience with Bitstamp or Coinbase? - Bitcoin Trading | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Traders Hideout > Bitcoin Trading

Python API experience with Bitstamp or Coinbase?
Started:July 2nd, 2016 (02:08 PM) by ClutchAce Views / Replies:131 / 0
Last Reply:July 2nd, 2016 (02:08 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Python API experience with Bitstamp or Coinbase?

Old July 2nd, 2016, 02:08 PM   #1 (permalink)
Trading Apprentice
Cookeville, TN
Futures Experience: Advanced
Platform: R|Trader, Thinkorswim
Favorite Futures: CL, RB, 6E, ZB, DX
Posts: 20 since Oct 2011
Thanks: 3 given, 7 received

Python API experience with Bitstamp or Coinbase?

Not sure if more appropriate to post this in the R, Matlab and Python forum, but seems more Bitcoin-oriented members will catch it here first...

Anyone have experience using a Python API wrapper for either the Bitstamp or Coinbase BTC platforms? I'm just starting to look around, and while a Google search yields plenty of results e.g.

I'm curious as to any input on ease of use, stability, latency, etc. Just looking to play with some strategies used in stocks & futures in BTC, and automation *seems* worth a try, although this 2-yr old Reddit thread ( discussing order type limitations and latency issues with Bitstamp's API will keep me wary for a bit..

"Bitstamp's undocumented streaming API seems to reveal out-of-order trade execution that can be exploited to steal margins from large buys/sells.
...It's not surprising that I see trades on the stream about 10s before I see them on BitcoinWisdom etc. (I haven't compared that to the latency of direct API polling; my lag to BW and processing lag at BW's end might be included there.)

..Bitstamp only provides limit orders. "Instant" (aka Market) orders are simulated by placing a limit order with the limit set to whatever was the top of the opposite side of the book at the time, and as anyone who has tried to trade at Bitstamp during a rally/drop will know, the top often moves before your "instant" order hits the books and therefore doesn't execute. People work around this by manually or automatically placing limit orders with limits that go beyond the top of the opposite side of the book, ensuring that they'll match something.

Suppose someone places such a limit order. Rather than lock the book until the order is matched and produces a trade, the order is placed on the book and the book is allowed to cross. People have reported here on Reddit seeing this before. That's kind of surprising, but perhaps you're thinking they ensure things still execute in order. Well, the stream I'm watching includes both order and trade events, and I typically see orders on the stream anywhere between ~2.5s and ~8s ("the window") before they match and produce a trade; if you're only trading by watching BitcoinWisdom and others, I see things happen as much as 18s ahead of you."

Last edited by ClutchAce; July 2nd, 2016 at 02:18 PM. Reason: adds
Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Traders Hideout > Bitcoin Trading > Python API experience with Bitstamp or Coinbase?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python and QuickFIX Branzol Matlab, R project and Python 33 September 20th, 2016 06:07 PM
Highcharts / Highstocks API with Python Big Mike Matlab, R project and Python 11 October 22nd, 2015 01:28 PM
TD Ameritrade API experience BrazilForever ThinkOrSwim 4 June 5th, 2015 09:32 PM
Tradier with R and or Python Keith Leesus Matlab, R project and Python 2 September 5th, 2014 12:23 AM
CQG API and Python Branzol Elite Automated Trading 1 July 15th, 2014 08:05 PM

All times are GMT -4. The time now is 12:10 PM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-22 in 0.06 seconds with 19 queries on phoenix via your IP