Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LittleLightLittleFire/REKT
/ functions
Functions
47 in github.com/LittleLightLittleFire/REKT
⨍
Functions
47
◇
Types & classes
16
↓ 11 callers
Method
String
String implements Stringer.
liquidation.go:156
↓ 8 callers
Method
Apply
Apply the decoratino to a liquidation string.
state.go:328
↓ 8 callers
Method
Decorate
Decorate a new liquidation.
state.go:164
↓ 8 callers
Method
ToCombined
ToCombined converts a single liquidation to a combined liquidation.
liquidation.go:103
↓ 8 callers
Function
verify
TODO: fix these tests so they work without inspection
state_test.go:12
↓ 7 callers
Method
snarkRunes
()
state.go:319
↓ 6 callers
Method
DisplayPrice
DisplayPrice using min tick.
liquidation.go:93
↓ 6 callers
Method
Update
Update the value of an instrument.
instrument.go:76
↓ 5 callers
Function
NewState
NewState returns a new state object.
state.go:91
↓ 5 callers
Method
medalsRunes
()
state.go:299
↓ 4 callers
Method
ContractValue
ContractValue ...
instrument.go:244
↓ 4 callers
Method
DisplayQuantity
DisplayQuantity using min step.
liquidation.go:98
↓ 3 callers
Function
NewInstrumentTable
NewInstrumentTable creates a new instrument table.
instrument.go:63
↓ 3 callers
Method
NotionalValue
NotionalValue denominated in the settlCurrency.
instrument.go:257
↓ 3 callers
Method
Process
Process calculates the liquidated position's display quantity, units and USD value.
instrument.go:185
↓ 3 callers
Method
USDValue
USDValue returns the USD value of the liquidation.
liquidation.go:251
↓ 2 callers
Method
CanCombine
CanCombine returns if an addtional liquidation can be merged into an existing combined liquidation.
liquidation.go:114
↓ 2 callers
Method
PriceUSD
PriceUSD returns price of 1 unit of currency in USD. Returns 0 if not found.
instrument.go:116
↓ 2 callers
Function
displayTick
(value, tick float64)
liquidation.go:65
↓ 2 callers
Function
displayUSD
(value float64)
liquidation.go:77
↓ 2 callers
Function
lerp
Linear interpolation
state.go:159
↓ 2 callers
Method
resetSnark
resetSnark shuffles the snark array and resets the counter.
state.go:135
↓ 2 callers
Method
streakRunes
()
state.go:311
↓ 2 callers
Function
symbolLiquidator
(state *State, liqChan <-chan Liquidation, tweetChan chan<- preparedTweet)
main.go:216
↓ 1 callers
Method
Combine
Combine an existing liquidation into the the combined liquidation.
liquidation.go:146
↓ 1 callers
Method
CombiningDelay
CombiningDelay is the minimum time to wait for another liquidation to combine with. Small positions incur longer combining delays
liquidation.go:238
↓ 1 callers
Method
ContractValueXBT
ContractValueXBT ...
instrument.go:228
↓ 1 callers
Method
MaxQuantity
MaxQuantity of a combined liquidation.
liquidation.go:269
↓ 1 callers
Method
MinQuantity
MinQuantity of a combined liquidation.
liquidation.go:280
↓ 1 callers
Method
MinStep
MinStep returns the minimum amount a position can be entered.
instrument.go:274
↓ 1 callers
Method
USDLookup
(symbol Symbol)
instrument.go:159
↓ 1 callers
Method
hasMedals
()
state.go:287
↓ 1 callers
Method
hasSnark
()
state.go:291
↓ 1 callers
Method
hasStreak
()
state.go:295
↓ 1 callers
Function
liquidator
(liqChan <-chan Liquidation, state *State, client *gotwi.Client)
main.go:292
↓ 1 callers
Function
loadConfig
()
main.go:34
↓ 1 callers
Function
runClient
(cfg BotConfig, liqChan chan Liquidation)
main.go:64
↓ 1 callers
Method
save
save stores the high scores back to disk.
state.go:144
Method
String
String implements Stringer.
liquidation.go:181
Function
Test10m
(t *testing.T)
state_test.go:145
Function
TestInstruments
(t *testing.T)
instrument_test.go:12
Function
TestInstruments2
(t *testing.T)
instrument_test.go:209
Function
TestStateSimple
(t *testing.T)
state_test.go:53
Function
TestStreaks
(t *testing.T)
state_test.go:84
Function
TestSymbolLiquidator
(t *testing.T)
state_test.go:18
Method
TotalQuantity
TotalQuantity of a combined liquidation.
liquidation.go:260
Function
main
()
main.go:362