one_delta.position

Documentation for eth_defi.one_delta.position Python module.

1delta integration position handlers.

  • Open and close short positions using 1delta protocol

Functions

approve(one_delta_deployment, *, ...[, ...])

Approve all the tokens needed for the position.

close_short_position(one_delta_deployment, ...)

Close a short position using flash swap then withdraw collateral from Aave.

open_short_position(one_delta_deployment, *, ...)

Supply collateral to Aave and open a short position using flash swap.

reduce_short_position(one_delta_deployment, ...)

Reduce a short position size.