Skip to content

Close instructions#

About#

Close instructions

Fields#

Name Type Required Description
mode string Yes position close mode on strategy or subscription removal. Preserve means that positions will not be closed and will not be managed by CopyFactory. close-gracefully-by-position means that positions will continue to be managed by CopyFactory, but only close signals will be copied. close-gracefully-by-symbol means that positions will continue to be managed by CopyFactory, but only close signals will be copied or signals to open positions for the symbols which already have positions opened. close-immediately means that all positions will be closed immediately. Default is close-immediately. One of preserve, close-gracefully-by-position, close-gracefully-by-symbol, close-immediately

Example#

{
  "mode": "preserve"
}

Usages#