Explore OANDA REST-V20 API definitions
masterThe oandapyV20.definitions module contains the data structures and object definitions that mirror the official OANDA REST-V20 specifications. You can use these definitions to construct valid request bodies and parse response data for various API resources.
The module is organized into submodules corresponding to specific OANDA resource types:
oandapyV20.definitions.accounts: Account-related definitions.oandapyV20.definitions.instruments: Instrument-related definitions.oandapyV20.definitions.orders: Order-related definitions.oandapyV20.definitions.pricing: Pricing-related definitions.oandapyV20.definitions.trades: Trade-related definitions.oandapyV20.definitions.transactions: Transaction-related definitions.