# Step 4: Generate trade data

Now that you have created the functionality to generate stock ticker data, run the following commands to generate the data. This process may take several minutes depending on your workspace topology.

```sql
CALL seed_trades(100000);
CALL iter_stocks(100);

```

> **📝 Note**: Changing the input value for `iter_stocks` defines the size of the table. For example, changing from 100 to 200 doubles the amount of rows.

***

Modified at: November 20, 2024

Source: [/cloud/query-data/advanced-query-topics/example-building-a-sample-stock-trade-database/step-4-generate-trade-data/](https://docs.singlestore.com/cloud/query-data/advanced-query-topics/example-building-a-sample-stock-trade-database/step-4-generate-trade-data/)

(An index of the documentation is available at /llms.txt)
