longbridge coupon

View the coupon cards in your account and the orders each card was applied to.

Hong Kong (AP) accounts only

These commands read data from the AP (Hong Kong) data center. A US account gets an error saying the command is not available for accounts in the US data center; there is no US equivalent, so do not retry. All times in the coupon list output are Hong Kong time (+08

).

Basic Usage

# Coupon cards in your account
longbridge coupon list
# Orders a coupon card was applied to
longbridge coupon orders --card-id 0123456789abcdef0123456789abcdef

coupon list

List the coupon cards in your account — commission-free cards, platform-fee deduction cards, stock cards, quote / fundamental data cards, cash cards, IPO cards and more.

List valid coupons

longbridge coupon list
longbridge coupon list --format json

The default table shows card id, type, title, amount (with currency, where the card has one), status, valid from and valid until (no expiry for a card that never expires), followed by the total and the expired count. Use --format json for the fields listed below.

{
  "cards": [
    {
      "card_id": "0123456789abcdef0123456789abcdef",
      "card_type": "commission",
      "title": "HK stocks commission-free card",
      "card_status": 0,
      "card_status_label": "unused",
      "start_time": "2026-11-01T00:00:00+08:00",
      "end_time": "2026-12-31T23:59:59+08:00",
      "trade_sessions": [],
      "commission": {
        "markets": ["HK"],
        "targets": ["stocks", "ETF"],
        "rebate_rate": "1",
        "bz_types": [0, 3],
        "commission_duration": 0,
        "unlimited": 1,
        "usage_count": 0,
        "lave_usage_count": 0,
        "amount_limit": 0,
        "superposition": false
      }
    }
  ],
  "total": 1,
  "expired_count": 3
}

Example values are illustrative.

List expired coupons

longbridge coupon list --status expired

Filter by card type

# commission, platform_fee_deduct, stock, quote, cash, …
longbridge coupon list --card-type platform_fee_deduct

Include the full terms of use

longbridge coupon list --with-terms

By default description is shortened and detail is omitted; --with-terms returns both in full.

Paginate

longbridge coupon list --page 2 --count 50

Cards the app pins to the top or bottom of the list are included on page 1 only.

Options

FlagDescription
--statusvalid (default — not expired: unused, in use or used) or expired
--card-typeCard type, e.g. commission, platform_fee_deduct, stock, quote, cash (default: all)
--with-termsInclude each card’s full terms of use (description, detail)
--pagePage number (default: 1; 0 is read as 1)
--countRecords per page (default: 20, max 50 — a larger value is capped at 50). Aliases: --size, --limit

Output fields

Each entry in cards[] has:

FieldDescription
card_idCoupon id (32 hex characters) — pass it to coupon orders --card-id
card_type, title, title_sec, description, detailCard type, titles and terms
card_status, card_status_labelThe service’s raw status code, and its label (absent for a code the CLI does not know): unused, used, expired, redeeming, in_use or processing
start_time, end_timeValidity period. A card that never expires has no end_time and carries no_expiry: true
activate_timeWhen the card was activated
amount, currencyCard value as a decimal string (e.g. "1000.00"), where applicable
available_trade_session, trade_sessionsTrading sessions the card can be used in (display text, and the service’s values)
subscription_idSubscription id, as returned by the service

Each card also carries the terms object of its own card_type — for example commission on a commission card. The objects of the other types are absent.

ObjectFields
commissionmarkets, targets, rebate_rate, bz_types, commission_balance, commission_duration, unlimited, commission_expired_time, usage_count, lave_usage_count, settlement_model, amount_limit, superposition
platform_fee_deductbz_types, counter_id, counter_name, markets, usage_count, lave_usage_count, superposition
cashreceive_duration
stockcounter_id, counter_name, amount, redemption_type, send_way, optional_counters[] shares, fallback shares
stock_fragmentcounter_id, counter_name, market, markets, underlying_type, amounts
quote, fundamentalcurrent_end_time, inapplicable, investor_type, manual_activate, markets, member_investor_type, pair_spu_no, quote_duration, quote_market, quote_tags, superposition
iposubscription_id
ipo_commissionbz_types, counter_id, counter_name, financing_limit
ipo_interestdiscount_rate
finance_interestdiscount_mode, discount_rate, superposition
fund_deductmax_risk_level, min_order_amount, order_types, underlying_type, underlying_values, underlying_names
cryptofallback counter_id, optional_counters[] counter_id
coffee_couponcoupon_channel, coupon_id, coupon_no, is_available_all_store, period_type, settled_store_id, store_id_list, store_list[] store_name, threshold, use_limit
ai_benefitbenefit_days, benefit_start, benefit_end, benefit_tag

