Quicken price history file
application/octet-stream
Magic Bytes
Offset: 0
03 00 00 00 41 50 50 52
The Quicken price history file is a proprietary data format developed by Intuit for use within its personal finance software. This format is primarily used to store historical price data for stocks, mutual funds, and other securities to facilitate local portfolio tracking and performance charting. As a legacy binary format, it is considered safe because it contains structured financial records rather than executable code, though modern Quicken versions have largely transitioned to different data storage methods.
Validation Code
How to validate .qph files in Python
Python
def is_qph(file_path: str) -> bool:
"""Check if file is a valid QPH by magic bytes."""
signature = bytes([0x03, 0x00, 0x00, 0x00, 0x41, 0x50, 0x50, 0x52])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .qph files in Node.js
Node.js
function isQPH(buffer: Buffer): boolean {
const signature = Buffer.from([0x03, 0x00, 0x00, 0x00, 0x41, 0x50, 0x50, 0x52]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsQPH(data []byte) bool {
signature := []byte{0x03, 0x00, 0x00, 0x00, 0x41, 0x50, 0x50, 0x52}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/qph
curl https://filesignature.org/api/v1/qph