- Stash :
Class
- Credentials :
Object
User credentials required for most API calls
Kind: global typedef
- Stash :
Class
- .authenticate(credentials)
- .all()
- .cards(credentials)
- .cardDetails(credentials)
- .userDetails(credentials)
- .investorApplication(credentials)
- .bankAccounts(credentials)
- .autoStash(credentials)
- .taxDocuments(credentials)
- .tradeConfirms(credentials)
- .accountHistory(credentials, filters)
- .portfolio(credentials)
- .buy(credentials, params)
- .approveBankAccount(credentials, amount_1, amount_2)
Authenticate user
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Object |
Account credentials |
credentials.email | string |
User's email address |
credentials.password | string |
User's account password |
Get all cards available
Kind: static method of Stash
Get available cards
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
Get user account details
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
Get user's investor application
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
Get user's bank accounts
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
Get user auto stash details
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
Get user's tax documents
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
Get user's trade confirms
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
Get user's Account History
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
filters | Object |
Filter paramenters |
filters.before | string |
Unix datetime |
filters.after | string |
Unix datetime |
Get an account portfolio
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
account_id | string |
The ID of the account you are trying to get the porfolio for (can be found under accounts from userDetails) |
Place a buy order
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
params | Object |
Parameters for the purchase |
params.value | number |
The dollar amount you wish to purchase. Minimum is 5. |
params.card_id | number |
The ID of the card you wish to purchase with. |
Approve a bank account by providing two dollar amounts
Kind: static method of Stash
Param | Type | Description |
---|---|---|
credentials | Credentials |
User's account credentials |
amount_1 | number |
Dollar amount 1 |
amount_2 | number |
Dollar amount 2 |
User credentials required for most API calls
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
access_token | string |
User's Access Token |
user_id | string |
User's ID |
uuid | string |
User's UUID |