PrivateNode
Signed trading actions exposed by the dYdX node client wrapper.
new
Source code in pkg/src/dydx/node/core.py
build_order
Source code in pkg/src/dydx/node/private/place_order.py
build_order_now
Source code in pkg/src/dydx/node/private/place_order.py
place_order
Place an order.
market: market to place the order onorder: order to placesubaccount: subaccount to place the order ongtb_delta: sets good-til-block for short-term orders tocurrent_block() + gtb_deltagtbt_delta: sets good-til-block-time (in seconds) for long-term-orders tocurrent_block().time.seconds + gtbt_delta
Source code in pkg/src/dydx/node/private/place_order.py
cancel_order
Cancel an order.
order_id: order to cancelgood_til_block: block number to cancel the order at (defaults to the current one)good_til_block_time: timestamp to cancel the order at (defaults to now)
Source code in pkg/src/dydx/node/private/cancel_order.py
batch_cancel_orders
Cancel an order.
order_ids: orders to cancelgood_til_block: block number to cancel the orders at (defaults to the current one)