1 Group.buyStock Method
asdia edited this page 2021-01-04 21:12:07 +08:00
Class: Group

Buys a stock using the group's account.

Parameters

Name Type Default Value Comment
Ticker string The stock's ticker
Amount number In credits
Price CreditAmount In credits
Auth EntityUser

Returns

String
A string determining whether the transaction succeeded or failed.

Example

const group = new Group('g-afe31e8b-c53a-41c8-94db-69fb9c15118a')
group.buyStock('VC', 1, 5, exampleEntity)