Sha256: 7f0d184a621c3845937b288719b7d15ab1168b7ea045f69494feeb5c749bbc6b

Contents?: true

Size: 977 Bytes

Versions: 1

Compression:

Stored size: 977 Bytes

Contents

# SnapTrade::Position

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **symbol** | [**PositionSymbol**](PositionSymbol.md) |  | [optional] |
| **units** | **Float** |  | [optional] |
| **price** | **Float** | Last known market price for the symbol | [optional] |
| **open_pnl** | **Float** |  | [optional] |
| **fractional_units** | **Float** | Deprecated, use the units field for both fractional and integer units going forward | [optional] |
| **average_purchase_price** | **Float** | Average purchase price for this position. Either returned by the underlying broker or calculated using historical transactions. | [optional] |
| **book_price** | **Float** | The book price of the asset | [optional] |

## Example

```ruby
require 'snaptrade'

instance = SnapTrade::Position.new(
  symbol: null,
  units: 40,
  price: 113.15,
  open_pnl: 0.44,
  fractional_units: 1.44,
  average_purchase_price: 108.3353,
  book_price: 5
)
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snaptrade-1.14.0 docs/Position.md