MCPcopy Create free account

hub / github.com/LittleLightLittleFire/REKT / functions

Functions47 in github.com/LittleLightLittleFire/REKT

↓ 11 callersMethodString
String implements Stringer.
liquidation.go:156
↓ 8 callersMethodApply
Apply the decoratino to a liquidation string.
state.go:328
↓ 8 callersMethodDecorate
Decorate a new liquidation.
state.go:164
↓ 8 callersMethodToCombined
ToCombined converts a single liquidation to a combined liquidation.
liquidation.go:103
↓ 8 callersFunctionverify
TODO: fix these tests so they work without inspection
state_test.go:12
↓ 7 callersMethodsnarkRunes
()
state.go:319
↓ 6 callersMethodDisplayPrice
DisplayPrice using min tick.
liquidation.go:93
↓ 6 callersMethodUpdate
Update the value of an instrument.
instrument.go:76
↓ 5 callersFunctionNewState
NewState returns a new state object.
state.go:91
↓ 5 callersMethodmedalsRunes
()
state.go:299
↓ 4 callersMethodContractValue
ContractValue ...
instrument.go:244
↓ 4 callersMethodDisplayQuantity
DisplayQuantity using min step.
liquidation.go:98
↓ 3 callersFunctionNewInstrumentTable
NewInstrumentTable creates a new instrument table.
instrument.go:63
↓ 3 callersMethodNotionalValue
NotionalValue denominated in the settlCurrency.
instrument.go:257
↓ 3 callersMethodProcess
Process calculates the liquidated position's display quantity, units and USD value.
instrument.go:185
↓ 3 callersMethodUSDValue
USDValue returns the USD value of the liquidation.
liquidation.go:251
↓ 2 callersMethodCanCombine
CanCombine returns if an addtional liquidation can be merged into an existing combined liquidation.
liquidation.go:114
↓ 2 callersMethodPriceUSD
PriceUSD returns price of 1 unit of currency in USD. Returns 0 if not found.
instrument.go:116
↓ 2 callersFunctiondisplayTick
(value, tick float64)
liquidation.go:65
↓ 2 callersFunctiondisplayUSD
(value float64)
liquidation.go:77
↓ 2 callersFunctionlerp
Linear interpolation
state.go:159
↓ 2 callersMethodresetSnark
resetSnark shuffles the snark array and resets the counter.
state.go:135
↓ 2 callersMethodstreakRunes
()
state.go:311
↓ 2 callersFunctionsymbolLiquidator
(state *State, liqChan <-chan Liquidation, tweetChan chan<- preparedTweet)
main.go:216
↓ 1 callersMethodCombine
Combine an existing liquidation into the the combined liquidation.
liquidation.go:146
↓ 1 callersMethodCombiningDelay
CombiningDelay is the minimum time to wait for another liquidation to combine with. Small positions incur longer combining delays
liquidation.go:238
↓ 1 callersMethodContractValueXBT
ContractValueXBT ...
instrument.go:228
↓ 1 callersMethodMaxQuantity
MaxQuantity of a combined liquidation.
liquidation.go:269
↓ 1 callersMethodMinQuantity
MinQuantity of a combined liquidation.
liquidation.go:280
↓ 1 callersMethodMinStep
MinStep returns the minimum amount a position can be entered.
instrument.go:274
↓ 1 callersMethodUSDLookup
(symbol Symbol)
instrument.go:159
↓ 1 callersMethodhasMedals
()
state.go:287
↓ 1 callersMethodhasSnark
()
state.go:291
↓ 1 callersMethodhasStreak
()
state.go:295
↓ 1 callersFunctionliquidator
(liqChan <-chan Liquidation, state *State, client *gotwi.Client)
main.go:292
↓ 1 callersFunctionloadConfig
()
main.go:34
↓ 1 callersFunctionrunClient
(cfg BotConfig, liqChan chan Liquidation)
main.go:64
↓ 1 callersMethodsave
save stores the high scores back to disk.
state.go:144
MethodString
String implements Stringer.
liquidation.go:181
FunctionTest10m
(t *testing.T)
state_test.go:145
FunctionTestInstruments
(t *testing.T)
instrument_test.go:12
FunctionTestInstruments2
(t *testing.T)
instrument_test.go:209
FunctionTestStateSimple
(t *testing.T)
state_test.go:53
FunctionTestStreaks
(t *testing.T)
state_test.go:84
FunctionTestSymbolLiquidator
(t *testing.T)
state_test.go:18
MethodTotalQuantity
TotalQuantity of a combined liquidation.
liquidation.go:260
Functionmain
()
main.go:362