v2_rest_test.go 542 B

1234567891011121314151617
  1. package yu_bitget
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestV2(t *testing.T) {
  7. j_rest := NewV2Rest()
  8. defer j_rest.Close()
  9. // j_rest.SetProxy("http://11597193:49e79ewq16we@47.242.149.180:10657")
  10. j_rest.SetProxy("http://11597193:49e79ewq16we@103.20.220.81:10657")
  11. // j_rest.SetProxy("http://47.243.17.197:10005")
  12. // j_v5.SetProxy("socks5://sub.dwdwdw-country-us:RNW78Fm5@proxy.haiwaiip.cn:1462")
  13. // j_rest.SetProxy("http://sub.dwdwdw-country-us:RNW78Fm5@proxy.haiwaiip.cn:1462")
  14. fmt.Println(j_rest.SymbolPrice(USDT_FUTURES, "BTCUSDT"))
  15. }