Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/austin-starks/NextTrade
/ functions
Functions
708 in github.com/austin-starks/NextTrade
⨍
Functions
708
◇
Types & classes
325
↓ 171 callers
Method
set
(symbol: string, priceObj: PriceObj)
app/src/models/priceMap/index.ts:247
↓ 116 callers
Method
isTrue
(args: IsConditionTrue)
app/src/models/conditions/or.ts:21
↓ 74 callers
Method
get
( asset: AbstractAsset, side: BuyOrSellEnum, fillEnum = FillProbabilityEnum.MID )
app/src/models/priceMap/index.ts:141
↓ 48 callers
Method
save
()
app/src/models/user/index.ts:64
↓ 38 callers
Method
toString
()
app/src/models/time/index.ts:64
↓ 36 callers
Method
create
(init: IBacktesterConfig)
app/src/models/backtester/index.ts:186
↓ 32 callers
Method
addGroup
(group: FormGroup)
app/src/models/field/formControl.ts:17
↓ 31 callers
Method
addStrategy
(strategy: Strategy)
app/src/models/portfolio/portfolio.ts:98
↓ 31 callers
Method
connect
()
app/src/services/db.ts:54
↓ 30 callers
Method
getPriceObj
(asset: AbstractAsset | string)
app/src/models/priceMap/index.ts:205
↓ 30 callers
Function
print
(...args: any[])
app/src/utils/functions.ts:6
↓ 28 callers
Function
catchErrorCallback
( err: any, authCb: (arg: string) => void, bannerCb: (arg: { message: string; severity: "error" | "succe
client/src/services/requests.tsx:109
↓ 25 callers
Method
save
()
app/src/models/strategy/index.ts:93
↓ 24 callers
Method
find
()
app/src/models/user/index.ts:153
↓ 24 callers
Method
print
(str: any, ...args: any[])
app/src/controller/forwardtestController/index.ts:135
↓ 23 callers
Method
clearDatabase
()
app/src/services/db.ts:72
↓ 23 callers
Method
closeDatabase
()
app/src/services/db.ts:62
↓ 23 callers
Method
findOne
(backtestId: Id, userId: Id)
app/src/models/backtester/index.ts:310
↓ 21 callers
Function
formatDate
(d: Date)
app/src/utils/functions.ts:80
↓ 21 callers
Method
updatePositions
(order: Order)
app/src/models/portfolio/portfolio.ts:125
↓ 20 callers
Method
constructRealisticMarketDict
( asset: AbstractAsset, mockData: MarketDataArray )
app/src/models/brokerage/testBrokerage.ts:122
↓ 19 callers
Method
addBuyingCondition
(condition: AbstractCondition)
app/src/models/strategy/index.ts:200
↓ 19 callers
Function
debug
(...args: any[])
app/src/utils/functions.ts:9
↓ 19 callers
Method
getOptimizerVector
* A vector in the following order: * - strategy.buyAmount.amount * - strategy.buyAmount.type * - strategy.sellAmount.amount * - strategy.s
app/src/models/optimization/index.ts:864
↓ 16 callers
Method
create
(obj: ICondition)
app/src/models/conditions/index.ts:130
↓ 14 callers
Method
buyLimitReached
( allocation: AllocationLimit, buyingPower: number, positions: IPosition[], priceMap: PriceMap
app/src/models/allocation/index.ts:203
↓ 14 callers
Method
create
(req: Request, res: Response)
app/src/controller/backtestController/index.ts:8
↓ 14 callers
Method
create
(userInfo: IUser)
app/src/models/user/index.ts:117
↓ 14 callers
Method
createFromArray
(array: ICondition[])
app/src/models/conditions/index.ts:47
↓ 13 callers
Method
HaveNoPositions
(assets: AbstractAsset[])
app/src/models/conditions/havePosition.ts:48
↓ 13 callers
Method
findById
(id: string)
app/src/models/user/index.ts:135
↓ 12 callers
Method
addAll
(conditions: AbstractCondition[])
app/src/models/conditions/compound.ts:39
↓ 12 callers
Method
createATMstrike
()
app/src/models/asset/Option.ts:44
↓ 12 callers
Method
getPrices
()
app/src/models/backtester/index.ts:285
↓ 11 callers
Method
addField
(field: AbstractField)
app/src/models/field/formGroup.ts:21
↓ 11 callers
Function
createMockPortfolio
(asset: AbstractAsset)
app/src/models/backtester/tests/test-backtester-jest.ts:1078
↓ 11 callers
Function
emptyCondition
(obj?: { _id?: string; type?: ConditionEnum; conditions?: AbstractCondition[]; })
client/src/pages/Condition/helpers.tsx:11
↓ 11 callers
Method
findByStrategy
( strategy: Strategy, userId: Id )
app/src/models/portfolio/portfolio.ts:228
↓ 10 callers
Method
createFromPosition
(pos: IPosition)
app/src/models/asset/index.ts:145
↓ 10 callers
Method
save
()
app/src/models/optimization/index.ts:339
↓ 10 callers
Method
save
()
app/src/models/order/index.ts:164
↓ 9 callers
Method
getDateTime
(currentDate: Date)
app/src/models/time/index.ts:68
↓ 9 callers
Method
getDynamicPrice
( asset: AbstractAsset, side: BuyOrSellEnum, fillEnum = FillProbabilityEnum.MID )
app/src/models/priceMap/index.ts:149
↓ 9 callers
Method
save
()
app/src/models/portfolio/portfolio.ts:76
↓ 9 callers
Method
setOptimizerVector
* * @param vector: a number[] retrieved from a portfolio that has the same strategies * * Precondition: vector is obtained from a portfolio w
app/src/models/optimization/index.ts:1045
↓ 8 callers
Method
calculateNumShares
( allocation: Allocation, buyingPower: number, positions: IPosition[], priceMap: PriceMap,
app/src/models/allocation/index.ts:109
↓ 8 callers
Method
create
(id: Id, oConfig: OrderConfig)
app/src/models/order/index.ts:232
↓ 8 callers
Method
find
(obj = {})
app/src/models/strategy/index.ts:298
↓ 8 callers
Method
getPositionPrice
(pos: IPosition, fillEnum = FillProbabilityEnum.MID)
app/src/models/priceMap/index.ts:238
↓ 8 callers
Method
newBacktest
(portfolio: AbstractPortfolio)
app/src/models/portfolio/mockPortfolio.ts:148
↓ 7 callers
Method
add
(s: IStatistics)
app/src/models/statistics/index.ts:26
↓ 7 callers
Method
calcPositionValue
(positions: IPosition[], priceMap: PriceMap)
app/src/models/allocation/index.ts:144
↓ 7 callers
Function
compare
( current: number, target: number, c: Comparator )
app/src/utils/functions.ts:93
↓ 7 callers
Method
findByName
(name: string, userId: Id)
app/src/models/strategy/index.ts:208
↓ 7 callers
Method
getExpiration
(expirationArray: Array<Datestring>)
app/src/models/asset/Option.ts:190
↓ 7 callers
Method
getFilledOrders
(userId: Id)
app/src/models/order/index.ts:189
↓ 7 callers
Method
getOptionExpirationList
(option: Option)
app/src/models/brokerage/testBrokerage.ts:54
↓ 7 callers
Method
incrementTime
()
app/src/models/backtester/index.ts:607
↓ 7 callers
Method
print
(...args: any[])
app/src/models/optimization/index.ts:267
↓ 7 callers
Method
run
(config: IRunBacktestConfig)
app/src/models/backtester/index.ts:221
↓ 7 callers
Method
sendPaperOrder
(obj: OrderConfig)
app/src/models/brokerage/TradierBrokerage.ts:215
↓ 6 callers
Function
commifyLargeNumber
(number: number)
client/src/utils/index.tsx:164
↓ 6 callers
Method
constructFakeMarketDict
( asset: AbstractAsset, mockData: Array<number>, ohlc: OhlcEnum )
app/src/models/brokerage/testBrokerage.ts:105
↓ 6 callers
Method
contains
(asset: String | AbstractAsset)
app/src/models/priceMap/index.ts:267
↓ 6 callers
Method
createStrategyFromModel
(model: IStrategyModel)
app/src/models/strategy/index.ts:292
↓ 6 callers
Method
getForm
()
app/src/models/optimization/index.ts:1280
↓ 6 callers
Method
getMarketHistory
( asset: AbstractAsset, startTime: Datestring )
app/src/models/brokerage/testBrokerage.ts:36
↓ 6 callers
Method
keys
()
app/src/models/priceMap/index.ts:263
↓ 6 callers
Method
save
()
app/src/models/backtester/index.ts:258
↓ 6 callers
Function
sleep
(ms: number)
app/src/utils/functions.ts:89
↓ 5 callers
Method
clone
(iproto: IPrototypeStrategy)
app/src/models/strategy/index.ts:132
↓ 5 callers
Method
create
(obj: IBrokerage)
app/src/models/brokerage/index.ts:20
↓ 5 callers
Method
create
(obj: AbstractAsset)
app/src/models/asset/index.ts:34
↓ 5 callers
Method
createOTMstrike
(amount: number, metric?: PercentOrDollarsEnum)
app/src/models/asset/Option.ts:48
↓ 5 callers
Method
find
(obj = {})
app/src/models/portfolio/portfolio.ts:244
↓ 5 callers
Method
getAssets
( portfolios: AbstractPortfolio[], brokerage: AbstractBrokerage )
app/src/models/asset/index.ts:176
↓ 5 callers
Method
run
(obj: IRunOptimizerConfig = {})
app/src/models/optimization/index.ts:355
↓ 4 callers
Method
PriceIsNotTooHigh
()
app/src/models/conditions/movingAverage.ts:72
↓ 4 callers
Method
addSellingCondition
(condition: AbstractCondition)
app/src/models/strategy/index.ts:204
↓ 4 callers
Method
calculateQuantityToBuy
( asset: AbstractAsset, priceMap: PriceMap, buyAmount: PurchaseAndSaleAllocation, buyingPower:
app/src/models/allocation/index.ts:35
↓ 4 callers
Method
calculateQuantityToSell
( asset: AbstractAsset, priceMap: PriceMap, sellAmount: PurchaseAndSaleAllocation, buyingPower
app/src/models/allocation/index.ts:81
↓ 4 callers
Function
createData
( strategyName: string, time: string, amount: number, profit: string )
client/src/pages/Assets/AssetDashboard.tsx:17
↓ 4 callers
Method
exists
(name: string)
app/src/models/asset/StockData.ts:38
↓ 4 callers
Method
find
( portfolioId: Id, userId: Id, limit: number )
app/src/models/optimization/index.ts:1223
↓ 4 callers
Method
findByEmail
(email: string)
app/src/models/user/index.ts:144
↓ 4 callers
Method
findById
(id: Id, userId: Id)
app/src/models/strategy/index.ts:261
↓ 4 callers
Method
findByIdAndUpdate
( id: Id, userId: Id, data: IStrategy )
app/src/models/strategy/index.ts:273
↓ 4 callers
Method
fixStateElement
(vector: OptimizerVector[])
app/src/models/optimization/index.ts:788
↓ 4 callers
Method
generateAuthToken
(longExpiration = false)
app/src/models/user/index.ts:89
↓ 4 callers
Method
getBacktestPrices
(d: Date, interval: TimeIntervalEnum)
app/src/models/brokerage/BacktestBrokerage.ts:200
↓ 4 callers
Method
getForm
()
app/src/models/conditions/or.ts:62
↓ 4 callers
Function
getOptimizerForm
(optimizerId?: string)
client/src/services/requests.tsx:38
↓ 4 callers
Function
killAllOptimizers
(user: User)
app/src/controller/optimizationController/index.ts:15
↓ 4 callers
Method
login
(email: string, password: string)
app/src/models/user/index.ts:100
↓ 4 callers
Function
randomBoxMueller
(mean: number, sd: number)
app/src/utils/functions.ts:13
↓ 4 callers
Method
run
()
app/src/controller/forwardtestController/index.ts:69
↓ 4 callers
Method
runLoop
()
app/src/controller/forwardtestController/index.ts:89
↓ 4 callers
Method
setPriceFromMap
(priceMap: InternalMap)
app/src/models/priceMap/index.ts:251
↓ 4 callers
Method
setState
()
app/src/models/optimization/index.ts:301
↓ 4 callers
Method
validateFields
(control: FormControl)
app/src/models/field/formControl.ts:102
next →
1–100 of 708, ranked by callers