Skip to content

Event API

James Robert Somers edited this page Mar 6, 2017 · 2 revisions

Search Events

Parameter Value
apiKey TradeIt API key
publisherUserId Unique Identifier for the user
symbol Stock Symbol
symbolClass EQUITY_OR_ETF, OPTION, MUTUAL_FUNDS, FIXED_INCOME, FX, FUTURE, UNKNOWN
Example
curl -X POST "https://ams.tradingticket.com/api/v1/userEvents/search?apiKey=tradeit-test-api-key&publisherUserId=publisher-user-id&symbol=TSLA&symbolClass=EQUITY_OR_ETF"

Quote Events

Parameter Value
apiKey TradeIt API key
publisherUserId Unique Identifier for the user
symbol Stock Symbol
symbolClass EQUITY_OR_ETF, OPTION, MUTUAL_FUNDS, FIXED_INCOME, FX, FUTURE, UNKNOWN
Example
curl -X POST "https://ams.tradingticket.com/api/v1/userEvents/quote?apiKey=tradeit-test-api-key&publisherUserId=publisher-user-id&symbol=TSLA&symbolClass=EQUITY_OR_ETF"

Watch List Events

Parameter Value
apiKey TradeIt API key
publisherUserId Unique Identifier for the user
symbol Stock Symbol
symbolClass EQUITY_OR_ETF, OPTION, MUTUAL_FUNDS, FIXED_INCOME, FX, FUTURE, UNKNOWN
action ADD, REMOVE
Example
curl -X POST "https://ams.tradingticket.com/api/v1/userEvents/watchList?apiKey=tradeit-test-api-key&publisherUserId=publisher-user-id&symbol=TSLA&symbolClass=EQUITY_OR_ETF&action=ADD"

Paper Trade Events

Parameter Value
apiKey TradeIt API key
publisherUserId Unique Identifier for the user
symbol Stock Symbol
symbolClass EQUITY_OR_ETF, OPTION, MUTUAL_FUNDS, FIXED_INCOME, FX, FUTURE, UNKNOWN
action BUY, SELL, SELL_SHORT, BUY_TO_COVER
quantity Quantity traded
Example
curl -X POST "https://ams.tradingticket.com/api/v1/userEvents/paperTrade?apiKey=tradeit-test-api-key&publisherUserId=publisher-user-id&symbol=TSLA&symbolClass=EQUITY_OR_ETF&action=SELL"