Skip to content

Latest commit

 

History

History

trading

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

trading

Fetching trading data and making a trade using schwab-client-js

schwab-client-js gives you complete access to the Schwab REST API using convenient classes and methods. You can stream real-time market data, create and track orders, and retrieve information about your account as well as retrieve different types of market data.

Installation

Software prerequisites: nodejs version 18 or newer.

npm install

or

yarn

You'll need to create the .env file as described in the schwab-client-js instructions. If you don't have a working SCHWAB_REFRESH_TOKEN, you can run schwab-authorize to create one. See the schwab-client-js instructions.

Usage

yarn dev

or

npm run dev

MIT License

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.