handlers

package
v0.0.0-...-66898cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuyStock

func BuyStock(w http.ResponseWriter, r *http.Request)

func SellStock

func SellStock(w http.ResponseWriter, r *http.Request)

Types

type TradeRequest

type TradeRequest struct {
	UserID      uint    `json:"user_id"`
	StockSymbol string  `json:"stock_symbol"`
	Quantity    int     `json:"quantity"`
	Price       float64 `json:"price"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL