CurrencyController

@RestController
@Profile(value = "!docs")
@RequestMapping(value = "/api/currency")
open class CurrencyController

Constructors

Link copied to clipboard
@Autowired
constructor(@NotNull currencyService: @NotNull CurrencyService)

Functions

Link copied to clipboard
@PermitAll
@GetMapping(value = "/all")
@NotNull
open fun getAll(): @NotNull ResponseEntity<DisplayCurrencyListResponse>
Link copied to clipboard
@PermitAll
@GetMapping(value = "/all", params = "offset")
@NotNull
open fun getAllWithOffset(@RequestParam(value = "offset", defaultValue = "0") offset: Int): @NotNull ResponseEntity<DisplayCurrencyListResponse>
Link copied to clipboard
@PermitAll
@GetMapping(value = "/performance/{currencyCode}")
@NotNull
open fun getCurrencyPerformance(@Nullable @PathVariable currencyCode: @Nullable String): @NotNull ResponseEntity<PerformanceRatingResponse>
Link copied to clipboard
@PermitAll
@PostMapping(value = "/value")
@NotNull
open fun getCurrencyValue(@NotNull @RequestBody assetValueRequest: @NotNull AssetValueRequest): @NotNull ResponseEntity<AssetValueResponse>
Link copied to clipboard
@PermitAll
@GetMapping(value = "/display/{code}")
@NotNull
open fun getDisplayCurrency(@PathVariable @Nullable code: @Nullable String): @NotNull ResponseEntity<DisplayCurrencyResponse>
Link copied to clipboard
@PermitAll
@PostMapping(value = "/history/fuzzy/{code}")
@NotNull
open fun getFuzzyHistory(@Nullable @PathVariable code: @Nullable String, @NotNull @RequestBody request: @NotNull FuzzyTimeValueRequest): @NotNull ResponseEntity<TimeValueResponse>
Link copied to clipboard
@PermitAll
@GetMapping(value = "/history/{code}")
@NotNull
open fun getHistory(@Nullable @PathVariable code: @Nullable String, @RequestParam(value = "hours", defaultValue = "24") hours: Int, @RequestParam(value = "intervalSeconds", defaultValue = "60") intervalSeconds: Int): @NotNull ResponseEntity<List<TimeValueResponse>>
Link copied to clipboard
@PermitAll
@GetMapping(value = "/list")
@NotNull
open fun getList(@RequestParam(value = "withCode", defaultValue = "false") withCode: Boolean): @NotNull ResponseEntity<CurrencyNamesResponse>