Greetings,
The key to the applicable code is identification of the vertical market. For oil, gas and petroleum you may consider API, ASME B31.3, and ASME B31.8 codes of construction for fittings, whether electrical or not. Fittings may include diaphragm seals, instrumentation, actual fittings...