opinion

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Opinion.trade

Opinion.trade

Full integration with Opinion.trade, a BNB Chain prediction market with on-chain CLOB (Central Limit Order Book).
与Opinion.trade完全集成,这是一个基于BNB Chain的预测市场,具备链上CLOB(中央限价订单簿)功能。

Quick Start

快速开始

bash
undefined
bash
undefined

Set credentials

设置凭证

export OPINION_API_KEY="your-api-key" export OPINION_PRIVATE_KEY="0x..."
export OPINION_API_KEY="your-api-key" export OPINION_PRIVATE_KEY="0x..."

Search markets

搜索市场

/op markets trump
/op markets trump

Get price

获取价格

/op price 813
/op price 813

Place order

下单

/op buy 813 YES 0.55 100
undefined
/op buy 813 YES 0.55 100
undefined

Commands

命令

Market Data

市场数据

CommandDescription
/op markets [query]
Search markets
/op market <id>
Get market details
/op price <id>
Current prices
/op book <tokenId>
Show orderbook
命令说明
/op markets [query]
搜索市场
/op market <id>
获取市场详情
/op price <id>
当前价格
/op book <tokenId>
查看订单簿

Trading

交易

CommandDescription
/op buy <marketId> <outcome> <price> <size>
Place buy order
/op sell <marketId> <outcome> <price> <size>
Place sell order
/op cancel <orderId>
Cancel order
/op cancelall
Cancel all orders
/op orders
List open orders
Examples:
bash
/op buy 813 YES 0.55 100     # Buy YES at 55c, 100 shares
/op sell 813 NO 0.40 50      # Sell NO at 40c, 50 shares
/op cancel abc123            # Cancel specific order
命令说明
/op buy <marketId> <outcome> <price> <size>
下买单
/op sell <marketId> <outcome> <price> <size>
下卖单
/op cancel <orderId>
取消订单
/op cancelall
取消所有订单
/op orders
查看未成交订单
示例:
bash
/op buy 813 YES 0.55 100     # 以0.55美元买入100份YES
/op sell 813 NO 0.40 50      # 以0.40美元卖出50份NO
/op cancel abc123            # 取消指定订单

Account

账户

CommandDescription
/op balance
Check USDT balance
/op positions
View open positions
命令说明
/op balance
查看USDT余额
/op positions
查看持仓

Configuration

配置

bash
undefined
bash
undefined

Required for market data

市场数据功能必填

export OPINION_API_KEY="your-api-key"
export OPINION_API_KEY="your-api-key"

Required for trading

交易功能必填

export OPINION_PRIVATE_KEY="0x..." export OPINION_MULTISIG_ADDRESS="0x..." # Vault/funder address
undefined
export OPINION_PRIVATE_KEY="0x..." export OPINION_MULTISIG_ADDRESS="0x..." # 金库/出资方地址
undefined

Features

特性

  • BNB Chain - Fast, low-cost transactions
  • On-chain CLOB - Fully decentralized orderbook
  • Prediction Markets - Politics, crypto, sports, and more
  • Real-time WebSocket - Live price updates
  • EIP-712 Signing - Secure order authentication
  • BNB Chain - 快速、低成本的交易
  • 链上CLOB - 完全去中心化的订单簿
  • 预测市场 - 涵盖政治、加密货币、体育等多个领域
  • 实时WebSocket - 实时价格更新
  • EIP-712 Signing - 安全的订单认证

Resources

资源