MCPcopy Index your code
hub / github.com/danpaquin/coinbasepro-python / sell

Method sell

cbpro/authenticated_client.py:305–323  ·  view source on GitHub ↗

Place a sell order. This is included to maintain backwards compatibility with older versions of cbpro-Python. For maximum support from docstrings and function signatures see the order type-specific functions place_limit_order, place_market_order, and place_stop_order

(self, product_id, order_type, **kwargs)

Source from the content-addressed store, hash-verified

303 return self.place_order(product_id, 'buy', order_type, **kwargs)
304
305 def sell(self, product_id, order_type, **kwargs):
306 """Place a sell order.
307
308 This is included to maintain backwards compatibility with older versions
309 of cbpro-Python. For maximum support from docstrings and function
310 signatures see the order type-specific functions place_limit_order,
311 place_market_order, and place_stop_order.
312
313 Args:
314 product_id (str): Product to order (eg. 'BTC-USD')
315 order_type (str): Order type ('limit', 'market', or 'stop')
316 **kwargs: Additional arguments can be specified for different order
317 types.
318
319 Returns:
320 dict: Order details. See `place_order` for example.
321
322 """
323 return self.place_order(product_id, 'sell', order_type, **kwargs)
324
325 def place_limit_order(self, product_id, side, price, size,
326 client_oid=None,

Callers

nothing calls this directly

Calls 1

place_orderMethod · 0.95

Tested by

no test coverage detected