Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@master-chief/alpaca

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master-chief/alpaca - npm Package Compare versions

Comparing version 3.5.0 to 3.5.1

2

package.json
{
"name": "@master-chief/alpaca",
"version": "3.5.0",
"version": "3.5.1",
"description": "a TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams",

@@ -5,0 +5,0 @@ "author": "master-chief",

# alpaca
![version](https://img.shields.io/github/package-json/v/117/alpaca?color=196DFF&style=flat-square)
![code](https://img.shields.io/github/languages/code-size/117/alpaca?color=F1A42E&style=flat-square)
![code](https://img.shields.io/github/languages/code-size/117/alpaca?color=F1A42E&style=flat-square&label=size)
![build](https://img.shields.io/github/workflow/status/117/alpaca/test?style=flat-square)
![prettier](https://img.shields.io/static/v1?label=code%20style&message=prettier&color=ff51bc&style=flat-square)
![prettier](https://img.shields.io/static/v1?label=style&message=prettier&color=ff51bc&style=flat-square)

@@ -57,3 +57,5 @@ a TypeScript Node.js library for the https://alpaca.markets REST API and

If you wish to use env vars, populate these fields with `process.env` on your own. Paper account key detection is automatic. Using OAuth? Simply pass an `access_token` in the credentials object.
If you wish to use env vars, populate these fields with `process.env` on your
own. Paper account key detection is automatic. Using OAuth? Simply pass an
`access_token` in the credentials object.

@@ -60,0 +62,0 @@ ```typescript

@@ -29,3 +29,3 @@ import {

if (!rawAccount) {
return null
return undefined
}

@@ -65,3 +65,3 @@

if (!rawClock) {
return null
return undefined
}

@@ -84,3 +84,3 @@

if (!rawOrder) {
return null
return undefined
}

@@ -120,3 +120,3 @@

parseOrders(rawOrders: RawOrder[]): Order[] {
return rawOrders ? rawOrders.map((order) => this.parseOrder(order)) : null
return rawOrders ? rawOrders.map((order) => this.parseOrder(order)) : undefined
}

@@ -126,3 +126,3 @@

if (!rawPosition) {
return null
return undefined
}

@@ -159,3 +159,3 @@

? rawPositions.map((pos) => this.parsePosition(pos))
: null
: undefined
}

@@ -165,3 +165,3 @@

if (!rawTradeActivity) {
return null
return undefined
}

@@ -189,3 +189,3 @@

if (!rawNonTradeActivity) {
return null
return undefined
}

@@ -210,3 +210,3 @@

if (!rawActivities) {
return null
return undefined
}

@@ -226,4 +226,5 @@

private parseNumber(numStr: string): number {
if (typeof numStr === 'undefined') return numStr
return parseFloat(numStr)
}
}

@@ -19,3 +19,3 @@ import { Parser } from '../src/parser'

expect(result).toBeNull()
expect(result).toBeUndefined()
})

@@ -48,3 +48,3 @@

expect(result).toBeNull()
expect(result).toBeUndefined()
})

@@ -92,3 +92,3 @@

expect(order.legs).toBeNull()
expect(order.legs).toBeUndefined()
})

@@ -114,3 +114,3 @@ })

expect(result).toBeNull()
expect(result).toBeUndefined()
})

@@ -124,3 +124,3 @@ })

expect(result).toBeNull()
expect(result).toBeUndefined()
})

@@ -154,3 +154,3 @@

expect(result).toBeNull()
expect(result).toBeUndefined()
})

@@ -176,3 +176,3 @@

expect(result).toBeNull()
expect(result).toBeUndefined()
})

@@ -205,3 +205,3 @@

expect(result).toBeNull()
expect(result).toBeUndefined()
})

@@ -234,3 +234,3 @@

expect(result).toBeNull()
expect(result).toBeUndefined()
})

@@ -237,0 +237,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc