Giter Club home page Giter Club logo

coinbasepro's People

Contributors

acontry avatar dependabot[bot] avatar imalovitsa-exos avatar khoo-j avatar warmlogic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coinbasepro's Issues

This lib doesn't supports EUR data

Hi, i'm having problem retrive CVC-EUR value, this is my code:

import coinbasepro as cbp

client = cbp.PublicClient()
print(client.get_product_ticker('CVC-USD'))
print(client.get_product_ticker('CVC-EUR'))

And this is the output

{'ask': Decimal('0.2894'), 'bid': Decimal('0.289'), 'volume': Decimal('728795.1'), 'trade_id': 729264, 'price': Decimal('0.2891'), 'size': Decimal('179'), 'time': datetime.datetime(2022, 4, 15, 13, 42, 41, 332635)}
Traceback (most recent call last):
  File "D:/PycharmProjects/KRYPTObot/myapi.py", line 5, in <module>
    print(client.get_product_ticker('CVC-EUR'))
  File "C:\Program Files\Python38\lib\site-packages\coinbasepro\public_client.py", line 190, in get_product_ticker
    r = self._send_message(
  File "C:\Program Files\Python38\lib\site-packages\coinbasepro\public_client.py", line 474, in _send_message
    self._check_errors_and_raise(r)
  File "C:\Program Files\Python38\lib\site-packages\coinbasepro\public_client.py", line 437, in _check_errors_and_raise
    raise CoinbaseAPIError(message)
coinbasepro.exceptions.CoinbaseAPIError: NotFound

Error in running two instances

Hi, i wrote a bot using your API and i am running it against the pair ETH-EUR, and its working fine.

If i run another instance of the same bot against say the pair LTC-EUR, the first instance of bot starts giving this error:

PreparedRequest' object has no attribute 'status_code', any help on how i can debug and see what is the error your API receives?

Create a develop branch

Greetings! I am working on a PR for the WebsocketClient, and would like to submit for review soon.

Ideally, we'd have a develop branch for upcoming features, where the master branch reflects the PyPI package.

Place limit order fails

Place limit order fails with error:

[Jul 15 2018 07:10:30 UTC] : Exception: May only specify a cancel period when time in_force is GTT.

I think the problem is that the parameter is called time_in_force but in function place_limit_order you are referring 'tif'.

get_fills() fails with None conversion error

This is happening back in 2017 so perhaps is due to a change in the Coinbase Pro API -- maybe there's a volume key populated but with value None?

File "/home/kdowney/dev/shadows/serenity/venv/lib/python3.7/site-packages/coinbasepro/auth_client.py", line 706, in
for fill in fills)
File "/home/kdowney/dev/shadows/serenity/venv/lib/python3.7/site-packages/coinbasepro/auth_client.py", line 700, in convert_volume_keys
fill[k] = Decimal(fill[k])
TypeError: conversion from NoneType to Decimal is not supported

coinbasepro.exceptions.BadRequest: funds is too small. Minimum size is 5.00000000 when buying solana

Hi,

I am using a DCA bot (https://github.com/queball99/CoinbasePro-Recurring-Buy) which uses this library. When trying to place a 2 euro order for solana I get this error : coinbasepro.exceptions.BadRequest: funds is too small. Minimum size is 5.00000000.

When checking on coinbase's website it seems that 5 is the limit for quote orders for SOL-EUR, and I think that it should be placing a base order (minimum of 0.01). -> https://pro.coinbase.com/markets

The bot uses this python call to place the order : buy = auth_client.place_market_order(product_id=buy_pair, side="buy", funds=buy_amount)

This looks like a bug with the library to me becuase 5 solana is currently 710 euros ! That would be a very big minimum !

Thanks for any help

Remove Decimal and Datetime formatting

Hello,

Do you think it would be better to remove all the extra data formatting of Decimal and Datetime etc?

I think those should be handled outside of this API.

Thoughts?

Coinbase Pro to Advanced Trading migration

Hello,

considering the mandatory migration from Coinbase Pro to Coinbase Advanced Trading, I'm assuming some changes will be required in this library:

Migrating from Pro
https://docs.cloud.coinbase.com/advanced-trade-api/docs/migration

Pro -> Advanced Trading API Mapping
https://docs.cloud.coinbase.com/advanced-trade-api/docs/rest-api-pro-mapping

I do not believe I will personally be able to contribute the changes required, however I'd like to start the discussion of those changes.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.