mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-05 21:58:39 -04:00
API: Move prices under securities
For example, instead of GETting /prices/5 to query a price with ID 5, you now must GET /securities/2/prices/5 (assuming price 5's SecurityId is 2)
This commit is contained in:
@ -200,6 +200,15 @@ var data = []TestData{
|
||||
Type: handlers.Currency,
|
||||
AlternateId: "978",
|
||||
},
|
||||
handlers.Security{
|
||||
UserId: 0,
|
||||
Name: "EUR",
|
||||
Description: "Euro",
|
||||
Symbol: "€",
|
||||
Precision: 2,
|
||||
Type: handlers.Currency,
|
||||
AlternateId: "978",
|
||||
},
|
||||
},
|
||||
prices: []handlers.Price{
|
||||
handlers.Price{
|
||||
@ -230,6 +239,13 @@ var data = []TestData{
|
||||
Value: "227.21",
|
||||
RemoteId: "12387-129831-1241",
|
||||
},
|
||||
handlers.Price{
|
||||
SecurityId: 0,
|
||||
CurrencyId: 3,
|
||||
Date: time.Date(2017, time.November, 16, 18, 49, 53, 0, time.UTC),
|
||||
Value: "0.85",
|
||||
RemoteId: "USDEUR819298714",
|
||||
},
|
||||
},
|
||||
accounts: []handlers.Account{
|
||||
handlers.Account{
|
||||
|
Reference in New Issue
Block a user