Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danpaquin/coinbasepro-python
/ functions
Functions
122 in github.com/danpaquin/coinbasepro-python
⨍
Functions
122
◇
Types & classes
11
↓ 28 callers
Method
_send_message
Send API request. Args: method (str): HTTP method (get, post, delete, etc.) endpoint (str): Endpoint (to be added to
cbpro/public_client.py:254
↓ 11 callers
Method
place_order
Place an order. The three order types (limit, market, and stop) can be placed using this method. Specific methods are provided for e
cbpro/authenticated_client.py:203
↓ 6 callers
Method
_send_paginated_message
Send API message that results in a paginated response. The paginated responses are abstracted away by making API requests on demand
cbpro/public_client.py:272
↓ 6 callers
Method
place_limit_order
Place a limit order. Args: product_id (str): Product to order (eg. 'BTC-USD') side (str): Order side ('buy' or 'sell)
cbpro/authenticated_client.py:325
↓ 5 callers
Method
get_asks
(self, price)
cbpro/order_book.py:210
↓ 5 callers
Method
get_bids
(self, price)
cbpro/order_book.py:222
↓ 5 callers
Method
set_asks
(self, price, asks)
cbpro/order_book.py:216
↓ 5 callers
Method
set_bids
(self, price, bids)
cbpro/order_book.py:228
↓ 4 callers
Method
cancel_order
Cancel a previously placed order. If the order had no matches during its lifetime its record may be purged. This means the order det
cbpro/authenticated_client.py:477
↓ 3 callers
Method
add
(self, order)
cbpro/order_book.py:79
↓ 3 callers
Method
cancel_all
With best effort, cancel all open orders. Args: product_id (Optional[str]): Only cancel orders for this product_
cbpro/authenticated_client.py:499
↓ 3 callers
Method
close
(self)
cbpro/websocket_client.py:120
↓ 3 callers
Method
get_account_history
List account activity. Account activity either increases or decreases your account balance. Entry type indicates the reason for the
cbpro/authenticated_client.py:91
↓ 3 callers
Method
get_accounts
Get a list of trading all accounts. When you place an order, the funds for the order are placed on hold. They cannot be used for oth
cbpro/authenticated_client.py:63
↓ 3 callers
Method
process_message
(self, message)
cbpro/order_book.py:47
↓ 3 callers
Method
start
(self)
cbpro/websocket_client.py:51
↓ 2 callers
Method
_disconnect
(self)
cbpro/websocket_client.py:109
↓ 2 callers
Method
get_account
Get information for a single account. Use this endpoint when you know the account_id. Args: account_id (str): Account i
cbpro/authenticated_client.py:43
↓ 2 callers
Function
get_auth_headers
(timestamp, message, api_key, secret_key, passphrase)
cbpro/cbpro_auth.py:26
↓ 2 callers
Method
get_coinbase_accounts
Get a list of your coinbase accounts. Returns: list: Coinbase account details.
cbpro/authenticated_client.py:944
↓ 2 callers
Method
get_orders
List your current open orders. This method returns a generator which may make multiple HTTP requests while iterating through it.
cbpro/authenticated_client.py:558
↓ 2 callers
Method
get_product_order_book
Get a list of open orders for a product. The amount of detail shown can be customized with the `level` parameter: * 1: Only t
cbpro/public_client.py:52
↓ 2 callers
Method
on_error
(self, e, data=None)
cbpro/websocket_client.py:139
↓ 2 callers
Method
place_market_order
Place market order. Args: product_id (str): Product to order (eg. 'BTC-USD') side (str): Order side ('buy' or 'sell)
cbpro/authenticated_client.py:381
↓ 2 callers
Method
place_stop_order
Place stop order. Args: product_id (str): Product to order (eg. 'BTC-USD') stop_type(str): Stop type ('entry' or 'lo
cbpro/authenticated_client.py:422
↓ 2 callers
Method
reset_book
(self)
cbpro/order_book.py:27
↓ 1 callers
Method
__init__
(self, product_id='BTC-USD', log_to=None)
cbpro/order_book.py:16
↓ 1 callers
Method
_connect
(self)
cbpro/websocket_client.py:63
↓ 1 callers
Method
_listen
(self)
cbpro/websocket_client.py:96
↓ 1 callers
Method
change
(self, order)
cbpro/order_book.py:145
↓ 1 callers
Method
coinbase_deposit
Deposit funds from a coinbase account. You can move funds between your Coinbase accounts and your cbpro trading accounts within your
cbpro/authenticated_client.py:825
↓ 1 callers
Method
convert_stablecoin
Convert stablecoin. Args: amount (Decimal): The amount to convert. from_currency (str): Currency type (e
cbpro/authenticated_client.py:177
↓ 1 callers
Method
get_account_holds
Get holds on an account. This method returns a generator which may make multiple HTTP requests while iterating through it.
cbpro/authenticated_client.py:131
↓ 1 callers
Method
get_ask
(self)
cbpro/order_book.py:207
↓ 1 callers
Method
get_bid
(self)
cbpro/order_book.py:219
↓ 1 callers
Method
get_currencies
List known currencies. Returns: list: List of currencies. Example:: [{ "id": "BTC",
cbpro/public_client.py:222
↓ 1 callers
Method
get_fees
Get your maker & taker fee rates and 30-day trailing volume. Returns: dict: Fee information and USD volume:: {
cbpro/authenticated_client.py:1038
↓ 1 callers
Method
get_fundings
Every order placed with a margin profile that draws funding will create a funding record. This method returns a generator which may
cbpro/authenticated_client.py:681
↓ 1 callers
Method
get_order
Get a single order by order id. If the order is canceled the response may have status code 404 if the order had no matches.
cbpro/authenticated_client.py:523
↓ 1 callers
Method
get_payment_methods
Get a list of your payment methods. Returns: list: Payment method details.
cbpro/authenticated_client.py:935
↓ 1 callers
Method
get_position
Get An overview of your margin profile. Returns: dict: Details about funding, accounts, and margin call.
cbpro/authenticated_client.py:775
↓ 1 callers
Method
get_product_24hr_stats
Get 24 hr stats for the product. Args: product_id (str): Product Returns: dict: 24 hour stats. Volume is in
cbpro/public_client.py:202
↓ 1 callers
Method
get_product_historic_rates
Historic rates for a product. Rates are returned in grouped buckets based on requested `granularity`. If start, end, and granularity
cbpro/public_client.py:149
↓ 1 callers
Method
get_product_ticker
Snapshot about the last trade (tick), best bid/ask and 24h volume. **Caution**: Polling is discouraged in favor of connecting via the
cbpro/public_client.py:92
↓ 1 callers
Method
get_product_trades
List the latest trades for a product. This method returns a generator which may make multiple HTTP requests while iterating through i
cbpro/public_client.py:117
↓ 1 callers
Method
get_products
Get a list of available currency pairs for trading. Returns: list: Info about all currency pairs. Example:: [
cbpro/public_client.py:32
↓ 1 callers
Method
get_time
Get the API server time. Returns: dict: Server time in ISO and epoch format (decimal seconds since Unix epoch). E
cbpro/public_client.py:240
↓ 1 callers
Method
get_trailing_volume
Get your 30-day trailing volume for all products. This is a cached value that's calculated every day at midnight UTC. Returns:
cbpro/authenticated_client.py:1016
↓ 1 callers
Method
match
(self, order)
cbpro/order_book.py:120
↓ 1 callers
Method
on_close
(self)
cbpro/websocket_client.py:129
↓ 1 callers
Method
on_message
(self, msg)
cbpro/websocket_client.py:133
↓ 1 callers
Method
on_open
(self)
cbpro/websocket_client.py:125
↓ 1 callers
Method
on_sequence_gap
(self, gap_start, gap_end)
cbpro/order_book.py:76
↓ 1 callers
Method
remove
(self, order)
cbpro/order_book.py:101
↓ 1 callers
Method
remove_asks
(self, price)
cbpro/order_book.py:213
↓ 1 callers
Method
remove_bids
(self, price)
cbpro/order_book.py:225
↓ 1 callers
Method
repay_funding
Repay funding. Repays the older funding records first. Args: amount (int): Amount of currency to repay currency (str
cbpro/authenticated_client.py:720
Method
__call__
(self, request)
cbpro/cbpro_auth.py:15
Method
__init__
(self, api_key, secret_key, passphrase)
cbpro/cbpro_auth.py:10
Method
__init__
Create an instance of the AuthenticatedClient class. Args: key (str): Your API key. b64secret (str): The secret key
cbpro/authenticated_client.py:29
Method
__init__
(self, product_id=None)
cbpro/order_book.py:240
Method
__init__
( self, url="wss://ws-feed.pro.coinbase.com", products=None, m
cbpro/websocket_client.py:21
Method
__init__
Create cbpro API public client. Args: api_url (Optional[str]): API URL. Defaults to cbpro API.
cbpro/public_client.py:21
Method
_go
()
cbpro/websocket_client.py:52
Method
_keepalive
(self, interval=30)
cbpro/websocket_client.py:91
Method
buy
Place a buy order. This is included to maintain backwards compatibility with older versions of cbpro-Python. For maximum support from
cbpro/authenticated_client.py:285
Function
client
()
tests/test_public_client.py:10
Function
client
Client that connects to sandbox API. Relies on authentication information provided in api_config.json
tests/test_authenticated_client.py:43
Method
close_position
Close position. Args: repay_only (bool): Undocumented by cbpro. Returns: Undocumented
cbpro/authenticated_client.py:784
Method
coinbase_withdraw
Withdraw funds to a coinbase account. You can move funds between your Coinbase accounts and your cbpro trading accounts within your
cbpro/authenticated_client.py:882
Method
create_report
Create report of historic information about your account. The report will be generated when resources are available. Report status c
cbpro/authenticated_client.py:953
Method
crypto_withdraw
Withdraw funds to a crypto address. Args: amount (Decimal): The amount to withdraw currency (str): The type of curre
cbpro/authenticated_client.py:912
Function
dc
Dummy client for testing.
tests/test_authenticated_client.py:9
Method
deposit
Deposit funds from a payment method. See AuthenticatedClient.get_payment_methods() to receive information regarding payment methods.
cbpro/authenticated_client.py:798
Method
get_current_book
(self)
cbpro/order_book.py:180
Method
get_current_ticker
(self)
cbpro/order_book.py:177
Method
get_fills
Get a list of recent fills. As of 8/23/18 - Requests without either order_id or product_id will be rejected This method ret
cbpro/authenticated_client.py:623
Method
get_report
Get report status. Use to query a specific report once it has been requested. Args: report_id (str): Report ID
cbpro/authenticated_client.py:1002
Method
margin_transfer
Transfer funds between your standard profile and a margin profile. Args: margin_profile_id (str): Margin profile ID to withdraw
cbpro/authenticated_client.py:738
Method
on_close
(self)
cbpro/websocket_client.py:162
Method
on_message
(self, msg)
cbpro/order_book.py:282
Method
on_message
(self, msg)
cbpro/websocket_client.py:158
Method
on_open
(self)
cbpro/order_book.py:277
Method
on_open
(self)
cbpro/websocket_client.py:152
Method
process_message
(self, message)
cbpro/order_book.py:249
Method
sell
Place a sell order. This is included to maintain backwards compatibility with older versions of cbpro-Python. For maximum support fro
cbpro/authenticated_client.py:305
Method
teardown_method
()
tests/test_public_client.py:18
Method
test_account_history
(self, client)
tests/test_authenticated_client.py:84
Method
test_cancel_all
(self, client)
tests/test_authenticated_client.py:162
Method
test_cancel_order
(self, client)
tests/test_authenticated_client.py:156
Method
test_convert_stablecoin
(self, client)
tests/test_authenticated_client.py:110
Method
test_get_account_holds
(self, client)
tests/test_authenticated_client.py:102
Method
test_get_accounts
(self, client)
tests/test_authenticated_client.py:75
Method
test_get_coinbase_accounts
(self, client)
tests/test_authenticated_client.py:198
Method
test_get_currencies
(self, client)
tests/test_public_client.py:68
Method
test_get_fees
(self, client)
tests/test_authenticated_client.py:206
Method
test_get_fills
(self, client)
tests/test_authenticated_client.py:177
Method
test_get_fundings
(self, client)
tests/test_authenticated_client.py:182
Method
test_get_historic_rates
(self, client, start, end, granularity)
tests/test_public_client.py:57
Method
test_get_order
(self, client)
tests/test_authenticated_client.py:166
next →
1–100 of 122, ranked by callers