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

User.buyStock Method

asdia edited this page Jan 6, 2021 · 4 revisions
Class: User

Buys a stock using the user's account.

Parameters

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

Returns

String
A string determining whether the transaction succeeded or failed.

Example

const user = new User('u-02c977bb-0a6c-4eb2-bfca-5e9101025aaf')
user.buyStock('VC', 1, 5)

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