coinbasepro-python | The unofficial Python client for the Coinbase Pro API | Cryptocurrency library

 by   danpaquin Python Version: Current License: MIT

kandi X-RAY | coinbasepro-python Summary

kandi X-RAY | coinbasepro-python Summary

coinbasepro-python is a Python library typically used in Financial Services, Fintech, Blockchain, Cryptocurrency, Ethereum, Bitcoin applications. coinbasepro-python has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can install using 'pip install coinbasepro-python' or download it from GitHub, PyPI.

The unofficial Python client for the Coinbase Pro API
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              coinbasepro-python has a medium active ecosystem.
              It has 1778 star(s) with 748 fork(s). There are 135 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 67 open issues and 240 have been closed. On average issues are closed in 315 days. There are 20 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of coinbasepro-python is current.

            kandi-Quality Quality

              coinbasepro-python has 0 bugs and 0 code smells.

            kandi-Security Security

              coinbasepro-python has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              coinbasepro-python code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              coinbasepro-python is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              coinbasepro-python releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              coinbasepro-python saves you 408 person hours of effort in developing the same functionality from scratch.
              It has 969 lines of code, 123 functions and 10 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed coinbasepro-python and discovered the below as its top functions. This is intended to give you an instant insight into coinbasepro-python implemented functionality, and help decide if they suit your requirements.
            • Start the connection
            • Connect to the API
            • Generate authentication headers
            • Disconnects from the server
            • Called when a message is received
            • Match order
            • Add an order to the list
            • Change size of order
            • Place a sell order
            • Place a order
            • Returns a list of fillsills
            • Send a paginated message
            • Create a report
            • Send a message to API
            • Withdraw funds to crypto address
            • Place a buy order
            • Get a specific report
            • Close position
            • Withdraw a payment method
            • Withdraw funds to a coinbase account
            • Transfer a margin profile
            • Create a payment method
            Get all kandi verified functions for this library.

            coinbasepro-python Key Features

            No Key Features are available at this moment for coinbasepro-python.

            coinbasepro-python Examples and Code Snippets

            copy iconCopy
            from subprocess import run
            from time import sleep
            
            # Path and name to the script you are trying to start
            file_path = "CBPRO_BTC_USDC_V3.py" 
            print('program started')
            restart_timer = 60
            def start_script():
                try:
                    # Make sure 'pyth
            How can I insert a float into a real position in a SQLite database with python?
            Pythondot img2Lines of Code : 4dot img2License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
             ".. SET invested_money = ?"
            
            c.execute(".. = ?", (new,))
            
            CoinbaseProAPI/CBpro. Authentication. Websocket. Shouldn't be this hard?
            Pythondot img3Lines of Code : 15dot img3License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            import cbpro #, hmac, hashlib, time,
            
            api_key = YOUR_API_KEY
            secret_key = YOUR_B64SECRET
            passphrase = YOUR_PASSPHRASE
            
            # message = message.encode('ascii')
            # hmac_key = base64.b64decode(secret_key)
            # signature = hmac.new(hmac_key, message, 
            copy iconCopy
            import cbpro
            import numpy
            import time
            
            apiKey = "xxxxxxxxxxxxxx"
            apiSecret = "xxxxxxxxxxxxxxxx"
            passphrase = "xxxxxxx"
            
            auth_client = cbpro.AuthenticatedClient(apiKey,apiSecret,passphrase)
            currency = 'BTC-USD'
            auth_client.buy(price='100.00

            Community Discussions

            QUESTION

            With the Python Coinbase API, how do I figure out my pricing tier (fees)?
            Asked 2021-Dec-08 at 14:25

            I'm using the Python API for Coinbase Pro -- https://github.com/danpaquin/coinbasepro-python. Is there a programmatic way I can calculate what pricing tier I'm in prior to submitting an order? I would like to get an idea of the fees before I place the order. I notice the authenticated client provides a way to get accounts

            ...

            ANSWER

            Answered 2021-Nov-29 at 03:31

            First, you may want to review the information you just posted as it seems there may be sensitive data contained within the post. I'm not certain because I'm not familiar with the coinbase api.

            Second, I'm pretty sure you can find a chart with the price-fee pairs in it. See the link below.

            https://help.coinbase.com/en/coinbase/trading-and-funding/pricing-and-fees/fees

            Source https://stackoverflow.com/questions/70149104

            QUESTION

            Coinbase Pro python API - place_market_order() uses wrong amount
            Asked 2021-Jun-28 at 14:45

            For reference, this is the GitHub for the python version: https://github.com/danpaquin/coinbasepro-python

            My code is meant to distribute my USD balance evenly to max 3 accounts. Below is the LOG created for my code, proving it's values to be accurate

            ...

            ANSWER

            Answered 2021-Jun-28 at 14:45

            After checking the code, I have seen that place_market_order[1] requires either "size" or "funds" to place the order [2].

            Based on your example, you are passing "6.08" positionally. This means that you are filling the "size" parameter, which is defined as the base currency, in your case "FORTH". Given the fact that FORTH is above 19$ (as per time of writing), this means that you are trying to use 115.52$, instead of 6.08, thus using the full amount.

            If you want to use USD (which is the Quote asset for the FORTHUSD symbol, you should use Bot.place_market_order('FORTH-USD', 'buy', funds='6.08')

            [1] https://github.com/danpaquin/coinbasepro-python/blob/5658b2212b0fe39dde18b792f34aeaf81dda6640/cbpro/authenticated_client.py#L381

            [2] https://docs.pro.coinbase.com/#place-a-new-order

            Source https://stackoverflow.com/questions/68165116

            QUESTION

            Coinbase Pro Sandbox: How to deposit test money?
            Asked 2020-Apr-28 at 18:51

            i would like to test the APIs and therefore need money on my sandbox account. How can i deposit fake money for test purposes? this sounds like a quite basic question but i cannot get any information on it:(

            Unfortunately the GUI does not provide the possibility. I also tried in python but this does not work either. (see https://github.com/danpaquin/coinbasepro-python)

            Has anyone had this issue as well? How can this be solved?

            Thank you very much in Advance. Best regards, John

            ...

            ANSWER

            Answered 2020-Apr-27 at 09:16

            There is the DEPOSIT/WITHDRAW buttons on the UI. You can see the buttons on the right of this page after logging. In the prompt after clicking DEPOSIT, choose the currency you want the test money in, then choose Coinbase.com as the source.

            Source https://stackoverflow.com/questions/61281364

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install coinbasepro-python

            This README is documentation on the syntax of the python client presented in this repository. See function docstrings for full syntax details. This API attempts to present a clean interface to CB Pro, but in order to use it to its full potential, you must familiarize yourself with the official CB Pro documentation.
            https://docs.pro.coinbase.com/
            You may manually install the project or use pip:

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/danpaquin/coinbasepro-python.git

          • CLI

            gh repo clone danpaquin/coinbasepro-python

          • sshUrl

            git@github.com:danpaquin/coinbasepro-python.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link