Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/delta/dalal-street-server
/ types & classes
Types & classes
147 in github.com/delta/dalal-street-server
⨍
Functions
739
◇
Types & classes
147
Struct
AdjacencyList
models/InspectComponents.go:41
Struct
AlreadyClosedError
AlreadyClosedError is given out when user tries to Cancel an already closed order. Unlikely to happen, but still possible
models/Ask.go:207
Struct
Ask
models/Ask.go:65
TypeAlias
AskOrderFillStatus
* * PerformOrderFillTransaction performs the following function * - Set transaction price based on order type(Limit, Market). StopLoss needs to be ha
models/User.go:1848
Interface
AskPQueue
AskPQueue provides a heap priority queue data structure for Asks. It can be max or min ordered. It is synchronized and is safe for concurrent operatio
matchingengine/pqueue.go:24
Struct
Bid
models/Bid.go:14
TypeAlias
BidOrderFillStatus
models/User.go:1849
Interface
BidPQueue
DO NOT DELETE THIS COMMENT : It is required to generate mocks when running "go generate ./..." go:generate mockgen -source pqueue.go -destination ../m
matchingengine/pqueue.go:14
Interface
BroadcastStream
BroadcastStream represents an object that provides methods for handling a single stream All updates are broadcast to *all* listeners.
datastreams/BroadcastStream.go:12
Struct
BuyLimitExceededError
BuyLimitExceededError is generated when an Bid's StockQuantity is greater than BUY_LIMIT (for BuyFromExchange orders)
models/User.go:590
Struct
Config
Config contains all the configuration options
utils/config.go:12
Struct
Config
this files handles config for daily challenges Config model
models/Config.go:10
Struct
DailyChallenge
DailyChallenge model
models/DailyChallenge.go:21
Struct
DailyChallengeStatus
models/GameState.go:39
Struct
DailyLeaderboardRow
models/DailyLeaderboard.go:10
Struct
EndOfDayValue
models/EndOfDayValues.go:5
FuncType
FillOrder
go:generate mockgen -source OrderBook.go -destination ../mocks/mock_OrderBook.go -package mocks FillOrder is a type definition for a function that fil
matchingengine/OrderBook.go:14
Struct
GameState
GameState struct defines different variables of the game
models/GameState.go:74
Interface
GameStateStream
GameStateStream represents the interface for handling a game state data stream
datastreams/GameStateStream.go:14
TypeAlias
GameStateType
models/GameState.go:9
Struct
InspectComponentResult
Inspect Component Result
models/InspectComponents.go:36
Struct
InspectDegreeDetails
Result of inspect users
models/InspectUserDegree.go:9
Struct
InspectDetails
models/InspectDetails.go:18
Struct
InvalidDividendAmountError
InvalidDividendAmountError is given out when the dividend amount in negative.
models/User.go:650
Struct
InvalidOrderIDError
InvalidOrderIDError is given out when a user tries to cancel an order he didn't make or that didn't exist
models/User.go:629
Struct
InvalidRetrievePriceError
InvalidRetrievePriceError is given out when a user tries to cancel an order he didn't make or that didn't exist
models/User.go:636
Struct
InvalidStockIdError
InvalidStockIdError is given out when the stock id is either more than the number of stocks or negative.
models/User.go:657
Struct
InvalidTransaction
InvalidTransaction is given out when a user tries to cancel an order he didn't make or that didn't exist
models/User.go:643
Struct
IpoAlreadyOpenError
models/Ipo.go:51
Struct
IpoBid
models/IpoBid.go:12
Struct
IpoNotBiddableError
models/Ipo.go:45
Struct
IpoOrderStockLimitExceeded
models/IpoBid.go:45
Struct
IpoStock
models/Ipo.go:11
Struct
LeaderboardRow
models/LeaderboardRow.go:12
Struct
Lrank
models/InspectDetails.go:26
Interface
Manager
Manager manages access to all data streams
datastreams/Stream.go:28
Interface
MarketDepthStream
DO NOT DELETE THIS COMMENT : It is required to generate mocks when running "go generate ./..." go:generate mockgen -source MarketDepth.go -destination
datastreams/MarketDepth.go:17
Struct
MarketEvent
models/MarketEvent.go:12
Interface
MarketEventsStream
MarketEventsStream defines the interface for interacting with the MyOrders datastream
datastreams/MarketEvents.go:12
Struct
MarketState
models/GameState.go:11
Interface
MatchingEngine
MatchingEngine represents a collection of OrderBooks for all stocks in the exchange.
matchingengine/MatchingEngine.go:18
Struct
MinimumPriceThresholdError
MinimumPriceThresholdError is sent when the order's price is below MINIMUM_ORDER_PRICE
models/User.go:582
Struct
MockAskPQueue
MockAskPQueue is a mock of AskPQueue interface
mocks/mock_pqueue.go:95
Struct
MockAskPQueueMockRecorder
MockAskPQueueMockRecorder is the mock recorder for MockAskPQueue
mocks/mock_pqueue.go:101
Struct
MockBidPQueue
MockBidPQueue is a mock of BidPQueue interface
mocks/mock_pqueue.go:14
Struct
MockBidPQueueMockRecorder
MockBidPQueueMockRecorder is the mock recorder for MockBidPQueue
mocks/mock_pqueue.go:20
Struct
MockManager
MockManager is a mock of Manager interface
mocks/mock_Stream.go:14
Struct
MockManagerMockRecorder
MockManagerMockRecorder is the mock recorder for MockManager
mocks/mock_Stream.go:20
Struct
MockMarketDepthStream
MockMarketDepthStream is a mock of MarketDepthStream interface
mocks/mock_MarketDepth.go:13
Struct
MockMarketDepthStreamMockRecorder
MockMarketDepthStreamMockRecorder is the mock recorder for MockMarketDepthStream
mocks/mock_MarketDepth.go:19
Struct
MockMatchingEngine
MockMatchingEngine is a mock of MatchingEngine interface
mocks/mock_MatchingEngine.go:14
Struct
MockMatchingEngineMockRecorder
MockMatchingEngineMockRecorder is the mock recorder for MockMatchingEngine
mocks/mock_MatchingEngine.go:20
Struct
MockOrderBook
MockOrderBook is a mock of OrderBook interface
mocks/mock_OrderBook.go:14
Struct
MockOrderBookMockRecorder
MockOrderBookMockRecorder is the mock recorder for MockOrderBook
mocks/mock_OrderBook.go:20
Struct
MortgageQueryData
MortgageQueryData stores stocks in bank of a given stockid
models/MortgageDetail.go:10
Interface
MulticastStream
MulticastStream represents an object that provides methods for handling multiple groups in a stream. It allows you to broadcast updates to individual
datastreams/MulticastStream.go:12
Interface
MyOrdersStream
MyOrdersStream defines the interface for interacting with the MyOrders datastream
datastreams/MyOrders.go:11
Struct
NotEnoughActualWorthError
NotEnoughActualWorth is generated when an Ask's StockQuantity is such that deducting those many stocks will mean that with the current stock worth mul
models/User.go:611
Struct
NotEnoughCashError
NotEnoughCashError is generated when a Bid's StockQuantity*Price is such that deducting so much cash from the user will leave him with less than MINIM
models/User.go:622
Struct
NotEnoughStocksError
NotEnoughStocksError is generated when an Ask's StockQuantity is such that deducting those many stocks will leave the user with less than SHORT_SELL_B
models/User.go:599
Struct
Notification
models/Notification.go:9
Interface
NotificationsStream
NotificationsStream represents the interface for handling a notifications data stream
datastreams/Notifications.go:14
Struct
NumberOfUsersResult
Result of number of users
models/InspectUserDegree.go:15
Struct
OTP
models/OTP.go:26
Interface
OrderBook
OrderBook stores the order book for a given stock
matchingengine/OrderBook.go:21
Struct
OrderDepositTransaction
models/OrderDepositTransaction.go:8
Struct
OrderFill
models/OrderFill.go:7
Struct
OrderPriceOutOfWindowError
OrderPriceOutOfWindowError is sent when the order's price is outside the allowed price window
models/User.go:571
Struct
OrderStockLimitExceeded
Public interface List of errors OrderStockLimitExceeded is generated when an order's StockQuantity is greater than ASK/BID_LIMIT
models/User.go:564
TypeAlias
OrderType
models/Ask.go:15
Struct
OtpVerifiedState
models/GameState.go:21
TypeAlias
PQType
PQType represents a priority queue ordering kind (see MAXPQ and MINPQ)
matchingengine/pqueue.go:33
Struct
PasswordChangeRequests
PasswordChangeRequests -> Defines struct
models/PasswordReset.go:13
Struct
PushNotification
PushNotification the message format for the notification
models/PushNotification.go:44
Struct
ReferralCode
ReferralCode for new users
models/ReferralCode.go:12
Struct
Registration
models/Registration.go:20
TypeAlias
Resolution
Resolution enum
models/StockHistory.go:42
Interface
Session
Session provides an interface to access a session of a user
session/session.go:22
Struct
ShortSellBank
Short sell bank is an abstraction of inventory, holds the number of stocks of stock available for lending (which is further used for shorting by the u
models/ShortSell.go:10
Struct
ShortSellLends
short sell lends stores all the stock lends to a user this will be used to square-off at EOD
models/ShortSell.go:17
TypeAlias
Stack
Stack for DFS
models/InspectComponents.go:20
Struct
Stock
models/Stock.go:21
Struct
StockBankruptError
StockBankruptError is given out when the stock is already bankrupt.
models/User.go:664
Struct
StockBankruptState
models/GameState.go:25
Struct
StockDividendState
StockDividendState determines if a company gives dividend
models/GameState.go:16
Interface
StockExchangeStream
StockExchangeStream interface defines the interface to interact with StockExchange stream
datastreams/StockExchange.go:15
Struct
StockHistory
models/StockHistory.go:13
Interface
StockHistoryStream
StockHistoryStream interface defines the interface to interact with StockHistory stream
datastreams/StockHistory.go:11
Interface
StockPricesStream
StockPricesStream interface defines the interface to interact with StockPrices stream
datastreams/StockPrices.go:14
Struct
Transaction
models/Transaction.go:78
Struct
TransactionGraph
Transaction results
models/InspectUserDegree.go:20
Struct
TransactionSummary
* TransactionSummary models entries to the TransactionSummary table */
models/TransactionSummary.go:6
TypeAlias
TransactionType
models/Transaction.go:12
Interface
TransactionsStream
TransactionsStream defines the interface to interact with a Transactions stream
datastreams/Transactions.go:12
Struct
User
User models the User object.
models/User.go:61
Struct
UserBlockState
models/GameState.go:30
Struct
UserId
Struct for getting user number to userID mapping
models/InspectUserDegree.go:38
Struct
UserOtp
models/OTP.go:38
Struct
UserReferredCredit
models/GameState.go:35
Struct
UserRewardCredit
models/GameState.go:43
next →
1–100 of 147, ranked by callers