MCPcopy
hub / github.com/danpaquin/coinbasepro-python / get_currencies

Method get_currencies

cbpro/public_client.py:222–238  ·  view source on GitHub ↗

List known currencies. Returns: list: List of currencies. Example:: [{ "id": "BTC", "name": "Bitcoin", "min_size": "0.00000001" }, { "id": "USD", "

(self)

Source from the content-addressed store, hash-verified

220 '/products/{}/stats'.format(product_id))
221
222 def get_currencies(self):
223 """List known currencies.
224
225 Returns:
226 list: List of currencies. Example::
227 [{
228 "id": "BTC",
229 "name": "Bitcoin",
230 "min_size": "0.00000001"
231 }, {
232 "id": "USD",
233 "name": "United States Dollar",
234 "min_size": "0.01000000"
235 }]
236
237 """
238 return self._send_message('get', '/currencies')
239
240 def get_time(self):
241 """Get the API server time.

Callers 1

test_get_currenciesMethod · 0.80

Calls 1

_send_messageMethod · 0.95

Tested by 1

test_get_currenciesMethod · 0.64