coinbasepro-python
py-spy
Our great sponsors
coinbasepro-python | py-spy | |
---|---|---|
10 | 25 | |
1,816 | 11,850 | |
- | - | |
0.0 | 6.4 | |
10 months ago | 16 days ago | |
Python | Rust | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
coinbasepro-python
-
Unable to connect to coinbase pro API
I'm trying to set up algo trading through the Blankly Python library. I've generated my Coinbase Pro API keys, but when I try to enter them it always tells me that it failed to connect, and to check to make sure my keys are correct. I'm quite certain that they are, and I made a new set of API keys just in case something was wrong with the first set. I also cannot create an "authenticated client" as described on their readme because the cbpro library is out of date and currently incompatible with blankly.
-
Coinbase Python Library? (or any other language)
which uses the coinbasepro-python library to perform trades https://github.com/danpaquin/coinbasepro-python
-
When does a limit order expire?
My question is, when does the order expire, if ever? The documentation is pretty sparse -- https://github.com/danpaquin/coinbasepro-python .
-
Daily General Discussion - July 20, 2021
This is pretty trivial if you don't mind getting your feet wet scripting with cbpro.
-
Coinbase Pro API reports
The cbpro library for Python, for instance, makes interacting with the API very simple, then all you have to do is loop through your accounts grabbing whatever data you need.
-
I want to make a program that watches a specific cryptocurrency exchange, and immediately sends me an alert if a specific coin drops by 20%.
To start, I'd say coinbase has a well documented api, (coinbase pro, the exchange, not the other one). This wrapper package was one of the first I used, I assume it's still supported: https://github.com/danpaquin/coinbasepro-python. To knock out 1 and 2 would look something like (psuedo code, don't quote this):
-
Serious question - what price will you consider a dip right now?
Yeah it does. You can set it up to deposit money it seems. Under deposit/withdraw here: https://github.com/danpaquin/coinbasepro-python it seems to suggest this. To be honest I was already thinking of doing this before I saw your comment, but if someone else would use it too then that's extra motivation. I understand where you're coming from though. I would personally prefer to set it up for myself so it deposits some money in my account every day, buys algorand, and then transfers it to my algorand wallet after a few days, without me having to think about it at all. Just out of curiosity what do you do for employment? I'm a data scientist so I'm a bit of an evangelist for learning python and if it's something that you would be interested in at all I can recommend some resources.
-
Coinbase Pro Websockets Issue
Not sure what language or library you're using, but try the example here: https://github.com/danpaquin/coinbasepro-python#websocketclient-methods
-
Profiling Python code with py-spy
I’m using a Coinbase Pro API for Python to access data from the WebSocket feed. Here’s a first cut that has some debugging code left in place (along with two ways to generate the VWAP, one inefficient (the _vwap method) and one more efficient). Let’s see if py-spy reveals how much time this code uses.
-
How do I fix a TypeError: decoding str is not supported? I've tried searching for answers, but haven't found anything relevant to my project.
If not, you can find it here: https://github.com/danpaquin/coinbasepro-python
py-spy
- Minha jornada de otimização de uma aplicação django
- Graphical Python Profiler
-
Grasshopper – An Open Source Python Library for Load Testing
For CPU cycles, py-spy[0] is getting more and more used. For RAM, I would like to known too...
[0] -- https://github.com/benfred/py-spy
-
Debugging a Mixed Python and C Language Stack
Theres also Py Spy, a profiling tool that can generate flame charts containing a mix of python and C (or C++) calls.
https://github.com/benfred/py-spy
It's worked really well for my needs
-
python to rust migration
You should profile your consumer to check the bottlenecks. You can use the excellent py-spy(written in Rust). IMO a few usage of Numba there and there should solve your performance issues.
-
Has anyone switched from numpy to Rust?
So as a first step you'll want to profile your program to figure out where it's slow, and hopefully that'll also tell you why it's slow. I'm the (biased) author of the Sciagraph profiler which is designed for this sort of application (https://sciagraph.com) but you can also try py-spy, which isn't as well designed for data processing/analysis applications (e.g. it won't visualize parallelism at all) but can still be informative (https://github.com/benfred/py-spy). Both are written in Rust ;)
-
Trace your Python process line by line with minimal overhead!
Any advantages/disadvantages compared to py-spy [1]?
[1]: https://github.com/benfred/py-spy
-
Python 3.11 delivers.
Python profiling is enabled primarily through cprofile, and can be visualized with help of tools like snakeviz (output flame graph can look like this). There are also memory profilers like memray which does in-depth traces, or sampling profilers like py-spy.
-
Tales of serving ML models with low-latency
A good profiler would be https://github.com/benfred/py-spy . If you run your app/benchmark with it, it should be able to draw a flamegraph telling you where the majority of time is spent. The info here is quite fine grained so it would already tell you where the bottleneck is. Without a full-fledged profiler you can also measure the timings in various parts of the code to understand where the bottleneck is.
-
Profiling a Python library written in Rust (Maturin)
Might be worth raising an issue on py-spy (a python profiler written in rust which "supports profiling native python extensions written in languages like C/C++ or Cython" to see if that can close the loop.
What are some alternatives?
orderbook - Matching Engine for Limit Order Book in Golang
pyflame
cryptofeed - Cryptocurrency Exchange Websocket Data Feed Handler
pyinstrument - 🚴 Call stack profiler for Python. Shows you why your code is slow!
gemini-python - A python client for the Gemini API and Websocket
python-uncompyle6 - A cross-version Python bytecode decompiler
ethereum-burn-stats - Website that showcases EIP-1559 Burn
memory_profiler - Monitor Memory usage of Python code
uniswap-python - 🦄 The unofficial Python client for the Uniswap exchange.
icecream - 🍦 Never use print() to debug again.
pycoingecko - Python wrapper for the CoinGecko API
line_profiler