MCPcopy Create free account

hub / github.com/delta/dalal-street-server / functions

Functions739 in github.com/delta/dalal-street-server

↓ 1 callersFunctionAddStocksToExchange
(stockId uint32, count uint64)
models/Stock.go:272
↓ 1 callersFunctionAddUserReservedCash
AddUserReservedCash adds reservedCash to the users account This function should be called ONLY AFTER lock is obtained on user
models/User.go:869
↓ 1 callersFunctionAddUserSubscription
AddUserSubscription Adds the subscription keys for sending push notifications
models/PushNotification.go:57
↓ 1 callersMethodBuyStocksFromExchange
(ctx context.Context, req *actions_pb.BuyStocksFromExchangeRequest)
grpcapi/actionservice/StockActionService.go:13
↓ 1 callersMethodCancelAskOrder
(*models.Ask)
matchingengine/MatchingEngine.go:21
↓ 1 callersMethodCancelBidOrder
(*models.Bid)
matchingengine/MatchingEngine.go:22
↓ 1 callersFunctionChangePassword
(tempPass, newPass, confirmPass string)
models/PasswordReset.go:83
↓ 1 callersFunctionCloseDB
()
utils/Db.go:19
↓ 1 callersFunctionConfigDataInit
ConfigDataInit init initial values for Config table
models/Config.go:18
↓ 1 callersFunctionCreateBot
CreateBot creates a bot from the botName
models/User.go:386
↓ 1 callersMethodDestroy
()
session/session.go:28
↓ 1 callersFunctionGetAllIpoStocks
()
models/Ipo.go:57
↓ 1 callersFunctionGetAllOpenAsks
GetAllOpenAsks returns all open asks. This will be called by MatchingEngine while initializing.
models/Ask.go:246
↓ 1 callersFunctionGetAllOpenBids
GetAllOpenBids returns all open bids. This will be called by MatchingEngine while initializing.
models/Bid.go:182
↓ 1 callersFunctionGetAskTransactionsForStock
(stockID, count uint32)
models/Transaction.go:170
↓ 1 callersFunctionGetDailyChallengeConfig
GetDailyChallengeConfig returns DailyChallengeConfig
models/Config.go:146
↓ 1 callersFunctionGetDailyLeaderboard
(userId, startingId, count uint32)
models/DailyLeaderboard.go:40
↓ 1 callersFunctionGetEntireLeaderboard
Returns the Entire Leaderboard
models/LeaderboardRow.go:43
↓ 1 callersFunctionGetLeaderboard
(userId, startingId, count uint32)
models/LeaderboardRow.go:64
↓ 1 callersMethodGetMarketDepthUpdates
(req *datastreams_pb.SubscriptionId, stream pb.DalalStreamService_GetMarketDepthUpdatesServer)
grpcapi/streamservice/MarketStreamService.go:12
↓ 1 callersFunctionGetMyIpoBids
(userId uint32)
models/IpoBid.go:169
↓ 1 callersFunctionGetMyReward
GetMyReward add reward to user as cash
models/DailyChallenge.go:646
↓ 1 callersFunctionGetNewFileLogger
GetNewFileLogger returns a logger that writes to a file of the given name
utils/log.go:56
↓ 1 callersFunctionGetNotifications
(userId, lastId, count uint32)
models/Notification.go:31
↓ 1 callersFunctionGetReferralCode
GetReferralCode fetches a user's referral code if its exists, Else will generate one and sends it to the user
models/ReferralCode.go:25
↓ 1 callersMethodGetReferralCode
(ctx context.Context, req *actions_pb.GetReferralCodeRequest)
grpcapi/actionservice/UserActionService.go:308
↓ 1 callersFunctionGetReservedStocksOwned
(userId uint32)
models/User.go:2322
↓ 1 callersFunctionGetStockHistory
(stockId uint32, interval Resolution)
models/StockHistory.go:275
↓ 1 callersFunctionGetTransactions
(userId, lastId, count uint32)
models/Transaction.go:136
↓ 1 callersFunctionGetUserState
GetUserState returns userState
models/DailyChallenge.go:621
↓ 1 callersFunctionGetUserStockWorth
GetUserStockWorth returns total stockworth of a user including reserved StockWorth
models/User.go:2581
↓ 1 callersFunctionGetmaxStockID
GetmaxStockID returns the maximum StockID from the stocks.
models/Dividends.go:187
↓ 1 callersFunctionGrpcHandlerFunc
Handler func to handle incoming grpc requests
grpcapi/grpcapi.go:229
↓ 1 callersMethodHead
()
matchingengine/pqueue.go:27
↓ 1 callersFunctionInit
Init configures the matching engine
matchingengine/MatchingEngine.go:38
↓ 1 callersFunctionInit
()
httpapi/mux.go:9
↓ 1 callersFunctionIsDockerEnv
()
utils/utils.go:96
↓ 1 callersFunctionIsGrpcRequest
(req *http.Request)
utils/utils.go:80
↓ 1 callersMethodLogin
(ctx context.Context, req *actions_pb.LoginRequest)
grpcapi/actionservice/AuthActionService.go:79
↓ 1 callersFunctionMinInt64
(a, b uint64)
utils/utils.go:50
↓ 1 callersFunctionNew
New returns a new session
session/session.go:92
↓ 1 callersFunctionNewDalalActionService
NewDalalActionService returns instance of DalalActionServiceServer
grpcapi/actionservice/DalalActionService.go:39
↓ 1 callersFunctionNewDalalStreamService
NewDalalStreamService creates a new DalalStreamServer instnance
grpcapi/streamservice/DalalStreamService.go:45
↓ 1 callersFunctionNewMatchingEngine
NewMatchingEngine returns an instance of MatchingEngine It calls StartStockmatching for all the stocks in concurrent goroutines. WARNING: Do NOT call
matchingengine/MatchingEngine.go:45
↓ 1 callersFunctionNewMockManager
NewMockManager creates a new mock instance
mocks/mock_Stream.go:25
↓ 1 callersFunctionNewMockOrderBook
NewMockOrderBook creates a new mock instance
mocks/mock_OrderBook.go:25
↓ 1 callersFunctionNewOrderBook
NewOrderBook returns a new OrderBook instance for a given stockId.
matchingengine/OrderBook.go:46
↓ 1 callersFunctionOpenMarket
(updateDayHighAndLow bool)
models/MarketClose.go:10
↓ 1 callersFunctionPasswordReset
PasswordReset -> Takes in email of user ,validates it and sends password change email to user
models/PasswordReset.go:20
↓ 1 callersFunctionPerformBuyFromExchangeTransaction
(userId uint32, stockId uint32, stockQuantity uint64)
models/User.go:1682
↓ 1 callersFunctionPerformOrderFillTransaction
(ask *Ask, bid *Bid, stockTradePrice uint64, stockTradeQty uint64)
models/User.go:1863
↓ 1 callersFunctionRefundIpoSlotToUser
(ipoBid *IpoBid, newStockId, SlotQuantity, StocksPerSlot uint32, cost int64)
models/Ipo.go:354
↓ 1 callersMethodRemoveListener
(sessionId string)
datastreams/MarketDepth.go:19
↓ 1 callersMethodRemoveListener
(sessionId string)
datastreams/MarketEvents.go:15
↓ 1 callersMethodRemoveListener
(userId uint32, sessionId string)
datastreams/GameStateStream.go:17
↓ 1 callersMethodRemoveListener
(userId uint32, sessionId string)
datastreams/Notifications.go:17
↓ 1 callersMethodRemoveListener
(sessionId string)
datastreams/StockExchange.go:19
↓ 1 callersMethodRemoveListener
(groupId uint32, sessionId string)
datastreams/MulticastStream.go:14
↓ 1 callersMethodRemoveListener
(userId uint32, sessionId string)
datastreams/Transactions.go:15
↓ 1 callersMethodRemoveListener
(userId uint32, sessionId string)
datastreams/MyOrders.go:14
↓ 1 callersFunctionSaveCancelledIpoBidTransaction
(IpoBidToCancel *IpoBid, price uint64)
models/IpoBid.go:268
↓ 1 callersFunctionSaveNewIpoBidTransaction
(NewIpoBid *IpoBid, UserId uint32, price uint64)
models/IpoBid.go:190
↓ 1 callersFunctionSendDividendsTransactionsAndNotifications
SendDividendsTransactionsAndNotifications sends Transactions through Transactions stream and a Notification about Dividends to all users.
models/Dividends.go:156
↓ 1 callersFunctionSendSMS
(toPhoneNumber, content string)
utils/utils.go:114
↓ 1 callersMethodSendStockHistoryUpdate
(stockId uint32, history *models_pb.StockHistory)
datastreams/StockHistory.go:12
↓ 1 callersMethodSet
Set sets a key value pair in the map
session/session.go:129
↓ 1 callersFunctionSetDayHighAndLow
SetDayHighAndLow will be called when market is opening for the day
models/Stock.go:356
↓ 1 callersFunctionSetPreviousDayClose
SetPreviousDayClose will be called when market is closing for the day to update the day closing
models/Stock.go:316
↓ 1 callersFunctionSquareOffLends
* squareOffLends square off the active intra day lends - takes back the stocks given to the user(from stocks they owns) on that day - the difference i
models/ShortSell.go:128
↓ 1 callersMethodString
()
models/Transaction.go:74
↓ 1 callersMethodToProto
()
models/LeaderboardRow.go:28
↓ 1 callersMethodToProto
()
models/OrderFill.go:17
↓ 1 callersMethodToProto
()
models/Stock.go:53
↓ 1 callersMethodToProto
()
models/IpoBid.go:28
↓ 1 callersMethodToProto
()
models/Ask.go:83
↓ 1 callersFunctionUpdateDailyLeaderboard
function to update DailyLeaderboard. Must be called periodically
models/DailyLeaderboard.go:91
↓ 1 callersFunctionUpdateLeaderboard
function to update leaderboard. Must be called periodically
models/LeaderboardRow.go:115
↓ 1 callersFunctionUpdateLeaderboardTicker
helper function to update leaderboard every thirty seconds
models/LeaderboardRow.go:202
↓ 1 callersFunctionUpdateMarketEvent
(stockId, oldNewsId uint32, headline, text string, isGlobal bool, imageURL string)
models/MarketEvent.go:134
↓ 1 callersFunctionVerifyAccount
VerifyAccount is used to handle logic after clicking the email verification link sent after registration
models/Registration.go:41
↓ 1 callersFunctionVerifyReferralCode
VerifyReferralCode checks if the user has entered a valid referral code
models/ReferralCode.go:81
↓ 1 callersFunctionbuildGraph
Funcion to build graph and volume of transaction of each user with nodes of degree 1
models/InspectUserDegree.go:67
↓ 1 callersMethodclearExistingOrders
* * Method to clear the existing orders for a particular stock */
matchingengine/OrderBook.go:559
↓ 1 callersFunctioncreateAsk
createAsk adds the ask to the database, fills the Id field of the ask and adds it to the asksMap
models/Ask.go:180
↓ 1 callersFunctioncreateBid
(bid *Bid, tx *gorm.DB)
models/Bid.go:127
↓ 1 callersFunctioncreateShortSellLend
creates a short sell lend for short selling order
models/ShortSell.go:98
↓ 1 callersFunctiongenerateVAPIDHeaderKeys
Generates the ECDSA public and private keys for the JWT encryption
models/PushNotification.go:365
↓ 1 callersFunctiongetAsk
(id uint32)
models/Ask.go:141
↓ 1 callersFunctiongetBid
(id uint32)
models/Bid.go:90
↓ 1 callersFunctiongetComponents
Funcion to build graph and get components
models/InspectComponents.go:47
↓ 1 callersFunctiongetConnection
(t *testing.T)
grpcapi/grpcapi_test.go:47
↓ 1 callersFunctiongetSpecificStocksEntry
getSpecificStocksEntry returns rows of userid and stockQuantity for an stockId
models/DailyChallenge.go:595
↓ 1 callersFunctiongetTaxForAskingUser
Helper to calculate tax for asking user It is assumed that an Exclusive Read and Write lock is already obtained for the user. DO NOT call this functio
models/User.go:1605
↓ 1 callersFunctiongetTotalSingleStockCount
getTotalSingleStockCount returns total stocks a user owns including reserved stocks
models/User.go:531
↓ 1 callersFunctiongetTradePriceAndQty
* * getTradePriceAndQty returns the trade price and quantity for a particular match of orders */
matchingengine/helpers.go:28
↓ 1 callersFunctiongetVAPIDAuthorizationHeader
getVAPIDAuthorizationHeader
models/PushNotification.go:391
↓ 1 callersFunctioninitDbHelper
(config *Config)
utils/Db.go:23
↓ 1 callersFunctioninitLogger
initLogger initializes the logger with appropriate configuration options
utils/log.go:15
↓ 1 callersMethodloadOldOrders
loadOldOrders() loads old unfulfilled orders from database
matchingengine/MatchingEngine.go:92
↓ 1 callersFunctionmakeOrderDepositTransactionRef
makeOrderDepositTransactionRef returns a reference of OrderDepositTransaction
models/OrderDepositTransaction.go:20
← previousnext →201–300 of 739, ranked by callers