Longbridge OpenAPI SDK
    Preparing search index...

    Class Coupon

    A coupon (reward card)

    Index
    • get cardId(): string

      Coupon ID (32 hex characters; pass to coupon_orders)

      Returns string

    • get cardType(): string

      Coupon type, e.g. commission, platform_fee_deduct, stock, quote, cash

      Returns string

    • get title(): string

      Title

      Returns string

    • get titleSec(): string

      Secondary title

      Returns string

    • get description(): string

      Description

      Returns string

    • get detail(): string

      Terms and details

      Returns string

    • get cardStatusRaw(): number | null

      The server's numeric code of card_status, also when it is a code this SDK does not know (card_status is then Unknown); null when the value is missing or is not a code

      Returns number | null

    • get startTime(): Date | null

      Start of validity

      Returns Date | null

    • get endTime(): Date | null

      End of validity (none when not set or when the coupon never expires; see noExpiry)

      Returns Date | null

    • get noExpiry(): boolean

      Whether the coupon never expires (the server's end time is in or after 2100)

      Returns boolean

    • get activateTime(): Date | null

      Activation time (none when not activated)

      Returns Date | null

    • get currency(): string

      Currency

      Returns string

    • get availableTradeSession(): string

      Trading sessions the coupon applies to, as display text

      Returns string

    • get tradeSessions(): string[]

      Trading sessions the coupon applies to, as returned by the server

      Returns string[]

    • get subscriptionId(): string

      Subscription ID, as returned by the server

      Returns string

    • get cash(): CouponCash | null

      Terms of a cash coupon (none for other coupon types)

      Returns CouponCash | null

    • get coffeeCoupon(): CouponCoffee | null

      Terms of a coffee coupon (none for other coupon types)

      Returns CouponCoffee | null

    • get fundamental(): CouponQuote | null

      Terms of a fundamental-data coupon (none for other coupon types)

      Returns CouponQuote | null

    • get ipo(): CouponIpo | null

      Terms of an IPO coupon (none for other coupon types)

      Returns CouponIpo | null

    • get quote(): CouponQuote | null

      Terms of a quote (market data) coupon (none for other coupon types)

      Returns CouponQuote | null

    • get stock(): CouponStock | null

      Terms of a stock coupon (none for other coupon types)

      Returns CouponStock | null

    • Returns string

    • Returns any