kiely Voice

Joined: 11 Jun 2014 Posts: 1
|
Posted: Wed Jun 11, 2014 1:40 pm Post subject: Find index where MarketName has certain value |
|
|
https://github.com/kitaco/coinprice/blob/master/coinprice.tcl
I have this API
( https://bittrex.com/api/v1/public/getmarketsummaries ) where the index of the values I am trying to get, keeps changing.
I have | Code: | | set cloaklast [dict get [lindex [dict get $bittrex result] 28] Last] | right now, and the 28 keeps changing.
I need to find the list value of MarketName: "BTC-CLOAK" (or any other value of MarketName) and put it in a variable to use so the index value is always kept up to date.
I think I need foreach or lsearch. I am unsure.
Thanks! |
|