close_all_trades_new

core_v2.GCapiClientV2.close_all_trades_new(open_positions, tolerance)

Close all trades using a provided list of open positions and a given tolerance.

Parameters

Name Type Description Default
open_positions List[Dict] A list of open positions to close. required
tolerance float The price tolerance for closing trades. required

Returns

Name Type Description
List[Dict] A list of responses for each closed trade.