Skip to content

Commit 83effb5

Browse files
authored
Merge pull request #4 from nixlend/patch-1
Updated market price example
2 parents 0ef4b01 + 29f21b5 commit 83effb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ Find an item ID, and then get the lowest market board price in a specific server
3131
const getItemPrice = async () => {
3232
//find item
3333
let res = await xiv.search('Stuffed Khloe')
34-
34+
3535
//use item ID for market query
36-
res = await xiv.market.prices(res.Results[0].ID, 'Excalibur')
37-
36+
res = await xiv.market.get(res.Results[0].ID, {servers: 'Excalibur'})
37+
3838
//return lowest price
3939
return res.Prices[0].PricePerUnit
4040
}

0 commit comments

Comments
 (0)