Interface Finance

Generator to generate finance related entries.

interface Finance {
    cusip(): string;
    isin(): string;
}

Methods

Methods

  • Unique identifier for securities, especially bonds, in the United States and Canada.

    Returns string

    a random cusip

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.finance.cusip())
    }

    Output (formatted as JSON value)

    "S4BL2MVY6"
    
  • International standard code for uniquely identifying securities worldwide.

    Returns string

    a random isin

    import { Faker } from "k6/x/faker"

    let faker = new Faker(11)

    export default function () {
    console.log(faker.finance.isin())
    }

    Output (formatted as JSON value)

    "PGS4BL2MVY68"