Create New Watchlist
Create a new watchlist for a particular user
Last updated
{
"Name": "Apple & Google" ,
"Securities": [4,5] //internal ID of the securities in the new watchlist
}POST apiURL/v1.0/users/{userID}/watchlists/?resultIncludeSecurities=true{
"Id": 19302,
"Name": "Apple & Google",
"Type": "UserList",
"CreateDate": "2019-02-15T18:15:01.7237322Z",
"ModifyDate": "2019-02-15T18:15:01.7237322Z",
"ReadOnly": false,
"SecurityList": [
{
"Id": 4,
"Symbol": "AAPL",
"Description": "Apple Inc.",
"Exchange": "XNAS",
"Currency": "USD",
"AddedDate": "2012-11-29T16:05:43.993Z",
"ModifyDate": "2018-12-10T08:00:22.2867686Z",
"Type": "CommonStock",
"Source": 0,
"ParentId": -1,
"OptionType": "Undefined",
"ExpirationType": "Undefined",
"ExpirationDate": "0001-01-01T00:00:00Z",
"StrikePrice": 0,
"SeriesId": -1,
"ContractSize": 1,
"Precision": 2,
"VolumePrecision": 0,
"TickSize": 0.01,
"MarginRate": 0
},
{
"Id": 5,
"Symbol": "GOOG",
"Description": "Alphabet Inc.",
"Exchange": "XNAS",
"Currency": "USD",
"AddedDate": "2012-11-29T16:05:43.993Z",
"ModifyDate": "2017-12-14T08:00:10.1826129Z",
"Type": "CommonStock",
"Source": 0,
"ParentId": -1,
"OptionType": "Undefined",
"ExpirationType": "Undefined",
"ExpirationDate": "0001-01-01T00:00:00Z",
"StrikePrice": 0,
"SeriesId": -1,
"ContractSize": 1,
"Precision": 2,
"VolumePrecision": 0,
"TickSize": 0.01,
"MarginRate": 0
}
]
}{
"error": "Application key is not defined or does not exist"
}{
"NameZZZ": "Apple & Google" , //incorrect first parameter
"Securities": [4,5] //internal ID of the securities in the new watchlist
}