General information about requests to BPG API

Http headers

Whenever request contains body you should set Content-Type header to application/json.

Floating point numbers

All numbers describing money values are returned as json numbers. Small amounts of BTC may be returned in scientific notation.

When reading numbers returned by API a decimal type should be used to avoid losing precision.

Examples:

  • BigDecimal in Java or Scala
  • Decimal in Python