Skip to content

Instantly share code, notes, and snippets.

@uberswe
Created May 17, 2018 19:49
Show Gist options
  • Save uberswe/1230235e4cdad29059b1a0c96e21f16f to your computer and use it in GitHub Desktop.
Save uberswe/1230235e4cdad29059b1a0c96e21f16f to your computer and use it in GitHub Desktop.
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