Queries

About queries

accountByAccountId

Type: Account

Returns the account with the corresponding account id.

Arguments

NameDescription
accountId (String)

Accound id


accounts

Type: [Account]

Returns all user accounts.


configuration

Type: Configuration

Returns configuration.


order

Type: Order

Returns the order with the corresponding uid.

Arguments

NameDescription
uid (Int)

Order uid


orderByOrderId

Type: Order

Returns the order with the corresponding order id.

Arguments

NameDescription
orderId (String)

Order id


orders

Type: [Order]

Returns all the orders.


position

Type: Position

Returns the position with the corresponding uid.

Arguments

NameDescription
uid (Int)

Position uid


positions

Type: [Position]

Returns all the positions.


positionsByStrategyId

Type: [Position]

Returns all the positions of the specified strategy id.

Arguments

NameDescription
strategyId (String)

Strategy id


positionsByStrategyIdAndStatus

Type: [Position]

Returns all the positions of the specified strategy id and a certain status.

Arguments

NameDescription
strategyId (String)

Strategy id

status (PositionStatus)

Position status


positionsByStrategyUid

Type: [Position]

Returns all the positions of the specified strategy uid.

Arguments

NameDescription
strategyUid (Int)

Strategy uid


positionsByStrategyUidAndStatus

Type: [Position]

Returns all the positions of the specified strategy uid and a certain status.

Arguments

NameDescription
strategyUid (Int)

Strategy uid

status (PositionStatus)

Position status


strategies

Type: [Strategy]

Returns all the strategies.


strategy

Type: Strategy

Returns the strategy with the corresponding strategy uid.

Arguments

NameDescription
uid (Int)

Strategy uid


strategyByStrategyId

Type: Strategy

Returns the strategy with the corresponding strategy id.

Arguments

NameDescription
strategyId (String)

Strategy id


trade

Type: Trade

Returns the trade with the corresponding uid.

Arguments

NameDescription
uid (Int)

Trade uid


tradeByTradeId

Type: Trade

Returns the trade with the corresponding trade id.

Arguments

NameDescription
tradeId (String)

Trade id


trades

Type: [Trade]

Returns all the trades.