Codes in these objects are the service’s raw numbers; a code the CLI does not know is printed as is.

  • bz_types (in commission and platform_fee_deduct) and stock_fragment.underlying_type: 0 stocks, 1 US options, 2 HK warrants, 3 ETF, 4 LOF. commission.targets names the known codes (stocks / options / warrants / ETF / LOF) and is present when bz_types holds at least one of them
  • ipo_commission.bz_types: 1 financing (margin) IPO, 2 cash IPO
  • commission.unlimited: 0 time-limited free commission, 1 rebate, 2 deduction, 6 per-use card with a fixed amount per use (amount / usage_count), 7 per-use discount card capped at amount_limit per use
  • investor_type (in quote / fundamental): 0 any, 1 non-professional, 2 professional

Other values:

  • commission.commission_duration and quote_duration are in seconds; 200 years or more means lifetime free
  • commission.amount_limit is the per-use cap of an unlimited 7 card
  • usage_count and lave_usage_count are the times used and the uses left; superposition is true when the card can be combined with other coupons
  • ai_benefit.benefit_days is in days
  • ipo_interest.discount_rate is an annual rate
  • coffee_coupon.coupon_no is the voucher’s template code (e.g. coffee-50), not a personal redemption code; settled_store_id is absent until the card is settled at a store
  • The meaning of cash.receive_duration and of the finance_interest fields is not confirmed; they are printed as the service returns them

commission.commission_balance, stock.amount and finance_interest.discount_rate are decimal strings; the other values are printed as the service returns them. Times inside these objects (commission_expired_time, current_end_time, benefit_start, benefit_end) are Hong Kong time (+08

), and unset times are omitted.

Fields with no value are omitted from the JSON — they are not printed as null or an empty string. For example, activate_time is absent on a card that was never activated.

total is the number of cards matching the filter and expired_count the number of expired cards. The output carries no account numbers.

coupon orders

List the orders a coupon card — such as a commission-free or platform-fee deduction card — was applied to.

See which orders used a coupon

# Card id is card_id from `longbridge coupon list` (32 hex characters)
longbridge coupon orders --card-id 0123456789abcdef0123456789abcdef
longbridge coupon orders --card-id 0123456789abcdef0123456789abcdef --format json

The default table shows one row per order — section (locked or settled), order id, state, price, quantity, currency, rebate and rebate date. Use --format json for the fields listed below.

{
  "card_id": "0123456789abcdef0123456789abcdef",
  "locked": [],
  "settled": [
    {
      "order_id": "100000000000000001",
      "state": "Filled",
      "state_val": "FilledStatus",
      "executed_price": "385.20",
      "executed_quantity": "200",
      "currency": "HKD",
      "settlement_currency": "HKD",
      "rebate": "15.00",
      "rebate_dt": "2026-11-04"
    }
  ]
}

Example values are illustrative.

A numeric id is a bank card id, not a coupon — take the id from coupon list, not from bank-cards. An id that is not 32 hex characters is rejected with an error before any request is sent, with a hint when it looks like a bank card id.

Options

FlagDescription
--card-idCoupon id (card_id from coupon list). Required

Output fields

FieldDescription
card_idThe coupon id you asked for
locked[]Orders holding the card whose rebate is not settled yet
settled[]Orders whose rebate has been settled

Each order has order_id, state, state_val, executed_price, executed_quantity, currency, settlement_currency, rebate and rebate_dt; executed_price, executed_quantity and rebate are decimal strings. rebate_dt is the rebate date exactly as the service returns it — the CLI does not convert it to a time zone. The output carries no account numbers.

Fields with no value are omitted from the JSON — they are not printed as null or an empty string. For example, rebate_dt is absent until the rebate has a date.

Requirements

OAuth account permission required. See the account permission setup guide.

MarkdownEditLast Updated: December 1, 2026 at 2:10:21 AM