Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

Group.buyStock Method

asdia edited this page Jan 4, 2021 · 1 revision
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)

Table of Contents

We highly recommend closing the Pages tab.

Get support

To get support for this project, just join our discord server

Clone this wiki locally