TraderController

@RestController
@RequestMapping(value = "/api/trader")
open class TraderController

Constructors

Link copied to clipboard
@Autowired
constructor(@NotNull traderService: @NotNull TraderService, @NotNull authContextService: @NotNull AuthContextService)

Functions

Link copied to clipboard
@PreAuthorize(value = "isAuthenticated()")
@GetMapping(value = "/events/all")
@NotNull
open fun getAllEvents(@NotNull @AuthenticationPrincipal user: @NotNull ProductUser): @NotNull ResponseEntity<TradeEventListResponse>
Gets all trade events for the authenticated user.
Link copied to clipboard
@GetMapping(value = "/events/batch", params = [""offset"", ""limit""])
@NotNull
open fun getBatchEvents(@RequestParam(value = "offset", defaultValue = "0") offset: Int, @RequestParam(value = "limit", defaultValue = "10") limit: Int): @NotNull ResponseEntity<TradeEventListResponse>
Link copied to clipboard
@PreAuthorize(value = "isAuthenticated()")
@GetMapping(value = "/events/exists")
@NotNull
open fun hasEvents(@NotNull @AuthenticationPrincipal user: @NotNull ProductUser): @NotNull ResponseEntity<Boolean>