Sha256: 53bc5962b04835f629e3e4ada2855b341b1ebd7480342d7dacc3dacb195c9ff1

Contents?: true

Size: 1.59 KB

Versions: 23

Compression:

Stored size: 1.59 KB

Contents

=begin
#SnapTrade

#Connect brokerage accounts to your app for live positions and trading

The version of the OpenAPI document: 1.0.0
Contact: api@snaptrade.com
=end

require 'spec_helper'
require 'json'
require 'date'

# Unit tests for SnapTrade::Position
describe SnapTrade::Position do
  let(:instance) { SnapTrade::Position.new }

  describe 'test an instance of Position' do
    it 'should create an instance of Position' do
      expect(instance).to be_instance_of(SnapTrade::Position)
    end
  end
  describe 'test attribute "symbol"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "units"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "price"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "open_pnl"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "average_purchase_price"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  describe 'test attribute "fractional_units"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
snaptrade-2.0.75 spec/models/position_spec.rb
snaptrade-2.0.74 spec/models/position_spec.rb
snaptrade-2.0.73 spec/models/position_spec.rb
snaptrade-2.0.72 spec/models/position_spec.rb
snaptrade-2.0.71 spec/models/position_spec.rb
snaptrade-2.0.70 spec/models/position_spec.rb
snaptrade-2.0.69 spec/models/position_spec.rb
snaptrade-2.0.68 spec/models/position_spec.rb
snaptrade-2.0.67 spec/models/position_spec.rb
snaptrade-2.0.66 spec/models/position_spec.rb
snaptrade-2.0.64 spec/models/position_spec.rb
snaptrade-2.0.59 spec/models/position_spec.rb
snaptrade-2.0.58 spec/models/position_spec.rb
snaptrade-2.0.57 spec/models/position_spec.rb
snaptrade-2.0.56 spec/models/position_spec.rb
snaptrade-2.0.55 spec/models/position_spec.rb
snaptrade-2.0.54 spec/models/position_spec.rb
snaptrade-2.0.53 spec/models/position_spec.rb
snaptrade-2.0.52 spec/models/position_spec.rb
snaptrade-2.0.51 spec/models/position_spec.rb