Skip to content

Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

polygon-ruby-client

Polygon.io API ruby client

Example usage:

Client config

client=Polygon::Api::Client.new(api_key: 'xxx')

Trades

client.trades(symbol: 'AAPL',date: '2020-08-14',options: {limit: 3})

All trades

client.all_trades(symbol: 'AAPL',date: '2020-08-14'){ |trade| putstrade}client.all_trades(symbol: 'AAPL',date: '2020-08-14',options: {timestamp: 1597414943490858428,timestampLimit: 1597430760261736603}){ |trade| putstrade}

Aggregates

client.aggregates(symbol: 'AAPL',multiplier: 2,timespan: 'minute',from: '1597941120000',to: '1597942920000')client.aggregates(symbol: 'AAPL',multiplier: 3,timespan: 'minute',from: '2020-08-19',to: '2020-08-20')

About

Polygon.io API ruby client

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages