MCPcopy Create free account

hub / github.com/TradeSEB/polymarket-trading-bot / functions

Functions19 in github.com/TradeSEB/polymarket-trading-bot

↓ 6 callersFunctionparsePrice
(s: string | undefined)
src/polymarket/ws-prices.ts:18
↓ 3 callersFunctioncurrentSlotKey
()
src/btc-15m-high-price-bot.ts:30
↓ 2 callersFunctionparseJsonArray
(raw: unknown)
src/polymarket/prices.ts:19
↓ 2 callersFunctionstopPing
()
src/polymarket/ws-prices.ts:65
↓ 1 callersFunctionbestAskFromBook
From book.asks (array of { price, size }) get best (lowest) ask.
src/polymarket/ws-prices.ts:25
↓ 1 callersFunctionbestBidFromBook
(bids: Array<{ price?: string; size?: string }> | undefined)
src/polymarket/ws-prices.ts:35
↓ 1 callersFunctionbuildClobClient
()
src/polymarket/order.ts:26
↓ 1 callersFunctioncanBuy
(tokenId: string)
src/btc-15m-high-price-bot.ts:40
↓ 1 callersFunctioncreateMarketWsClient
(options: MarketWsClientOptions)
src/polymarket/ws-prices.ts:57
↓ 1 callersFunctiongetClientKey
()
src/polymarket/order.ts:69
↓ 1 callersFunctiongetClobClient
()
src/polymarket/order.ts:80
↓ 1 callersFunctiongetTokenIdsForSlug
(slug: string)
src/polymarket/prices.ts:39
↓ 1 callersFunctiongetTokenIdsForSlugCached
(slug: string)
src/polymarket/prices.ts:72
↓ 1 callersFunctionmain
()
src/btc-15m-high-price-bot.ts:47
↓ 1 callersFunctionplacePolymarketBuy
( tokenId: string, price: number, size: number, conditionId?: string )
src/polymarket/order.ts:91
↓ 1 callersFunctionroundPriceToTickSize
(price: number, tickSize: string)
src/polymarket/order.ts:73
↓ 1 callersFunctionslugForCurrent15m
(market: string = "btc")
src/polymarket/prices.ts:8
Functionclose
()
src/polymarket/ws-prices.ts:167
Functionconnect
()
src/polymarket/ws-prices.ts:72