Hummingbot Integration Helper#
seesaw-hummingbot-helper is a dependency-light Python package for preparing a
Hummingbot integration. It is not a Hummingbot ConnectorBase and has no
Hummingbot dependency. It does not provide order tracking, balance polling,
network lifecycle, order submission, or cancellation. A production Hummingbot
connector does not exist in this repository.
Scope#
Included:
- trading-pair discovery from
/api/v1/exchange/symbols - REST orderbook snapshots from
/api/v1/exchange/orderbook/{symbol} - REST ticker snapshots from
/api/v1/exchange/ticker/{symbol} - local order intents that convert Hummingbot decimal probabilities into Seesaw
integer
price_bpsvalues
Excluded:
- hosted WebSocket orderbook streaming
- outbound webhooks
- historical data exports
- hosted order placement, signing, or custody
For replayable fills or account events, run a user-owned Solana RPC or stream provider and apply the Trustless Stream Consumer Recipes.
Install From Source#
pip install "git+https://github.com/palominito/seesaw.git#subdirectory=packages/hummingbot-connector"
Example#
from decimal import Decimal
from seesaw_hummingbot import SeesawHummingbotIntegrationHelper
helper = SeesawHummingbotIntegrationHelper()
pairs = helper.trading_pairs(limit=50)
snapshot = helper.order_book_snapshot(pairs[0], depth=25)
intent = helper.build_order_intent(
trading_pair=pairs[0],
market_address=snapshot.market_address,
trade_type="BUY",
order_type="LIMIT",
price=Decimal("0.5125"),
amount=Decimal("1000000"),
client_order_id=b"hb-1".ljust(16, b"\0"),
)
intent is not submitted. It is a deterministic handoff object for a
wallet-signed Solana transaction builder. The package exports only
SeesawHummingbotIntegrationHelper; there is no connector-named alias.
The intent carries every PlaceOrder order control under the Python SDK
place_order keyword names (order_type is the program byte; client_order_id
is None or exactly 16 bytes); see packages/hummingbot-connector/README.md.
Outcome Lanes And Prices#
Every trading pair ends in :YES or :NO, and that suffix is the order's
outcome. trade_type becomes intent (BUY or SELL), and price_bps is
the decimal probability converted to basis points in that outcome's own price
space. The helper never complements a NO price and never chooses a book side;
the fields map one-to-one onto the program's PlaceOrder outcome, intent,
and price_bps fields, and the program derives the stored custody side.
Order book and ticker snapshots are likewise returned in the pair's own outcome
space, and the helper rejects a response that serves the other lane.
Building a real Hummingbot connector remains external integration work. It
would need an owned ConnectorBase, order/balance tracking, network lifecycle,
submission and cancellation, plus Hummingbot's connector certification tests.