1 Group.sellStock Method
asdia edited this page 2021-01-05 01:42:41 +08:00
Class: Group

Sells a stock from 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.sellStock('VC', 1, 10, exampleEntity)