Green’s Dictionary of Slang

fanqui n.

[lit. ‘foreign devil’]

(Anglo-Chinese) a European.

[UK]Newcastle Jrnl 4 Jan. 3/1: the term ‘fan qui’ which means literally ‘foreign devil’ [...] is not always applied to Europeans with a bad intention, [...] signifying stranger or foreigner also.
[Aus]Brisbane Courier 30 Aug. 6/2: John Chinaman has once more outwitted the Fanqui in the matter of petty gambling. In spite of special Acts and adverse decisions [...] John perseveres in indulging in the delights of fan-tan and pak-a-pu.
[UK]Hotten Sl. Dict.
[UK]Sl. Dict.