Uses of Class
tech.cassandre.trading.bot.dto.position.PositionDTO
Package
Description
Batches.
Position DTO.
Service.
Internal management of strategies.
Mapper for DTO.
-
Uses of PositionDTO in tech.cassandre.trading.bot.batch
Modifier and TypeMethodDescriptionprotected final Set<PositionDTO>
PositionFlux.saveValues
(Set<PositionDTO> newValues) Modifier and TypeMethodDescriptionprotected final Set<PositionDTO>
PositionFlux.saveValues
(Set<PositionDTO> newValues) -
Uses of PositionDTO in tech.cassandre.trading.bot.dto.position
Modifier and TypeMethodDescriptionPositionDTO.PositionDTOBuilder.build()
PositionCreationResultDTO.getPosition()
Position (filled if position is successful).ModifierConstructorDescriptionPositionCreationResultDTO
(PositionDTO newPosition) Constructor for successful position creation. -
Uses of PositionDTO in tech.cassandre.trading.bot.service
Modifier and TypeMethodDescriptionPositionService.getPositionByUid
(long positionUid) Get position by position uid.final Optional<PositionDTO>
PositionServiceCassandreImplementation.getPositionByUid
(long positionUid) PositionService.getPositions()
Get positions.final Set<PositionDTO>
PositionServiceCassandreImplementation.getPositions()
-
Uses of PositionDTO in tech.cassandre.trading.bot.strategy.internal
Modifier and TypeMethodDescriptionfinal Optional<PositionDTO>
CassandreStrategy.getPositionByPositionId
(long positionId) Get a position by its id.final Map<Long,
PositionDTO> CassandreStrategy.getPositions()
Returns list of positions (position id the key).Modifier and TypeMethodDescriptiondefault void
CassandreStrategyInterface.onPositionsStatusUpdates
(Map<Long, PositionDTO> positions) Method called by Cassandre when there are positions status updates.default void
CassandreStrategyInterface.onPositionsUpdates
(Map<Long, PositionDTO> positions) Method called by Cassandre when there are positions updates.final void
CassandreStrategyImplementation.positionsUpdates
(Set<PositionDTO> positions) void
CassandreStrategyInterface.positionsUpdates
(Set<PositionDTO> positions) Method called by streams on positions updates. -
Uses of PositionDTO in tech.cassandre.trading.bot.util.mapper
Modifier and TypeMethodDescriptionPositionMapper.mapToPosition
(PositionDTO source) void
PositionMapper.updatePosition
(PositionDTO source, Position target)