CryptoChassis 3.0 Went Public

Photo by Hitesh Choudhary on Unsplash

Cheers! In order to better serve retail and professional traders in the crypto community, we have worked very hard in the past few months on creating a Python API for our users, and we’ve finally completed this mission 🎉: https://github.com/crypto-chassis/ccapi. In this process we conducted extensive research trying to figure out the “best” approach. Finally we picked the same methodology as Bloomberg used to create their Python bindings for their C++ API: using Simplified Wrapper and Interface Generator (SWIG). One major advantage of SWIG is that by using a nearly identical interface file it is able to generate bindings for a plethora of high-level programming languages such as Python, Java, C#, Javascript, etc. In the landscape of high frequency trading, on one hand C++ remains to be the most popular choice thanks to its superior performance . On the other hand, Python has been gaining strong momentum and recognition among programmatic traders thanks to its ease of use and high productivity. In particular it has almost become the default programming language for data scientists. Therefore we think that it is an awesome idea to create a Python binding for ccapi so that the library becomes more friendly to the general crypto community by offering an easier entry point. Because our Python API is automatically generated by SWIG from C++ headers, it provides the end user with a nearly identical interface compared to C++ API, being a simple streaming or an advanced feature.

Want to stream market best bids and asks tick-by-tick?

session = Session(option, config, eventHandler)
subscription = Subscription('coinbase', 'BTC-USD', 'MARKET_DEPTH')
session.subscribe(subscription)

Want to submit an order at lightning speed?

session = Session(option, config, eventHandler)
request = Request(Request.Operation_CREATE_ORDER, 'binance-us', 'BTCUSD')
request.appendParam({
'SIDE':'BUY',
'QUANTITY':'0.0005',
'LIMIT_PRICE':'20000',
})
session.sendRequest(request);

Hopefully this library could make your life as a trader much easier. Join us on Discord https://discord.gg/b5EKcp9s8T. 🎉

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store