order_crypto_limit
Places a limit order for crypto.
Syntax
Fields
Description
side(str)
'buy' or 'sell'
symbol(str)
Symbol of crypto
quantity(float)
Quantity to buy or sell
limit_price(float)
Limit price
in_force(str)
'gtc' by default
extended(bool)
'False' by default
def order_crypto_limit(
self,
side: str,
symbol: str,
quantity: float,
limit_price: float,
in_force: str = "gtc",
extended: bool = False,
) -> Dict[str, Any]:
Returns
Returns a dictionary with the following keys and values:
order_id
: ID of ordersymbol
: Symbol of asset
Raises an exception if order fails.
Raises
- A
NotImplementedError
is raised if the method is not supported.