Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TradeSEB/polymarket-trading-bot
/ functions
Functions
19 in github.com/TradeSEB/polymarket-trading-bot
⨍
Functions
19
◇
Types & classes
3
↓ 6 callers
Function
parsePrice
(s: string | undefined)
src/polymarket/ws-prices.ts:18
↓ 3 callers
Function
currentSlotKey
()
src/btc-15m-high-price-bot.ts:30
↓ 2 callers
Function
parseJsonArray
(raw: unknown)
src/polymarket/prices.ts:19
↓ 2 callers
Function
stopPing
()
src/polymarket/ws-prices.ts:65
↓ 1 callers
Function
bestAskFromBook
From book.asks (array of { price, size }) get best (lowest) ask.
src/polymarket/ws-prices.ts:25
↓ 1 callers
Function
bestBidFromBook
(bids: Array<{ price?: string; size?: string }> | undefined)
src/polymarket/ws-prices.ts:35
↓ 1 callers
Function
buildClobClient
()
src/polymarket/order.ts:26
↓ 1 callers
Function
canBuy
(tokenId: string)
src/btc-15m-high-price-bot.ts:40
↓ 1 callers
Function
createMarketWsClient
(options: MarketWsClientOptions)
src/polymarket/ws-prices.ts:57
↓ 1 callers
Function
getClientKey
()
src/polymarket/order.ts:69
↓ 1 callers
Function
getClobClient
()
src/polymarket/order.ts:80
↓ 1 callers
Function
getTokenIdsForSlug
(slug: string)
src/polymarket/prices.ts:39
↓ 1 callers
Function
getTokenIdsForSlugCached
(slug: string)
src/polymarket/prices.ts:72
↓ 1 callers
Function
main
()
src/btc-15m-high-price-bot.ts:47
↓ 1 callers
Function
placePolymarketBuy
( tokenId: string, price: number, size: number, conditionId?: string )
src/polymarket/order.ts:91
↓ 1 callers
Function
roundPriceToTickSize
(price: number, tickSize: string)
src/polymarket/order.ts:73
↓ 1 callers
Function
slugForCurrent15m
(market: string = "btc")
src/polymarket/prices.ts:8
Function
close
()
src/polymarket/ws-prices.ts:167
Function
connect
()
src/polymarket/ws-prices.ts:72