Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 817 Bytes

PositionsByTraderTask.md

File metadata and controls

37 lines (30 loc) · 817 Bytes

PositionsByTraderTask

The PositionsByTraderTask can be used to monitor one or more accounts's positions. It's identifier is margin.positionsByTrader.

Arguments

PositionsByTraderTask takes the argument account of type string or string[] for monitoring multiple accounts, for example:

...
task: margin.positionsByTrader
arguments: 
    account: 
        - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQ
        - 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty
...

Output

The output for this task will be in the following format:

{
  "account": string;
  "liquidityPoolId": string;
  "positionId": string;
  "pair": {
    "base": string;
    "quote": string;
  };
  "leverage": string;
  "marginHeld": string;
  "accumulatedSwap": string;
  "profit": string;
}