func (db *DB) SetPrice(newPrice float64, pairString string) {
	db.priceMapMtx.Lock()
	db.gPriceMap[pairString] = newPrice
	db.priceMapMtx.Unlock()
}
// SetPrice sets the price, uses a lock since it will be written to and read from possibly at the same time (written to by server, read by client)
SetPrice sets the price, uses a lock since it will be written to and read from possibly at the same time (written to by server, read by client)
// SetPrice sets the price uses a lock since it will be written to and read from possibly at the same time ( written to by server read by client )
func (db *DB) SetPrice(newPrice float64, pairString string) {
	db.priceMapMtx.Lock()
	db.gPriceMap[pairString] = newPrice
	db.priceMapMtx.Unlock()
}
func ( db * DB ) SetPrice ( newPrice float64 , pairString string ) { db . priceMapMtx . Lock ( ) db . gPriceMap [ pairString ] = newPrice db . priceMapMtx . Unlock ( ) }
SetPrice sets the price, uses a lock since it will be written to and read from possibly at the same time (written to by server, read by client)
SetPrice sets the price uses a lock since it will be written to and read from possibly at the same time ( written to by server read by client )