Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package main
// Scratch File for https://github.com/markustenghamn/bittrex-trading-bot
import "log"
func main() {
var1 := 0.000273
var2 := 0.0002733
var3 := 0.0002734
q1 := 0.02
q2 := 1020.23
percent := 0.00
percent = var1/var2
log.Printf("%.8f\n", percent)
percent = percent - 2.00
log.Printf("%.8f\n", percent)
percent = var2/var1
log.Printf("%.8f\n", percent)
percent = percent - 2.00
log.Printf("%.8f\n", percent)
percent = var2/var3
log.Printf("%.8f\n", percent)
percent = percent - 2.00
log.Printf("%.8f\n", percent)
percent = percent * q1
log.Printf("%.8f\n", percent)
percent = var2/var1
log.Printf("%.8f\n", percent)
percent = percent * q2
log.Printf("%.8f\n", percent)
percent = var2/var1
log.Printf("%.8f\n", percent)
percent = percent * q2
log.Printf("%.8f\n", percent)
percent = percent - 2.00
log.Printf("%.8f\n", percent)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment